emacs-devel
[Top][All Lists]
Advanced

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

Re: Bad value to a defcustom makes choices unavailable


From: Per Abrahamsen
Subject: Re: Bad value to a defcustom makes choices unavailable
Date: Tue, 02 Aug 2005 18:09:57 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

Lennart Borgman <address@hidden> writes:

> Let us say that someone writes a defcustom in a package he distributes. 
> Later she/he for some reason changes the list of choices. If a user has 
> saved a value through custom that now no longer exists he can not 
> correct it through custom.

He can, unless that functionality has been changed.  Customize will
present the invalid value in an sexp widget.  Which seems the most
reasonable thing to in the general case.

If he don't know what to do with an sexp, he can do a "Reset to
standard value", and then use the structured editor.

> I think it would be good then if the list of choices were available.

You could special case the "choice" widget (most widget can have
"invalid value", so the problem is general).  But I don't think the
code complexity would outweigh the minor convenience of not having to
do a "Reset to standard" first.





reply via email to

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