<br><br><div class="gmail_quote">On 10 October 2012 06:58, Dimitar Zhekov <span dir="ltr"><<a href="mailto:dimitar.zhekov@gmail.com" target="_blank">dimitar.zhekov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, 4 Oct 2012 10:51:29 +1000<br>
<div class="im">Lex Trotman <<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>> wrote:<br>
<br>
> > > Are all settings saved on apply? not just the prefs/project prefs ones?<br>
> ><br>
</div><div class="im">> > Edit -> Preferences -> OK|Apply saves the entire geany.conf:<br>
> > dialog preferences, UI settings and file list.<br>
> ><br>
> > Project -> Properties -> OK saves the entire $project.conf: project<br>
> > settings and file list.<br>
> ><br>
> > File -> Quit does both.<br>
> ><br>
><br>
> AFAICT build->set build commands->ok does neither, it assumes save at the<br>
> end, thats the problem, and why the save on quit is still needed and why<br>
> failing to save on shutdown is a breakage.<br>
<br>
</div>Unless you are looking at some really old sources, </blockquote><div><br></div><div>Oh dear it is *yesterdays* git :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
a project-less<br>
build -> set build commands -> ok saves the changes under filedefs/<br>
immediately ("save filetypes now" in the mailing list). Just fill some<br>
commands, OK, and grep ~/.config/geany.<br></blockquote><div><br></div><div>It doesn't save the config file though, so no non-filetype settings saved.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Save on Quit is needed for the interface preferences, such as View -><br>
Show Sidebar, and the project-less file list. Unfortunately, the file<br>
list is saved even with a project open, but attempts to fix it trigger<br>
a "multiply instances" discussion.<br></blockquote><div><br></div><div>Yes, Geany does *not* do multiple instances properly, therefore being ignored for now.  If you do multiple instances with the same project or config file it will break (ie not do what you wanted), its just a matter of when.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
> The build one is the one I know, my question is then what other dialogs or<br>
> menu items etc change settings but fail to cause a save because they still<br>
> assume save on exit?<br>
<br>
</div>The ones from save_ui_prefs(). You can't reasonably expect a file save<br>
each time the side bar is shown/hidden, or the main window is<br>
moved/sized...<br></blockquote><div><br></div><div>1. why not?  </div><div>2. which is why they should be in the session file not the prefs file, also, to me, if I arranged windows to fit what I was looking at, it would be good it that was restored with the project session as well.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
> > Saving dialog preferences and project settings on Quit does not make<br>
> > real sense, but it's the same file, so there is no reason to separate<br>
> > them. Yet they are internally separate (static) functions, see<br>
> > keyfile.c:configuration_save() and project.c:write_config().<br>
> ><br>
><br>
> Not sure what you mean by "its the same file", its not the same file and<br>
> doesn't have the same contents?<br>
<br>
</div>The dialog preferences are in the same file (geany.conf) as UI settings<br>
and the project-less file list, which need save on quit; and the project<br>
properties are in the same file ($project.geany) as the project file<br>
list, which needs save on quit. So (not) saving the formers does not<br>
make real difference, the entire file must be re-written anyway.<br></blockquote><div><br></div><div>Yeah, which is why I want to split 'em</div><div><br></div><div>Cheers</div><div>Lex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<span class="HOEnZb"><font color="#888888"><br>
--<br>
E-gards: Jimmy<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br>