emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: toggling a minor mode should not tell Customize that the value has b


From: Stefan Monnier
Subject: Re: toggling a minor mode should not tell Customize that the value has been set
Date: Sun, 06 Jan 2008 20:26:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>> > Putting `customize-customized' on `kill-emacs-query-functions'
>> > is analogous to Emacs telling you that you have unsaved modified
>> > buffers, and asking if you want to quit anyway and lose your
>> > changes. Toggling a mode variable is not an act of customization;
>> > there is no loss if you exit without saving the latest value.
>> 
>> There is.  Suppose you have done "set for current session only" and some
>> action changes this to "CHANGED outside Customize; operating on it here
>> may be unreliable".  When you now exit Emacs you will _not_ get warned
>> that you have unsaved customizations.

> Fair enough.  Would you then change all commands that change option
> values so that they too tell Customize that the value has been
> customized?

Yes, I think they should, whenever possible.

> Would you somehow make sure that not only commands but all
> Lisp code does the same thing?

The "whenever possible" is key.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]