<br><br><div class="gmail_quote">On 13 March 2010 00:16, Nick Treleaven <span dir="ltr"><<a href="mailto:nick.treleaven@btinternet.com">nick.treleaven@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
There seems to be a bug in trunk if you edit an execute command field<br>
then restart Geany, the changes aren't saved.<br>
<br>
Regards,<br>
<font color="#888888">Nick<br>
</font></blockquote></div><br>Hi Nick,<br><br>I can only get it to fail if you set the commands when the filetype is none. <br><br>This is because executes are saved in the filetypes file and the function filetypes_save_commands() starts at index 1 not 0 so no commands are saved for filetype none.<br>
<br>Same happens for the filetype commands as well of course.<br><br>Options are:<br><br>1. give filetypes none an extension (currently NULL) and let it save<br>2. make filetype and execute rows of the dialog insensitive if the filetype is none<br>
<br>I favour option 1 since filetype none is a valid filetype (you can set it from the document menu) so why can't a user define commands for a filetype that Geany doesn't understand yet.<br><br>Example use case is editing the  test file for the domain specific language they are developing the compiler/interpretor for.<br>
<br>Cheers<br>Lex<br>