Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-06-09 Thread Lex Trotman
On 10 June 2010 07:50, Thomas Martitz wrote: > Am 04.06.2010 03:27, schrieb Lex Trotman: > > Yep, and I wasn't interested in multi instance either until I realised > that it allows me to have Geany on multiple screens, I do lot of > switching back and forth between .hpp and .cpp files so showing

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-06-09 Thread Thomas Martitz
Am 04.06.2010 03:27, schrieb Lex Trotman: Yep, and I wasn't interested in multi instance either until I realised that it allows me to have Geany on multiple screens, I do lot of switching back and forth between .hpp and .cpp files so showing them both would be a*big* help. How about a proper

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-06-03 Thread Lex Trotman
2010/6/3 Enrico Tröger : > On Sun, 30 May 2010 22:43:54 +0400, Eugene wrote: > >> > > > > Or, as another option, we can remove automatic saving of >> > > > > preferences when closing. As preferences are saved immediately >> > > > > after Preferences dialog is closed, this option wouldn't do >> > >

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-06-03 Thread Enrico Tröger
On Sun, 30 May 2010 22:43:54 +0400, Eugene wrote: > > > > > Or, as another option, we can remove automatic saving of > > > > > preferences when closing. As preferences are saved immediately > > > > > after Preferences dialog is closed, this option wouldn't do > > > > > any harm. Or would it? > > >

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-30 Thread Eugene Arshinov
On Sun, 30 May 2010 19:36:14 +0200% Enrico Tröger wrote: > On Thu, 20 May 2010 22:52:49 +0400, Eugene wrote: > > > Hey, > > sorry for the delay, I just don't manage to keep up with this > stuff :(. > No problem. > > > > > Or, as another option, we can remove automatic saving of > > > > pre

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-30 Thread Enrico Tröger
On Thu, 20 May 2010 22:52:49 +0400, Eugene wrote: Hey, sorry for the delay, I just don't manage to keep up with this stuff :(. > > > Or, as another option, we can remove automatic saving of > > > preferences when closing. As preferences are saved immediately > > > after Preferences dialog is c

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-20 Thread Eugene Arshinov
On Wed, 19 May 2010 23:05:26 +0200% Enrico Tröger wrote: > On Wed, 19 May 2010 22:13:40 +0400, Eugene wrote: > > > On Wed, 19 May 2010 14:09:57 +0300% > > Dimitar Zhekov wrote: > > > > > On Wed, 19 May 2010 11:07:09 +0400 > > > Eugene Arshinov wrote: > > > > > > > Now committed, together wit

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-20 Thread Dimitar Zhekov
On Wed, 19 May 2010 22:13:40 +0400 Eugene Arshinov wrote: > Or, as another option, we can remove automatic saving of > preferences when closing. I second that. > As preferences are saved immediately after Preferences dialog is > closed, this option wouldn't do any harm. Or would it? If you thi

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-19 Thread Enrico Tröger
On Wed, 19 May 2010 22:13:40 +0400, Eugene wrote: > On Wed, 19 May 2010 14:09:57 +0300% > Dimitar Zhekov wrote: > > > On Wed, 19 May 2010 11:07:09 +0400 > > Eugene Arshinov wrote: > > > > > Now committed, together with "Tools > Save configuration" menu > > > item. > > > > I hope "Save configu

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-19 Thread Eugene Arshinov
On Wed, 19 May 2010 14:09:57 +0300% Dimitar Zhekov wrote: > On Wed, 19 May 2010 11:07:09 +0400 > Eugene Arshinov wrote: > > > Now committed, together with "Tools > Save configuration" menu item. > > I hope "Save configuration" works for all instances, and not for the > "main" instance only, as

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-19 Thread Dimitar Zhekov
On Wed, 19 May 2010 11:07:09 +0400 Eugene Arshinov wrote: > On Tue, 2 Mar 2010 15:23:31 +0300% > Eugene Arshinov wrote: > > > Lex Trotman wrote: > > > > > > > If so then I assume all Geany commands > > > > without the -i will be the same instance, and this is the one > > > > that should be a

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-19 Thread Eugene Arshinov
On Tue, 2 Mar 2010 15:23:31 +0300% Eugene Arshinov wrote: > On Mon, 1 Mar 2010 16:08:18 +% > Nick Treleaven wrote: > > > On Sat, 27 Feb 2010 09:05:12 +1100 > > Lex Trotman wrote: > > > > > > To be easy to implement, perhaps maybe only the first/main > > > > instance should save settings.

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-07 Thread Enrico Tröger
On Mon, 1 Mar 2010 08:21:43 +1100, Lex wrote: >2010/3/1 Enrico Tröger > >> On Fri, 26 Feb 2010 15:15:02 +, Nick wrote: >> >> >On Wed, 24 Feb 2010 12:04:20 +0300 >> >Eugene Arshinov wrote: >> > >> >> Hi all. >> >> >> >> When several instances of Geany quit in the same time, there is a >> >> h

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-07 Thread Enrico Tröger
On Sun, 07 Mar 2010 01:17:03 +0100, Thomas wrote: >On 05.03.2010 22:49, Dominic Hopf wrote: >> Am Freitag, den 05.03.2010, 16:54 + schrieb Nick Treleaven: >> >>> On Tue, 02 Mar 2010 18:50:28 +0100 >>> Thomas Martitz wrote: >>> >>> >> (If a second instance of geany is run without

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-06 Thread Thomas Martitz
On 05.03.2010 22:49, Dominic Hopf wrote: Am Freitag, den 05.03.2010, 16:54 + schrieb Nick Treleaven: On Tue, 02 Mar 2010 18:50:28 +0100 Thomas Martitz wrote: (If a second instance of geany is run without passing filenames to the first, -i is implied). I really lik

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-05 Thread Dominic Hopf
Am Freitag, den 05.03.2010, 16:54 + schrieb Nick Treleaven: > On Tue, 02 Mar 2010 18:50:28 +0100 > Thomas Martitz wrote: > > > >> (If a second instance of geany is run without passing filenames to the > > >> first, -i is implied). > > >> > > >> > > > I really like this idea. It is simpl

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-05 Thread Nick Treleaven
On Tue, 02 Mar 2010 18:50:28 +0100 Thomas Martitz wrote: > >> (If a second instance of geany is run without passing filenames to the > >> first, -i is implied). > >> > >> > > I really like this idea. It is simple to understand, rather > > convenient and uniform with the behaviour of "new-in

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-02 Thread Eugene Arshinov
On Tue, 02 Mar 2010 18:50:28 +0100% Thomas Martitz wrote: > On 02.03.2010 13:23, Eugene Arshinov wrote: > >> (If a second instance of geany is run without passing filenames to > >> the first, -i is implied). > >> > >> > > I really like this idea. It is simple to understand, rather > > conve

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-02 Thread Thomas Martitz
On 02.03.2010 13:23, Eugene Arshinov wrote: (If a second instance of geany is run without passing filenames to the first, -i is implied). I really like this idea. It is simple to understand, rather convenient and uniform with the behaviour of "new-instances", i.e., those instances should

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-02 Thread Eugene Arshinov
On Sat, 27 Feb 2010 09:05:12 +1100% Lex Trotman wrote: > > As I implied in my comment on another message, my use case was to > have the filemanager programmed to start a new instance if I double > click to look at a file so it doesn't interfere with my "main" > instance. I know the socket system

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-02 Thread Eugene Arshinov
On Mon, 1 Mar 2010 16:08:18 +% Nick Treleaven wrote: > On Sat, 27 Feb 2010 09:05:12 +1100 > Lex Trotman wrote: > > > > To be easy to implement, perhaps maybe only the first/main > > > instance should save settings. We could have a Tools->Save Config > > > menu item enabled for the first ins

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-03-01 Thread Nick Treleaven
On Sat, 27 Feb 2010 09:05:12 +1100 Lex Trotman wrote: > > To be easy to implement, perhaps maybe only the first/main instance > > should save settings. We could have a Tools->Save Config menu item > > enabled for the first instance to allow the user to restart other > > instances with the new set

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-02-28 Thread Lex Trotman
2010/3/1 Enrico Tröger > On Fri, 26 Feb 2010 15:15:02 +, Nick wrote: > > >On Wed, 24 Feb 2010 12:04:20 +0300 > >Eugene Arshinov wrote: > > > >> Hi all. > >> > >> When several instances of Geany quit in the same time, there is a > >> high possibility of a conflict. I can reproduce it easily o

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-02-28 Thread Enrico Tröger
On Fri, 26 Feb 2010 15:15:02 +, Nick wrote: >On Wed, 24 Feb 2010 12:04:20 +0300 >Eugene Arshinov wrote: > >> Hi all. >> >> When several instances of Geany quit in the same time, there is a >> high possibility of a conflict. I can reproduce it easily on my >> machine, using either trunk or SM

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-02-27 Thread Randy Kramer
Lex, Now I understand--thanks very much for the clarification! Randy Kramer On Friday 26 February 2010 05:31:09 pm Lex Trotman wrote: > On 27 February 2010 03:36, Randy Kramer wrote: > > I haven't paid careful attention to this thread, but on several > > projects I've worked on, we've adopted a

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-02-26 Thread Lex Trotman
On 27 February 2010 03:36, Randy Kramer wrote: > I haven't paid careful attention to this thread, but on several projects > I've worked on, we've adopted a "last to save, wins" philosophy for > situations (somewhat) similar to this. > > I've learned to deal with that in several applications inclu

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-02-26 Thread Lex Trotman
On 27 February 2010 02:15, Nick Treleaven wrote: > On Wed, 24 Feb 2010 12:04:20 +0300 > Eugene Arshinov wrote: > > > Hi all. > > > > When several instances of Geany quit in the same time, there is a high > > possibility of a conflict. I can reproduce it easily on my machine, > > using either trun

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-02-26 Thread Randy Kramer
I haven't paid careful attention to this thread, but on several projects I've worked on, we've adopted a "last to save, wins" philosophy for situations (somewhat) similar to this. I've learned to deal with that in several applications including nedit, and it seems to be a reasonable approach, r

[Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-02-26 Thread Nick Treleaven
On Wed, 24 Feb 2010 12:04:20 +0300 Eugene Arshinov wrote: > Hi all. > > When several instances of Geany quit in the same time, there is a high > possibility of a conflict. I can reproduce it easily on my machine, > using either trunk or SM version. > > To reproduce: open three instances of gean