This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: add .dir-locals.el


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]