From: Glenn Morris <rgm@gnu.org>
To: 3430@emacsbugs.donarmstrong.com
Subject: bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el
Date: Wed, 17 Jun 2009 22:40:26 -0400 [thread overview]
Message-ID: <19001.43290.648754.83426@fencepost.gnu.org> (raw)
In-Reply-To: <19001.42646.643895.66800@fencepost.gnu.org>
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)))))
next prev parent reply other threads:[~2009-06-18 2:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4k3a9s21ka.fsf@fencepost.gnu.org>
2009-05-31 14:37 ` bug#3430: 23.0.94; cannot enable two minor modes in .dir-locals.el Leo
2009-06-02 21:29 ` Leo
2009-06-15 17:26 ` Teemu Likonen
2009-06-18 0:42 ` Glenn Morris
2009-06-18 0:50 ` Processed (with 1 errors): " Emacs bug Tracking System
2009-06-18 1:40 ` Leo
2009-06-18 2:29 ` Glenn Morris
2009-06-18 2:35 ` Processed: " Emacs bug Tracking System
2009-06-18 2:40 ` Glenn Morris [this message]
2009-06-18 10:43 ` Leo
2009-06-18 10:38 ` Leo
2009-06-22 7:05 ` bug#3430: marked as done (23.0.94; cannot enable two minor modes in .dir-locals.el) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19001.43290.648754.83426@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=3430@emacsbugs.donarmstrong.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).