From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Date: Thu, 18 Jun 2009 11:38:48 +0100 Message-ID: References: <8763exe7cr.fsf@iki.fi> <19001.42646.643895.66800@fencepost.gnu.org> Reply-To: Leo , 3430@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245322822 16274 80.91.229.12 (18 Jun 2009 11:00:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2009 11:00:22 +0000 (UTC) Cc: 3430@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 18 13:00:18 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MHFLs-0007kC-V3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 13:00:18 +0200 Original-Received: from localhost ([127.0.0.1]:39111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHFLs-0006e8-81 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 07:00:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHFJD-0005sT-IO for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 06:57:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHFJ7-0005q2-Nf for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 06:57:31 -0400 Original-Received: from [199.232.76.173] (port=43524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHFJ7-0005pw-IZ for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 06:57:25 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56330) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHFJ6-0000JV-Ct for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 06:57:25 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5IAvLvN012845; Thu, 18 Jun 2009 03:57:21 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5IAj48Y010980; Thu, 18 Jun 2009 03:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 10:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3430 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3430-submit@emacsbugs.donarmstrong.com id=B3430.124532153510231 (code B ref 3430); Thu, 18 Jun 2009 10:45:04 +0000 Original-Received: (at 3430) by emacsbugs.donarmstrong.com; 18 Jun 2009 10:38:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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/ Original-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 In-Reply-To: <19001.42646.643895.66800@fencepost.gnu.org> (Glenn Morris's message of "Wed, 17 Jun 2009 22:29:42 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 18 Jun 2009 06:57:31 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28812 Archived-At: 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