From: Glenn Morris Date: Fri, 19 Aug 2011 18:23:09 +0000 (-0400) Subject: files.el fix for bug#9331 X-Git-Tag: emacs-pretest-24.0.90~104^2~124^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9234ff7fcfa79c5e19b9d3a7ae88570f4f768b9a;p=emacs.git files.el fix for bug#9331 * lisp/files.el (hack-local-variables-prop-line, hack-local-variables): Downcase "Mode:". --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 38c536af62c..fcccc802203 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-08-19 Glenn Morris + + * files.el (hack-local-variables-prop-line, hack-local-variables): + Downcase "Mode:". (Bug#9331) + 2011-08-18 Chong Yidong * international/characters.el: Add L and R categories. diff --git a/lisp/files.el b/lisp/files.el index 6b8a352f20c..8c7e63dda14 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3003,9 +3003,10 @@ mode, if there is one, otherwise nil." "-mode")))) (or (equal keyname "coding") (condition-case nil - (push (cons (if (eq key 'eval) - 'eval - (indirect-variable key)) + (push (cons (cond ((eq key 'eval) 'eval) + ;; Downcase "Mode:". + ((equal keyname "mode") 'mode) + (t (indirect-variable key))) val) result) (error nil)))) (skip-chars-forward " \t;"))) @@ -3153,6 +3154,7 @@ major-mode." (var (let ((read-circle nil)) (read str))) val val2) + (and (eq var 'Mode) (setq var 'mode)) ;; Read the variable value. (skip-chars-forward "^:") (forward-char 1)