From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: bug#347: C mode asks twice about local variables Date: Wed, 30 Jul 2008 21:37:38 -0400 Message-ID: <87sktqsujh.fsf@stupidchicken.com> References: <20080601172143.GA5899@muc.de> <20080609143651.GA6098@muc.de> <20080609190750.GC6098@muc.de> <20080615220412.GF2448@muc.de> <20080726104434.GA3800@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217468278 29440 80.91.229.12 (31 Jul 2008 01:37:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 01:37:58 +0000 (UTC) Cc: Glenn Morris , Stefan Monnier , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 31 03:38:48 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KON7s-00018I-0c for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2008 03:38:44 +0200 Original-Received: from localhost ([127.0.0.1]:47563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KON6x-0005KR-Ke for ged-emacs-devel@m.gmane.org; Wed, 30 Jul 2008 21:37:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KON6u-0005KM-F0 for emacs-devel@gnu.org; Wed, 30 Jul 2008 21:37:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KON6s-0005Jj-VO for emacs-devel@gnu.org; Wed, 30 Jul 2008 21:37:44 -0400 Original-Received: from [199.232.76.173] (port=37704 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KON6s-0005Ja-IY for emacs-devel@gnu.org; Wed, 30 Jul 2008 21:37:42 -0400 Original-Received: from c-24-63-201-57.hsd1.ma.comcast.net ([24.63.201.57]:10006 helo=furry) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KON6o-0007YW-W7; Wed, 30 Jul 2008 21:37:39 -0400 Original-Received: by furry (Postfix, from userid 1000) id 116BDC056; Wed, 30 Jul 2008 21:37:38 -0400 (EDT) In-Reply-To: <20080726104434.GA3800@muc.de> (Alan Mackenzie's message of "Sat, 26 Jul 2008 10:44:34 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101774 Archived-At: Hi Alan, >> 2008-06-15 Alan Mackenzie > >> * progmodes/cc-mode.el (c-before-hack-hook): New function >> (Top Level): Install c-before-hack-hook on >> before-hack-local-variables-hook, rather than >> c-postprocess-file-styles on hack-local-variables-hook. > >> * files.el (hack-local-variables-alist): New variable. >> (before-hack-local-variables-hook): New hook. >> (hack-local-variables-filter): Refactored version of >> Hack-local-variables-apply. >> (hack-local-variables): Call `before-hack-local-variables-hook'. I've checked in a modified version of this patch. Could you test it out and see if it DTRT? Thanks!