diff options
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/files.el | 4 |
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 @@ | |||
| 1 | 2009-06-22 Glenn Morris <rgm@gnu.org> | 1 | 2009-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))))) |