Commit 46253b34 authored by Glenn Morris's avatar Glenn Morris
Browse files

(dir-locals-collect-mode-variables): Allow for any number of `mode'

and `eval' entries.  (Bug#3430)
parent d5067810
2009-06-22 Glenn Morris <>
* files.el (dir-locals-collect-mode-variables): Allow for any number of
`mode' and `eval' entries. (Bug#3430)
* (ELCFILES): Add fadr.elc.
* calendar/appt.el (appt-make-list): Fix off-by-one error caused by
......@@ -3213,7 +3213,9 @@ Returns the new list."
(let* ((variable (car pair))
(value (cdr pair))
(slot (assq variable variables)))
(if slot
;; If variables are specified more than once, only use the last. (Why?)
;; The pseudo-variables mode and eval are different (bug#3430).
(if (and slot (not (memq variable '(mode eval))))
(setcdr slot value)
;; Need a new cons in case we setcdr later.
(push (cons variable value) variables)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment