From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Blunderbuss ".dir-locals.el" raises everything in its path!! Date: Mon, 13 Jul 2009 20:32:42 -0400 Message-ID: References: <20090712144137.GB2524@muc.de> <87hbxhony6.fsf@stupidchicken.com> <20090712180623.GA1009@muc.de> <87k52dycha.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247531592 27019 80.91.229.12 (14 Jul 2009 00:33:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 00:33:12 +0000 (UTC) Cc: Alan Mackenzie , Jan =?iso-8859-1?Q?Dj=E4rv?= , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 14 02:33:04 2009 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 1MQVx9-0001MF-FM for ged-emacs-devel@m.gmane.org; Tue, 14 Jul 2009 02:33:03 +0200 Original-Received: from localhost ([127.0.0.1]:36063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQVx8-0007uD-RO for ged-emacs-devel@m.gmane.org; Mon, 13 Jul 2009 20:33:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQVwu-0007kg-Vd for emacs-devel@gnu.org; Mon, 13 Jul 2009 20:32:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQVwq-0007dl-6w for emacs-devel@gnu.org; Mon, 13 Jul 2009 20:32:48 -0400 Original-Received: from [199.232.76.173] (port=47979 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQVwq-0007da-2h for emacs-devel@gnu.org; Mon, 13 Jul 2009 20:32:44 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:39223 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQVwo-0005hG-8J for emacs-devel@gnu.org; Mon, 13 Jul 2009 20:32:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar0EAJxvW0pMCpbp/2dsb2JhbACBUc1dgj6BSwWGag X-IronPort-AV: E=Sophos;i="4.42,393,1243828800"; d="scan'208";a="41521449" Original-Received: from 76-10-150-233.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.233]) by ironport2-out.teksavvy.com with ESMTP; 13 Jul 2009 20:32:33 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 490867EF7; Mon, 13 Jul 2009 20:32:42 -0400 (EDT) In-Reply-To: <87k52dycha.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 12 Jul 2009 14:37:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:112433 Archived-At: >> In particular, the File Style and local variables settings are rarely >> used precision instruments, for configuring unusual files unusually. > This indicates that we should not set c-file-style in the .dir-locals.el > file of the Emacs source tree. Actually, I wonder: why would it be correct to use another style than GNU for C files inside the Emacs source tree? I don't think it's a feature that dir-locals.el takes precedence over mode-hooks (it's more of an accident that we consider sufficiently harmless not to fix it, especially since a fix would probably be difficult/inconvenient/buggy), but in this case it seems to provide just the behavior we want. I mean we do want to "impose" the GNU style in our files, no matter what the user usually prefers. What am I missing? Stefan