Re: [Geany-devel] Multiple instances of Geany issues

2010-06-16 Thread Dimitar Zhekov
On Wed, 16 Jun 2010 08:19:44 +1000 Lex Trotman ele...@gmail.com wrote: On 16 June 2010 04:12, Dimitar Zhekov dimitar.zhe...@gmail.com wrote: Hmmm... Now that I think of it, how is a plugin supposed to save it's settings in a project file when closing a project connect to the

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-15 Thread Dimitar Zhekov
On Mon, 14 Jun 2010 08:46:42 +0400 Eugene Arshinov earshi...@gmail.com wrote: On Sat, 5 Jun 2010 12:10:01 +0300% Dimitar Zhekov dimitar.zhe...@gmail.com wrote: Hi, - Limit Project - Properties to saving the preferences only, and limit project_close() to saving the file list only.

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-05 Thread Dimitar Zhekov
Hi, - Limit Project - Properties to saving the preferences only, and limit project_close() to saving the file list only. Here it is, combined with the other save-* patches. BTW, when creating a new project, it's immediately saved, both the settings and the file list. So to avoid function

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-04 Thread Eugene Arshinov
On Wed, 2 Jun 2010 21:55:04 +0300% Dimitar Zhekov dimitar.zhe...@gmail.com wrote: Most of the above are already available as patches. What remains: - Warnings (questions?) on Edit - Preferences, Project - Properties and Build - Set build commands. - Limit Project - Properties to saving

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-04 Thread Eugene Arshinov
Sorry, forgot to answer this in the afternoon. On Thu, 3 Jun 2010 16:11:03 +1000% Lex Trotman ele...@gmail.com wrote: On 3 June 2010 01:08, Eugene Arshinov earshi...@gmail.com wrote: On Wed, 2 Jun 2010 18:10:26 +1000% Lex Trotman ele...@gmail.com wrote: On 2 June 2010 17:19, Eugene

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-03 Thread Lex Trotman
On 3 June 2010 01:08, Eugene Arshinov earshi...@gmail.com wrote: On Wed, 2 Jun 2010 18:10:26 +1000% Lex Trotman ele...@gmail.com wrote: On 2 June 2010 17:19, Eugene Arshinov earshi...@gmail.com wrote: On Wed, 2 Jun 2010 12:14:48 +1000% Lex Trotman ele...@gmail.com wrote: snip

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-03 Thread Lex Trotman
On 3 June 2010 04:55, Dimitar Zhekov dimitar.zhe...@gmail.com wrote: On Wed, 2 Jun 2010 12:14:48 +1000 Lex Trotman ele...@gmail.com wrote: (This is an answer to Eugene too) BTW changing filetype files is not that rare, every time you add an option to your compile command you change one.  

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-03 Thread Dimitar Zhekov
On Thu, 3 Jun 2010 16:38:57 +1000 Lex Trotman ele...@gmail.com wrote: How would a Geany with your sm and whatever patches you choose to apply behave against the (now) 7 points? The reason I'm asking is that I've lost track of exactly what patches were proposed and their effects and I think

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-03 Thread Lex Trotman
On 4 June 2010 02:56, Dimitar Zhekov dimitar.zhe...@gmail.com wrote: On Thu, 3 Jun 2010 16:38:57 +1000 Lex Trotman ele...@gmail.com wrote: How would a Geany with your sm and whatever patches you choose to apply behave against the (now) 7 points?  The reason I'm asking is that I've lost track

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-02 Thread Eugene Arshinov
On Wed, 2 Jun 2010 12:14:48 +1000% Lex Trotman ele...@gmail.com wrote: snip Should they be combined? We never discussed such thing for 2+ instances, not even for 2+ main instances. Merging recent makes sense, indeed, but adding files to be open on the next run of Geany, or the next

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-02 Thread Lex Trotman
On 2 June 2010 17:19, Eugene Arshinov earshi...@gmail.com wrote: On Wed, 2 Jun 2010 12:14:48 +1000% Lex Trotman ele...@gmail.com wrote: snip Should they be combined? We never discussed such thing for 2+ instances, not even for 2+ main instances. Merging recent makes sense, indeed, but

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-02 Thread Eugene Arshinov
On Wed, 2 Jun 2010 18:10:26 +1000% Lex Trotman ele...@gmail.com wrote: On 2 June 2010 17:19, Eugene Arshinov earshi...@gmail.com wrote: On Wed, 2 Jun 2010 12:14:48 +1000% Lex Trotman ele...@gmail.com wrote: snip Should they be combined? We never discussed such thing for 2+

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-02 Thread Dimitar Zhekov
On Wed, 2 Jun 2010 12:14:48 +1000 Lex Trotman ele...@gmail.com wrote: (This is an answer to Eugene too) BTW changing filetype files is not that rare, every time you add an option to your compile command you change one. Me, I add/remove -g quite often :) Yet the race is not that often -

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-01 Thread Dimitar Zhekov
On Mon, 31 May 2010 13:35:26 +0400 Eugene Arshinov earshi...@gmail.com wrote: Just to mention, I ported to my SM branch the patches posted earlier in this thread. Also, I've changed the code to write changed recent files and projects lists to geany.conf as soon as possible instead of

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-01 Thread Eugene Arshinov
On Tue, 1 Jun 2010 19:55:27 +0300% Dimitar Zhekov dimitar.zhe...@gmail.com wrote: On Mon, 31 May 2010 13:35:26 +0400 Eugene Arshinov earshi...@gmail.com wrote: Just to mention, I ported to my SM branch the patches posted earlier in this thread. Also, I've changed the code to write

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-01 Thread Dimitar Zhekov
On Tue, 1 Jun 2010 21:15:09 +0400 Eugene Arshinov earshi...@gmail.com wrote: On Tue, 1 Jun 2010 19:55:27 +0300% Dimitar Zhekov dimitar.zhe...@gmail.com wrote: I wanted to test that, but the sm-4977 works quite amazing on my system: running geany closes the entire session [...] It is

