emacs-devel
[Top][All Lists]
Advanced

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

Re: Instead of `risky-local-variable'


From: Chong Yidong
Subject: Re: Instead of `risky-local-variable'
Date: Wed, 01 Feb 2006 23:47:44 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Richard M. Stallman" <address@hidden> writes:

>     > I'm considering a more reliable replacement for the
>     > `risky-local-variable' mechanism.  My idea is that only defcustom'ed
>     > variables could be specified in a local variables list, and that the
>     > :type together with the specified value would determine whether a
>     > variable is safe.
>
>     This won't work for defcustoms that haven't been loaded yet.
>
> It would probably refuse to bind the variable in such a case, but is
> that really a problem in practice?  A file local binding is useful
> because the variable is going to do something, which means the package
> that obeys it needs to be loaded.

It might be a problem for variables associated with minor modes that
the user may only turn on after visiting the file.




reply via email to

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