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: Mon, 9 May 2016 18:22:06 +0000 Message-ID: <20160509182206.GC5316@acm.fritz.box> References: <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> <20160507204022.GE3660@acm.fritz.box> <83inyoeek8.fsf@gnu.org> <20160509110713.GA5316@acm.fritz.box> <83shxrcgxz.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 1462818203 5795 80.91.229.3 (9 May 2016 18:23:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 May 2016 18:23:23 +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 Mon May 09 20:23:13 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 1azppo-0005PG-5b for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2016 20:23:12 +0200 Original-Received: from localhost ([::1]:42843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azppn-00080V-Bb for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2016 14:23:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azppj-0007mP-6W for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 14:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azppe-0004by-RE for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 14:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azppe-0004bt-OL for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 14:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1azppe-0000dG-F3 for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 14:23: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: Mon, 09 May 2016 18:23: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.14628181332357 (code B ref 23476); Mon, 09 May 2016 18:23:02 +0000 Original-Received: (at 23476) by debbugs.gnu.org; 9 May 2016 18:22:13 +0000 Original-Received: from localhost ([127.0.0.1]:44680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azpor-0000bw-Hy for submit@debbugs.gnu.org; Mon, 09 May 2016 14:22:13 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:36892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azpoo-0000bn-RC for 23476@debbugs.gnu.org; Mon, 09 May 2016 14:22:11 -0400 Original-Received: (qmail 74241 invoked by uid 3782); 9 May 2016 18:22:08 -0000 Original-Received: from acm.muc.de (p4FC46F8C.dip0.t-ipconnect.de [79.196.111.140]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 09 May 2016 20:22:06 +0200 Original-Received: (qmail 18356 invoked by uid 1000); 9 May 2016 18:22:06 -0000 Content-Disposition: inline In-Reply-To: <83shxrcgxz.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:118032 Archived-At: Hello, Eli. On Mon, May 09, 2016 at 07:52:08PM +0300, Eli Zaretskii wrote: > > Date: Mon, 9 May 2016 11:07:13 +0000 > > Cc: 23476@debbugs.gnu.org > > From: Alan Mackenzie [ .... ] > > Right. I've amended C(etc.) Mode to use the new :after-hook parameter > > to define-derived-mode which I committed yesterday. The eval form which > > used to be in .dir-locals.el is now run by C Mode after the mode hooks > > (and file/dir local variables stuff) have been done. > Thanks. [ .... ] > > One way to get round this would be to add the safe-local-variable > > stuff into emacs-25, but nobody wants to change emacs-25 at this > > late stage. > Adding a variable that is not used for anything but declaring its safe > values should be OK, I think. > > Just how bad would it be to get the question about unsafe local > > variables when visiting master C files from emacs-25 emacs -Q? > It's better, but still an annoyance. And if the solution in non-Q > sessions is to accept the variable as safe anyway, then adding the > variable instead for the same purpose is not different, and should be > "safe" (pun intended ;-). OK, Done. (Full patch in master, minimal patch in emacs-25). -- Alan Mackenzie (Nuremberg, Germany).