From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15479 invoked by alias); 13 Apr 2012 08:29:14 -0000 Received: (qmail 15274 invoked by uid 22791); 13 Apr 2012 08:29:12 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Apr 2012 08:28:53 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M2E00B00SKJY400@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Fri, 13 Apr 2012 11:28:51 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2E00BXZSW2YG00@a-mtaout23.012.net.il>; Fri, 13 Apr 2012 11:28:51 +0300 (IDT) Date: Fri, 13 Apr 2012 09:08:00 -0000 From: Eli Zaretskii Subject: Re: RFC: add .dir-locals.el In-reply-to: <87k41kzp1k.fsf@fleche.redhat.com> To: Tom Tromey Cc: yao@codesourcery.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <8339883ulw.fsf@gnu.org> References: <87bonj8aa0.fsf@fleche.redhat.com> <4F8614A8.6040800@codesourcery.com> <83bomw4vob.fsf@gnu.org> <87k41kzp1k.fsf@fleche.redhat.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00341.txt.bz2 > From: Tom Tromey > Cc: Yao Qi , gdb-patches@sourceware.org > Date: Thu, 12 Apr 2012 14:13:43 -0600 > > >>>>> "Eli" == Eli Zaretskii writes: > > >> Date: Thu, 12 Apr 2012 07:32:56 +0800 > >> From: Yao Qi > >> CC: > >> > >> 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?