From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#8586: 23.3.50; Directory-local variable ignored when file-local variables set mode Date: Mon, 02 May 2011 20:45:11 -0400 Message-ID: References: <87vcxwzw47.fsf@sc3d.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1304384822 8609 80.91.229.12 (3 May 2011 01:07:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 May 2011 01:07:02 +0000 (UTC) Cc: 8586@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 03 03:06:58 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QH44o-0000Hp-4a for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2011 03:06:58 +0200 Original-Received: from localhost ([::1]:38703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH44n-0000Bx-95 for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 May 2011 21:06:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH44k-0000Bd-TM for bug-gnu-emacs@gnu.org; Mon, 02 May 2011 21:06:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QH44k-0008Nr-2T for bug-gnu-emacs@gnu.org; Mon, 02 May 2011 21:06:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH44j-0008Nn-Vp for bug-gnu-emacs@gnu.org; Mon, 02 May 2011 21:06:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QH3kY-00011u-Fc; Mon, 02 May 2011 20:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 May 2011 00:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8586-submit@debbugs.gnu.org id=B8586.13043835213893 (code B ref 8586); Tue, 03 May 2011 00:46:02 +0000 Original-Received: (at 8586) by debbugs.gnu.org; 3 May 2011 00:45:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QH3js-00010k-QI for submit@debbugs.gnu.org; Mon, 02 May 2011 20:45:20 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QH3jq-00010Z-Rb for 8586@debbugs.gnu.org; Mon, 02 May 2011 20:45:19 -0400 Original-Received: from localhost ([127.0.0.1]:37541) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH3jk-00070T-Ba; Mon, 02 May 2011 20:45:12 -0400 X-Spook: Glock SCUD missile INS Ft. Bragg United Nations argus X-Ran: (Zv%TM/Q0)+l]|zMo8G}g:\r\*v`^~g[U@0wio|2_A2-`JX"x+_#5oUk>l0A&:ok]rxggA X-Hue: red X-Attribution: GM In-Reply-To: <87vcxwzw47.fsf@sc3d.org> (Reuben Thomas's message of "Fri, 29 Apr 2011 20:38:16 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 02 May 2011 20:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46155 Archived-At: Reuben Thomas wrote: > The bug here is that the .dir-locals.el settings should be applied in > both cases AFAICS, but they are only applied in one, and ignored in the > other (even when the mode matches exactly!). Apparently, it is something > to do with the mode being set at a late stage. I imagine this is an unintended version of this: 57.3.4.1 Specifying File Variables [...] If `mode' is used to set a major mode, it should be the first "variable" in the list. Otherwise, the entries that precede it will usually have no effect, since most major modes kill all local variables as part of their initialization.