This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: add .dir-locals.el
- From: Tom Tromey <tromey at redhat dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: Yao Qi <yao at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Thu, 12 Apr 2012 14:13:43 -0600
- Subject: Re: RFC: add .dir-locals.el
- References: <87bonj8aa0.fsf@fleche.redhat.com> <4F8614A8.6040800@codesourcery.com> <83bomw4vob.fsf@gnu.org>
>>>>> "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