[Top][All Lists]

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

Re: doc elisp intro cross reference fixes

From: Stefan Monnier
Subject: Re: doc elisp intro cross reference fixes
Date: 20 Nov 2003 09:39:23 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>    No, indeed, it's a bug that needs to be fixed in set-variable.

> If this would be considered a bug, then the global variant of
> set-variable would be easy to fix, by having set-variable call the
> :set function.  C-u set-variable (buffer-local variant) could not be
> handled this way, because :set functions are usually not intended to
> handle buffer-local values.

That's another problem with custom in that it handles buffer-local
settings pretty poorly.  But note that for this particular case,
it's not as bad as you make it to be since there's custom-local-buffer
to take care of it.  Admittedly many setter functions don't pay attention
to it, but that's just another thing that needs to be fixed.

> Of course, customize-option can not
> handle buffer-local values at all.  One would need a new
> :set-buffer-local keyword, or similar, if one wanted set-variable to
> be able to handle buffer-local values for such variables.

No, custom-local-buffer is all you need for this particular case.


reply via email to

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