Re: How should a plugin implement persistent preferences?

2011-08-03 Thread Kent Tenney
On Wed, Aug 3, 2011 at 9:48 AM, Edward K. Ream wrote: > On Mon, Aug 1, 2011 at 10:43 AM, Terry Brown wrote: > >> I should have made it clearer that those are the first choice in my >> response too.  It depends on the nature of the data being stored and >> how it's going to be written to the stora

Re: How should a plugin implement persistent preferences?

2011-08-03 Thread Terry Brown
On Wed, 3 Aug 2011 09:48:55 -0500 "Edward K. Ream" wrote: > I personally do not think the massive effort required is anywhere near > being useful enough. Apart from the working out which settings file is supplying the setting, it seems like just a couple of lines of code, maybe I didn't explain

Re: How should a plugin implement persistent preferences?

2011-08-03 Thread Edward K. Ream
On Mon, Aug 1, 2011 at 10:43 AM, Terry Brown wrote: > I should have made it clearer that those are the first choice in my > response too.  It depends on the nature of the data being stored and > how it's going to be written to the storage place.  I don't think there > are mechanisms for writing t

Re: How should a plugin implement persistent preferences?

2011-08-01 Thread Terry Brown
On Mon, 1 Aug 2011 08:24:14 -0500 "Edward K. Ream" wrote: > On Sun, Jul 31, 2011 at 4:27 PM, SegundoBob wrote: > > I'm writing a plugin and I want to allow the user to select one set of > > preferences for the current .leo file and another set of preferences > > to be the current defaults for al

Re: How should a plugin implement persistent preferences?

2011-08-01 Thread Edward K. Ream
On Sun, Jul 31, 2011 at 4:27 PM, SegundoBob wrote: > I'm writing a plugin and I want to allow the user to select one set of > preferences for the current .leo file and another set of preferences > to be the current defaults for all .leo files. I strongly encourage you to use the standard @setting

Re: How should a plugin implement persistent preferences?

2011-07-31 Thread Terry Brown
On Sun, 31 Jul 2011 14:27:40 -0700 (PDT) SegundoBob wrote: > I'm writing a plugin and I want to allow the user to select one set of > preferences for the current .leo file and another set of preferences > to be the current defaults for all .leo files. I want these > preferences to persist from o

How should a plugin implement persistent preferences?

2011-07-31 Thread SegundoBob
I'm writing a plugin and I want to allow the user to select one set of preferences for the current .leo file and another set of preferences to be the current defaults for all .leo files. I want these preferences to persist from one Leo-Editor session to another. That is, they must be saved on dis