Re: [Geany-devel] Multiple instances of Geany issues

2010-06-01 Thread Lex Trotman
snip Should they be combined? We never discussed such thing for 2+ instances, not even for 2+ main instances. Merging recent makes sense, indeed, but adding files to be open on the next run of Geany, or the next time a project is open?.. Just for clarity, in the question I meant several

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-24 Thread Lex Trotman
On 24 May 2010 18:18, Dimitar Zhekov hams...@mbox.contact.bg wrote: On Mon, 24 May 2010 14:38:53 +1000 Lex Trotman ele...@gmail.com wrote: And I just thought of another one, filetypes files, see filetypes_save_commands() called from main_quit() so there can be a race here too I think.

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-24 Thread Dimitar Zhekov
On Mon, 24 May 2010 20:32:33 +1000 Lex Trotman ele...@gmail.com wrote: On 24 May 2010 18:18, Dimitar Zhekov hams...@mbox.contact.bg wrote: If we want the filetype save to be consistent with Edit - Preferences and Project - Properties, I think the commands should be saved on Build - Set

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-23 Thread Dimitar Zhekov
On Sun, 23 May 2010 08:04:33 +1000 Lex Trotman ele...@gmail.com wrote: You can get this behaviour by setting the hidden preference use_safe_file_saving, in that case utils_write_file uses g_file_set_contents which does _exactly_ what you describe, problem is it changes owners and permissions

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-23 Thread Lex Trotman
On 24 May 2010 01:04, Dimitar Zhekov hams...@mbox.contact.bg wrote: On Sun, 23 May 2010 08:04:33 +1000 Lex Trotman ele...@gmail.com wrote: You can get this behaviour by setting the hidden preference use_safe_file_saving,  in that case utils_write_file uses g_file_set_contents which does

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-22 Thread Dimitar Zhekov
On Sat, 22 May 2010 12:55:40 +1000 Lex Trotman ele...@gmail.com wrote: [...] Isn't the race (as in broken file because 2+ instances write it at once) only a problem of the original SM implementation? I mean, a user can't close two projects or two Geany-s _that_ fast?.. No, but logout

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-22 Thread Lex Trotman
On 22 May 2010 19:05, Dimitar Zhekov hams...@mbox.contact.bg wrote: On Sat, 22 May 2010 12:55:40 +1000 Lex Trotman ele...@gmail.com wrote: [...] Isn't the race (as in broken file because 2+ instances write it at once) only a problem of the original SM implementation? I mean, a user

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-22 Thread Dimitar Zhekov
On Sat, 22 May 2010 21:15:59 +1000 Lex Trotman ele...@gmail.com wrote: Speaking of NFS (I read the patch) O_EXCL is problematic [...] Thats correct, note I used g_open which seems to say that it works under windows as well. [...] the only potential problem is that it can be disabled by

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-21 Thread Dimitar Zhekov
On Fri, 21 May 2010 16:53:56 +1000 Lex Trotman ele...@gmail.com wrote: On 21 May 2010 15:13, Eugene Arshinov earshi...@gmail.com wrote: But now there is a suggestion from Dimitar to also support changing preferences in secondary instances. The last solution I wrote in the large thread

Re: [Geany-devel] Multiple instances of Geany issues

2010-05-20 Thread Eugene Arshinov
On Fri, 21 May 2010 14:34:36 +1000% Lex Trotman ele...@gmail.com wrote: Hi All, I've created this thread separate from Eugene's and Ditmar's session management threads because my concern is mostly about other parts of Geany and I don't want to be seen as criticising either of them as it