Re: RFC: add .dir-locals.el

Eli Zaretskii
2012-04-13T08:29:14Z

> From: Tom Tromey <tromey@redhat.com>
> Cc: Yao Qi <yao@codesourcery.com>, gdb-patches@sourceware.org
> Date: Thu, 12 Apr 2012 14:13:43 -0600
>
> >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>
> >> Date: Thu, 12 Apr 2012 07:32:56 +0800
> >> From: Yao Qi <yao@codesourcery.com>
> >> CC: <gdb-patches@sourceware.org>
> >>
> >> With this change, when emacs opens gdb files for the first time, it
> >> prompts to ask apply risky local variables. Not sure GDB contributors
> >> using emacs are comfortable with this or not.
>
> Eli> Can't you make them not risky conditioned on specific types of values,
> Eli> like strings etc.?
>
> I don't see how that applies here.
>
> You can set a property on a symbol to make it safe in some situations.
> This would normally be done via a patch to Emacs, but one can also do it
> temporarily in .emacs or whatever.
>
> In this case though, what symbol would you use?
> AFAIK you have to call font-lock-add-keywords to change font-locking.
> There is no local variable you can set.

What variables cause the warning?