Re: RFC: add .dir-locals.el

Tom Tromey
2012-04-12T20:14:10Z

>>>>> "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.

Tom