mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-03 08:30:09 +00:00
files.el fix for bug#9331
* lisp/files.el (hack-local-variables-prop-line, hack-local-variables): Downcase "Mode:".
This commit is contained in:
parent
823564e519
commit
9234ff7fcf
@ -1,3 +1,8 @@
|
||||
2011-08-19 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* files.el (hack-local-variables-prop-line, hack-local-variables):
|
||||
Downcase "Mode:". (Bug#9331)
|
||||
|
||||
2011-08-18 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* international/characters.el: Add L and R categories.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user