emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] allow function values for `enable-local-eval'


From: Kim F. Storm
Subject: Re: [PATCH] allow function values for `enable-local-eval'
Date: 04 Jul 2002 21:36:59 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Richard Stallman <address@hidden> writes:

>     I'm sure crackers will be happy about it.
>     The argument passed to `c-add-style' allows you to buffer-locally
>     set any variable to any value whatsoever.  Hardly "safe" in my book.
> 
> I didn't realize that.  It will be necessary then to check
> the arguments to c-add-style.  Still, it is better to install
> this checking by default than to make users install it as
> a customization.

Whatever we do to automate this, I don't think we will ever
cover every possible hook that people would like to "accept
by default".

So I still propose that we provide a *simple* customization option
safe-local-eval-forms which is just a list that contains verbatim
copies of the eval hooks which the user considers as safe.

We could then enhance the functionality when the user is
asked to "eval local hook (y/n)" to "eval local hook (y/n/s)"
where "s" saves the hook in safe-local-eval-forms.

But just having the option would be great!




reply via email to

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