aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-06-22 07:02:04 +0000
committerGlenn Morris2009-06-22 07:02:04 +0000
commit46253b344064c3cc340e6838bcb5f87d64a5260f (patch)
tree4310be03952b811421eeaab68436f113f660aecf
parentd5067810ac1a013e191ed271d8add2999c2fd5ee (diff)
downloademacs-46253b344064c3cc340e6838bcb5f87d64a5260f.tar.gz
emacs-46253b344064c3cc340e6838bcb5f87d64a5260f.zip
(dir-locals-collect-mode-variables): Allow for any number of `mode'
and `eval' entries. (Bug#3430)
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/files.el4
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a39a5249aaa..8d50839ea80 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-06-22 Glenn Morris <rgm@gnu.org> 12009-06-22 Glenn Morris <rgm@gnu.org>
2 2
3 * files.el (dir-locals-collect-mode-variables): Allow for any number of
4 `mode' and `eval' entries. (Bug#3430)
5
3 * Makefile.in (ELCFILES): Add fadr.elc. 6 * Makefile.in (ELCFILES): Add fadr.elc.
4 7
5 * calendar/appt.el (appt-make-list): Fix off-by-one error caused by 8 * calendar/appt.el (appt-make-list): Fix off-by-one error caused by
diff --git a/lisp/files.el b/lisp/files.el
index ff6b6927696..8718a9668c9 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3213,7 +3213,9 @@ Returns the new list."
3213 (let* ((variable (car pair)) 3213 (let* ((variable (car pair))
3214 (value (cdr pair)) 3214 (value (cdr pair))
3215 (slot (assq variable variables))) 3215 (slot (assq variable variables)))
3216 (if slot 3216 ;; If variables are specified more than once, only use the last. (Why?)
3217 ;; The pseudo-variables mode and eval are different (bug#3430).
3218 (if (and slot (not (memq variable '(mode eval))))
3217 (setcdr slot value) 3219 (setcdr slot value)
3218 ;; Need a new cons in case we setcdr later. 3220 ;; Need a new cons in case we setcdr later.
3219 (push (cons variable value) variables))))) 3221 (push (cons variable value) variables)))))