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#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Date: Wed, 17 Jun 2009 22:40:26 -0400 Message-ID: <19001.43290.648754.83426@fencepost.gnu.org> References: <8763exe7cr.fsf@iki.fi> <19001.42646.643895.66800@fencepost.gnu.org> Reply-To: Glenn Morris , 3430@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245293856 7101 80.91.229.12 (18 Jun 2009 02:57:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2009 02:57:36 +0000 (UTC) To: 3430@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 18 04:57:33 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 1MH7oi-0001vp-Vl for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 04:57:33 +0200 Original-Received: from localhost ([127.0.0.1]:49113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH7oi-0007AB-GV for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 22:57:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MH7oe-00078f-Ab for bug-gnu-emacs@gnu.org; Wed, 17 Jun 2009 22:57:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MH7oZ-00073s-Kb for bug-gnu-emacs@gnu.org; Wed, 17 Jun 2009 22:57:27 -0400 Original-Received: from [199.232.76.173] (port=51620 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH7oZ-00073p-H0 for bug-gnu-emacs@gnu.org; Wed, 17 Jun 2009 22:57:23 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49956) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MH7oY-0005SD-TC for bug-gnu-emacs@gnu.org; Wed, 17 Jun 2009 22:57:23 -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 n5I2vLj3001567; Wed, 17 Jun 2009 19:57:21 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5I2o4wV032668; Wed, 17 Jun 2009 19:50:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 02:50: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.124529283631689 (code B ref 3430); Thu, 18 Jun 2009 02:50:04 +0000 Original-Received: (at 3430) by emacsbugs.donarmstrong.com; 18 Jun 2009 02:40:36 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 In-Reply-To: <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 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 17 Jun 2009 22:57:27 -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:28800 Archived-At: 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)))))