On Tue, Mar 2, 2010 at 10:59 PM, Tony Rick <span dir="ltr"><<a href="mailto:tonyr42@gmail.com">tonyr42@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At revision 4720.<br><br>I'm trying to understand the Tools->Configuration Files Edit/Save behavior, so that I can mimic that in a plugin that does the same thing for template files.  When I select <b>snippets.conf</b> from the <b>Configuration Files</b> submenu, and there is no <b>snippets.conf</b> in <b>~/.config/geany (app->configdir)</b>,  the default  file from <b>/usr/share/geany (app->datadir)</b>  is obviously opened, but a Status message is issued indicating that the file is opened in <b>~/.config/geany (app->configdir)</b>.  I take this to mean that the override convention (files in <b>configdir</b> overriding files of the same name in <b>datadir)</b> is being enforced in the editor.  However, when I save the modified file, using either the <b>Save</b> icon or <b> File->Save</b>, I am put into a file save dialog, as if I had selected<b> File->Save As</b>.  <br>

<br>Is this the specified behavior?  Having the <b>File->Save As</b> dialog appear when <b>Save</b> is specified is confusing and inconsistent. It seems to me that if the override convention is being enforced, selecting <b>Save</b> should write the modified file to the location reported in the Status window without question, and the save location dialog only offered specifically when <b>Save As</b> is selected.  If the override convention is not being enforced in the editor,  then the Status message is misleading.  The manual does not refer specifically to this behavior, only to the fact that <b>.conf</b> can be manually copied to <b>configdir</b> and modified, and will then override the default file.   I think it is more consistent to have the editor enforce the override file location policy by default on <b>Save</b>, allow <b>File->Save As </b>to be used as an option at the user's discretion, and state the override file location policy and the editor's enforcement of such clearly in the manual.<font color="#888888"><br>
</font></blockquote><div><br>Here's a simple patch that modifies the Save behavior for config files edited from the Tools->Configuration Files submenu for your consideration.  Config files that are read from the geany data directory (because they did not already exist in the local config directory) will be saved to the local config directory by default.<br>
<br>- tony<br></div></div>