From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Leo , 3430@debbugs.gnu.org Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 31 May 2009 14:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124378069115741 (code B ref -1); Sun, 31 May 2009 14:45:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 31 May 2009 14:38:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4VEc5gD015732 for ; Sun, 31 May 2009 07:38:06 -0700 Received: from mx10.gnu.org ([199.232.76.166]:48811) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MAmAm-0002Nn-Os for emacs-pretest-bug@gnu.org; Sun, 31 May 2009 10:38:04 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MAmAl-0003p3-5a for emacs-pretest-bug@gnu.org; Sun, 31 May 2009 10:38:04 -0400 Received: from ppsw-1.csi.cam.ac.uk ([131.111.8.131]:43230) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAmAk-0003oP-QG for emacs-pretest-bug@gnu.org; Sun, 31 May 2009 10:38:03 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]:64257 helo=victoria.local) by ppsw-1.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.151]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1MAmAi-0002kE-5u (Exim 4.70) for emacs-pretest-bug@gnu.org (return-path ); Sun, 31 May 2009 15:38:00 +0100 From: Leo To: emacs-pretest-bug@gnu.org Organization: University of Cambridge, England Date: Sun, 31 May 2009 15:37:59 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Please describe exactly what actions triggered the bug and the precise symptoms of the bug: My LaTeX project setting looks like this: ((latex-mode . ((auto-fill-function . nil) (fill-column . 90) (mode . outline-minor) (mode . longlines) (coding . "latin-1")))) i.e. I want to enable two minor modes for all .TeX files among other things. I start with Emacs -q and open a .TeX in that project, only longlines is enabled. Do you think this is a bug? Thank you. This is tested on GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of 2009-05-23 on 200.sub-75-216-116.myvzw.com Leo From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Leo , 3430@debbugs.gnu.org Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Jun 2009 21:35:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12439781968557 (code B ref -1); Tue, 02 Jun 2009 21:35:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Jun 2009 21:29:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.2 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n52LToN0008547 for ; Tue, 2 Jun 2009 14:29:52 -0700 Received: from mx10.gnu.org ([199.232.76.166]:53478) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MBbYM-0005HN-83 for emacs-pretest-bug@gnu.org; Tue, 02 Jun 2009 17:29:50 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MBbYJ-0004GW-6V for emacs-pretest-bug@gnu.org; Tue, 02 Jun 2009 17:29:49 -0400 Received: from ppsw-6.csi.cam.ac.uk ([131.111.8.136]:40388) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBbYI-0004Fr-Ck for emacs-pretest-bug@gnu.org; Tue, 02 Jun 2009 17:29:46 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:51304) by ppsw-6.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1MBbYH-0004wI-Jh (Exim 4.70) (return-path ); Tue, 02 Jun 2009 22:29:45 +0100 From: Leo To: 3430@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org References: Date: Tue, 02 Jun 2009 22:29:44 +0100 In-Reply-To: (Leo's message of "Sun, 31 May 2009 15:37:59 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-CrossAssassin-Score: 2 On 2009-05-31 15:37 +0100, Leo wrote: > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > My LaTeX project setting looks like this: > > ((latex-mode . ((auto-fill-function . nil) > (fill-column . 90) > (mode . outline-minor) > (mode . longlines) > (coding . "latin-1")))) > > i.e. I want to enable two minor modes for all .TeX files among other > things. > > I start with Emacs -q and open a .TeX in that project, only longlines is > enabled. Do you think this is a bug? Thank you. > > This is tested on GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.0, NS > apple-appkit-949.46) of 2009-05-23 on 200.sub-75-216-116.myvzw.com > > Leo Any comment on this bug? Can you reproduce it? Thank you. Leo From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Teemu Likonen , 3430@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 15 Jun 2009 17:35:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3430-submit@emacsbugs.donarmstrong.com id=B3430.12450867956854 (code B ref 3430); Mon, 15 Jun 2009 17:35:06 +0000 Received: (at 3430) by emacsbugs.donarmstrong.com; 15 Jun 2009 17:26:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from jenni2.inet.fi (mta-out.inet.fi [195.156.147.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5FHQU1g006847 for <3430@emacsbugs.donarmstrong.com>; Mon, 15 Jun 2009 10:26:31 -0700 Received: from mithlond.arda.local (80.220.180.181) by jenni2.inet.fi (8.5.014) id 49F5CB6401D109BF; Mon, 15 Jun 2009 20:26:29 +0300 Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MGFwy-0004CU-JB; Mon, 15 Jun 2009 20:26:28 +0300 From: Teemu Likonen To: Leo Cc: 3430@debbugs.gnu.org In-Reply-To: (Leo's message of "Tue, 02 Jun 2009 22:29:44 +0100") References: Date: Mon, 15 Jun 2009 20:26:28 +0300 Message-ID: <8763exe7cr.fsf@iki.fi> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On 2009-06-02 22:29 (+0100), Leo wrote: > On 2009-05-31 15:37 +0100, Leo wrote: >> Please describe exactly what actions triggered the bug >> and the precise symptoms of the bug: >> >> My LaTeX project setting looks like this: >> >> ((latex-mode . ((auto-fill-function . nil) >> (fill-column . 90) >> (mode . outline-minor) >> (mode . longlines) >> (coding . "latin-1")))) >> >> i.e. I want to enable two minor modes for all .TeX files among other >> things. >> >> I start with Emacs -q and open a .TeX in that project, only longlines is >> enabled. Do you think this is a bug? Thank you. >> >> This is tested on GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.0, NS >> apple-appkit-949.46) of 2009-05-23 on 200.sub-75-216-116.myvzw.com >> >> Leo > > Any comment on this bug? Can you reproduce it? Thank you. I can reproduce this. Just create a file .dir-locals.el somewhere with content like this: ((nil . ((mode . auto-fill) (mode . outline-minor)))) When files in that directory are opened only the last mode (outline-minor) in the alist is turned on. A side note: It seems that directory local variables feature is still in a half-finished shape: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1986 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3572 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3577 From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Glenn Morris , 3430@debbugs.gnu.org Resent-From: Glenn Morris Original-Sender: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 00:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3430-submit@emacsbugs.donarmstrong.com id=B3430.124528577811761 (code B ref 3430); Thu, 18 Jun 2009 00:50:04 +0000 Received: (at 3430) by emacsbugs.donarmstrong.com; 18 Jun 2009 00:42:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,HAS_BUG_NUMBER, VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5I0gr8J011754; Wed, 17 Jun 2009 17:42:55 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MH5iP-0001mK-9f; Wed, 17 Jun 2009 20:42:53 -0400 From: Glenn Morris To: 3430@debbugs.gnu.org References: <8763exe7cr.fsf@iki.fi> X-Spook: anarchy Belknap Consul PGP North Korea csim Zachawi X-Ran: hNO9yx"Hlb37P(}i&uKcK*fv[a8`Dco,fK2Wl,3)\]b\'KnlXhHH#hV%[(!F&}HK%kU`hm X-Hue: black X-Attribution: GM Date: Wed, 17 Jun 2009 20:42:53 -0400 In-Reply-To: <8763exe7cr.fsf@iki.fi> (Teemu Likonen's message of "Mon, 15 Jun 2009 20:26:28 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Glenn Morris tags 2355 merge 2355 3430 stop I should imagine this is the same issue as bug #2355. From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Leo , 3430@debbugs.gnu.org Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 01:45:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Received: via spool by 3430-submit@emacsbugs.donarmstrong.com id=B3430.124528924121791 (code B ref 3430); Thu, 18 Jun 2009 01:45:06 +0000 Received: (at 3430) by emacsbugs.donarmstrong.com; 18 Jun 2009 01:40:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ppsw-1.csi.cam.ac.uk (ppsw-1.csi.cam.ac.uk [131.111.8.131]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5I1eZ5Z021696 for <3430@emacsbugs.donarmstrong.com>; Wed, 17 Jun 2009 18:40:37 -0700 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:38956) by ppsw-1.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.151]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1MH6cE-0007VD-4h (Exim 4.70) (return-path ); Thu, 18 Jun 2009 02:40:34 +0100 From: Leo To: Glenn Morris Cc: 3430@debbugs.gnu.org References: <8763exe7cr.fsf@iki.fi> Date: Thu, 18 Jun 2009 02:40:33 +0100 In-Reply-To: (Glenn Morris's message of "Wed, 17 Jun 2009 20:42:53 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" On 2009-06-18 01:42 +0100, Glenn Morris wrote: > tags 2355 > merge 2355 3430 > stop > > I should imagine this is the same issue as bug #2355. Are you sure they are the same? If you put two minor modes at the end of a file in the local variables section, it works without any problem. -- Leo's Emacs uptime: 7 days, 12 hours, 0 minutes, 36 seconds From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Glenn Morris , 3430@debbugs.gnu.org Resent-From: Glenn Morris Original-Sender: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 02:35:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug Received: via spool by 3430-submit@emacsbugs.donarmstrong.com id=B3430.124529218829527 (code B ref 3430); Thu, 18 Jun 2009 02:35:05 +0000 Received: (at 3430) by emacsbugs.donarmstrong.com; 18 Jun 2009 02:29:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.1 required=4.0 tests=AWL,HAS_BUG_NUMBER, VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5I2ThVU029522; Wed, 17 Jun 2009 19:29:45 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MH7Nm-00058d-MZ; Wed, 17 Jun 2009 22:29:42 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19001.42646.643895.66800@fencepost.gnu.org> Date: Wed, 17 Jun 2009 22:29:42 -0400 From: Glenn Morris To: 3430@debbugs.gnu.org In-Reply-To: References: <8763exe7cr.fsf@iki.fi> X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: YUp-[BD tags 2355 = unmerge 3430 stop Leo wrote (on Thu, 18 Jun 2009 at 02:40 +0100): > Are you sure they are the same? If you put two minor modes at the end of > a file in the local variables section, it works without any problem. OK; unimagining, this is because dir-locals-collect-mode-variables has the effect of filtering the dir-locals variables list so that only one value is allowed for any given key, and the last one wins. From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Glenn Morris , 3430@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 02:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3430-submit@emacsbugs.donarmstrong.com id=B3430.124529283631689 (code B ref 3430); Thu, 18 Jun 2009 02:50:04 +0000 Received: (at 3430) by emacsbugs.donarmstrong.com; 18 Jun 2009 02:40:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-8.3 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5I2eVCd031420 for <3430@emacsbugs.donarmstrong.com>; Wed, 17 Jun 2009 19:40:32 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MH7YA-0005W1-Lm; Wed, 17 Jun 2009 22:40:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19001.43290.648754.83426@fencepost.gnu.org> Date: Wed, 17 Jun 2009 22:40:26 -0400 From: Glenn Morris To: 3430@debbugs.gnu.org In-Reply-To: <19001.42646.643895.66800@fencepost.gnu.org> References: <8763exe7cr.fsf@iki.fi> <19001.42646.643895.66800@fencepost.gnu.org> X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: blue X-Ran: n":c{!}CSFScCR-D~C0<[J"kOSk9`>ti)/4DfH[>G0(B4VB}NcXPu).]8g6)iT!W`1CXZk Possible hack follows, but I don't know what the point of the dir-locals-collect-mode-variables function is supposed to be (an optimization to avoid settings things twice?). *************** *** 3213,3219 **** (let* ((variable (car pair)) (value (cdr pair)) (slot (assq variable variables))) ! (if slot (setcdr slot value) ;; Need a new cons in case we setcdr later. (push (cons variable value) variables))))) --- 3214,3222 ---- (let* ((variable (car pair)) (value (cdr pair)) (slot (assq variable variables))) ! ;; If variables are specified more than once, only use the last. ! ;; But any number of `modes' (assumed to be minor) are allowed. ! (if (and slot (not (eq variable 'mode))) (setcdr slot value) ;; Need a new cons in case we setcdr later. (push (cons variable value) variables))))) From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Leo , 3430@debbugs.gnu.org Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 10:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3430-submit@emacsbugs.donarmstrong.com id=B3430.124532153510231 (code B ref 3430); Thu, 18 Jun 2009 10:45:04 +0000 Received: (at 3430) by emacsbugs.donarmstrong.com; 18 Jun 2009 10:38:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ppsw-7.csi.cam.ac.uk (ppsw-7.csi.cam.ac.uk [131.111.8.137]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5IAco6s010225 for <3430@emacsbugs.donarmstrong.com>; Thu, 18 Jun 2009 03:38:51 -0700 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:49401) by ppsw-7.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1MHF16-00027G-NY (Exim 4.70) (return-path ); Thu, 18 Jun 2009 11:38:48 +0100 From: Leo To: Glenn Morris Cc: 3430@debbugs.gnu.org References: <8763exe7cr.fsf@iki.fi> <19001.42646.643895.66800@fencepost.gnu.org> Date: Thu, 18 Jun 2009 11:38:48 +0100 In-Reply-To: <19001.42646.643895.66800@fencepost.gnu.org> (Glenn Morris's message of "Wed, 17 Jun 2009 22:29:42 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" On 2009-06-18 03:29 +0100, Glenn Morris wrote: >> Are you sure they are the same? If you put two minor modes at the end of >> a file in the local variables section, it works without any problem. > > OK; unimagining, this is because dir-locals-collect-mode-variables has > the effect of filtering the dir-locals variables list so that only one > value is allowed for any given key, and the last one wins. Thank you for your interest and attempt in fixing this bug. It seems to me that is done in dir-locals-collect-variables. Filtering out the duplications is fine for variables that can only have one value but not all variables fall into that. For example, there is 'mode' and 'eval' and possibly others. -- Leo's Emacs uptime: 7 days, 20 hours, 41 minutes, 23 seconds From unknown Mon Jun 23 02:25:43 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Reply-To: Leo , 3430@debbugs.gnu.org Resent-From: Leo Original-Sender: news Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 10:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124532183310906 (code B ref -1); Thu, 18 Jun 2009 10:50:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Jun 2009 10:43:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5IAhlW1010900 for ; Thu, 18 Jun 2009 03:43:50 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHF5u-0004gm-PZ for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 06:43:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHF5p-0004Y7-Hm for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 06:43:45 -0400 Received: from [199.232.76.173] (port=36552 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHF5p-0004Xv-Eh for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 06:43:41 -0400 Received: from main.gmane.org ([80.91.229.2]:37147 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHF5o-0006Lg-JA for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 06:43:40 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MHF5e-0006eY-J1 for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 10:43:30 +0000 Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jun 2009 10:43:30 +0000 Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jun 2009 10:43:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Leo Date: Thu, 18 Jun 2009 11:43:19 +0100 Organization: University of Cambridge Lines: 9 Message-ID: References: <8763exe7cr.fsf@iki.fi> <19001.42646.643895.66800@fencepost.gnu.org> <19001.43290.648754.83426@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Uiv0x9bukQbV9uqFMroNaVc1rR4= Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) On 2009-06-18 03:40 +0100, Glenn Morris wrote: > Possible hack follows, but I don't know what the point of the > dir-locals-collect-mode-variables function is supposed to be (an > optimization to avoid settings things twice?). I hope a fix is reached soonish. Thank you. -- Leo's Emacs uptime: 7 days, 21 hours, 0 minutes, 50 seconds From unknown Mon Jun 23 02:25:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Leo Subject: bug#3430 closed by Glenn Morris (Re: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el) Message-ID: References: <4k3a9s21ka.fsf@fencepost.gnu.org> X-Emacs-PR-Message: they-closed 3430 X-Emacs-PR-Package: emacs Reply-To: 3430@debbugs.gnu.org Date: Mon, 22 Jun 2009 07:05:07 +0000 Content-Type: multipart/mixed; boundary="----------=_1245654307-24136-1" This is a multi-part message in MIME format... ------------=_1245654307-24136-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #3430: 23.0.94; cannot enable two minor modes in .dir-locals.el It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 3430: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3430 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1245654307-24136-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3430-done) by emacsbugs.donarmstrong.com; 22 Jun 2009 07:02:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-8.3 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5M72kOn023690 for <3430-done@emacsbugs.donarmstrong.com>; Mon, 22 Jun 2009 00:02:48 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MIdYD-0003on-IK; Mon, 22 Jun 2009 03:02:45 -0400 From: Glenn Morris To: 3430-done@debbugs.gnu.org Subject: Re: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el References: <8763exe7cr.fsf@iki.fi> <19001.42646.643895.66800@fencepost.gnu.org> <19001.43290.648754.83426@fencepost.gnu.org> X-Spook: Putin number key bomb AVN argus IMF World Trade Center X-Ran: C4nS%tFPQndy8?%[kIF`iaE6) (Glenn Morris's message of "Wed, 17 Jun 2009 22:40:26 -0400") Message-ID: <4k3a9s21ka.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Fixed in trunk for 23.2 * files.el (dir-locals-collect-mode-variables): Allow for any number of `mode' and `eval' entries. (Bug#3430) ------------=_1245654307-24136-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 31 May 2009 14:38:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4VEc5gD015732 for ; Sun, 31 May 2009 07:38:06 -0700 Received: from mx10.gnu.org ([199.232.76.166]:48811) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MAmAm-0002Nn-Os for emacs-pretest-bug@gnu.org; Sun, 31 May 2009 10:38:04 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MAmAl-0003p3-5a for emacs-pretest-bug@gnu.org; Sun, 31 May 2009 10:38:04 -0400 Received: from ppsw-1.csi.cam.ac.uk ([131.111.8.131]:43230) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAmAk-0003oP-QG for emacs-pretest-bug@gnu.org; Sun, 31 May 2009 10:38:03 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]:64257 helo=victoria.local) by ppsw-1.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.151]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1MAmAi-0002kE-5u (Exim 4.70) for emacs-pretest-bug@gnu.org (return-path ); Sun, 31 May 2009 15:38:00 +0100 From: Leo To: emacs-pretest-bug@gnu.org Subject: 23.0.94; cannot enable two minor modes in .dir-locals.el Organization: University of Cambridge, England Date: Sun, 31 May 2009 15:37:59 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Please describe exactly what actions triggered the bug and the precise symptoms of the bug: My LaTeX project setting looks like this: ((latex-mode . ((auto-fill-function . nil) (fill-column . 90) (mode . outline-minor) (mode . longlines) (coding . "latin-1")))) i.e. I want to enable two minor modes for all .TeX files among other things. I start with Emacs -q and open a .TeX in that project, only longlines is enabled. Do you think this is a bug? Thank you. This is tested on GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of 2009-05-23 on 200.sub-75-216-116.myvzw.com Leo ------------=_1245654307-24136-1--