From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#23476: 25.0.93; Visiting C files on master signals an error Date: Sat, 7 May 2016 20:40:22 +0000 Message-ID: <20160507204022.GE3660@acm.fritz.box> References: <834maafhtx.fsf@gnu.org> <867ff56cpr.fsf@gmail.com> <83oa8hepuj.fsf@gnu.org> <20160507175030.GA4161@acm.fritz.box> <83mvo1enoe.fsf@gnu.org> <20160507185225.GB3660@acm.fritz.box> <83lh3lelw1.fsf@gnu.org> <83k2j5ekdc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1462653680 9105 80.91.229.3 (7 May 2016 20:41:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 May 2016 20:41:20 +0000 (UTC) Cc: 23476@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 07 22:41:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1az92D-0007da-QS for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 May 2016 22:41:09 +0200 Original-Received: from localhost ([::1]:35075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1az92C-0003SU-VQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 May 2016 16:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1az929-0003Q8-UG for bug-gnu-emacs@gnu.org; Sat, 07 May 2016 16:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1az926-0001G6-Li for bug-gnu-emacs@gnu.org; Sat, 07 May 2016 16:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1az926-0001F0-I7 for bug-gnu-emacs@gnu.org; Sat, 07 May 2016 16:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1az926-0006FR-DF for bug-gnu-emacs@gnu.org; Sat, 07 May 2016 16:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 May 2016 20:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23476 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23476-submit@debbugs.gnu.org id=B23476.146265362823969 (code B ref 23476); Sat, 07 May 2016 20:41:02 +0000 Original-Received: (at 23476) by debbugs.gnu.org; 7 May 2016 20:40:28 +0000 Original-Received: from localhost ([127.0.0.1]:42948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1az91Y-0006EX-4q for submit@debbugs.gnu.org; Sat, 07 May 2016 16:40:28 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:35254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1az91V-0006EO-Cn for 23476@debbugs.gnu.org; Sat, 07 May 2016 16:40:26 -0400 Original-Received: (qmail 99273 invoked by uid 3782); 7 May 2016 20:40:24 -0000 Original-Received: from acm.muc.de (p548C617B.dip0.t-ipconnect.de [84.140.97.123]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 07 May 2016 22:40:23 +0200 Original-Received: (qmail 4957 invoked by uid 1000); 7 May 2016 20:40:22 -0000 Content-Disposition: inline In-Reply-To: <83k2j5ekdc.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117966 Archived-At: Hello, Eli. On Sat, May 07, 2016 at 10:30:39PM +0300, Eli Zaretskii wrote: > > Date: Sat, 07 May 2016 21:57:50 +0300 > > From: Eli Zaretskii > > Cc: 23476@debbugs.gnu.org, andrewjmoreton@gmail.com > > Let's try to find a solution that doesn't involve unsafe values. > One way is to turn on by default the feature that fontifies these > macros correctly. Why does it have to be off by default? The feature is dependent on _configuration_: the '("IF_LINT") is that configuration. After reading the list of "noise macros", CC Mode has to turn them into a regexp with `regexp-opt'. This is what the `eval' part of the configuration is for. We could make `c-noise-macro-with-parens-names' (and `c-noise-macro-names') safe local variables (after all, they do nothing more than set regexps used for fontification). The call (eval . (c-make-noise-macro-regexps)) is more problematic; the eval "variable" is always going to be unsafe - it's got to be. One possible solution would be to enhance `define-derived-mode' with an :after-hook argument (define-minor-mode already has one), a lisp form which gets evaluated after the mode hooks have been run. `c-make-noise-macro-regexps' could be put into this form. I've reverted the change to .dir-locals.el which caused the problem. This should take the pressure off, so that we can find a good solution. -- Alan Mackenzie (Nuremberg, Germany).