aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-08-19 14:23:09 -0400
committerGlenn Morris2011-08-19 14:23:09 -0400
commit9234ff7fcfa79c5e19b9d3a7ae88570f4f768b9a (patch)
treed1e9d52c9e1ed115776f74322f687801b6d37c4e
parent823564e519dd1f3e81a79949e1abc033c9e7c0a5 (diff)
downloademacs-9234ff7fcfa79c5e19b9d3a7ae88570f4f768b9a.tar.gz
emacs-9234ff7fcfa79c5e19b9d3a7ae88570f4f768b9a.zip
files.el fix for bug#9331
* lisp/files.el (hack-local-variables-prop-line, hack-local-variables): Downcase "Mode:".
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/files.el8
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 38c536af62c..fcccc802203 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-08-19 Glenn Morris <rgm@gnu.org>
2
3 * files.el (hack-local-variables-prop-line, hack-local-variables):
4 Downcase "Mode:". (Bug#9331)
5
12011-08-18 Chong Yidong <cyd@stupidchicken.com> 62011-08-18 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * international/characters.el: Add L and R categories. 8 * 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."
3003 "-mode")))) 3003 "-mode"))))
3004 (or (equal keyname "coding") 3004 (or (equal keyname "coding")
3005 (condition-case nil 3005 (condition-case nil
3006 (push (cons (if (eq key 'eval) 3006 (push (cons (cond ((eq key 'eval) 'eval)
3007 'eval 3007 ;; Downcase "Mode:".
3008 (indirect-variable key)) 3008 ((equal keyname "mode") 'mode)
3009 (t (indirect-variable key)))
3009 val) result) 3010 val) result)
3010 (error nil)))) 3011 (error nil))))
3011 (skip-chars-forward " \t;"))) 3012 (skip-chars-forward " \t;")))
@@ -3153,6 +3154,7 @@ major-mode."
3153 (var (let ((read-circle nil)) 3154 (var (let ((read-circle nil))
3154 (read str))) 3155 (read str)))
3155 val val2) 3156 val val2)
3157 (and (eq var 'Mode) (setq var 'mode))
3156 ;; Read the variable value. 3158 ;; Read the variable value.
3157 (skip-chars-forward "^:") 3159 (skip-chars-forward "^:")
3158 (forward-char 1) 3160 (forward-char 1)