aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/files.el5
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5b21d311bac..20528d7c070 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-05-26 Glenn Morris <rgm@gnu.org> 12011-05-26 Glenn Morris <rgm@gnu.org>
2 2
3 * files.el (hack-local-variables-prop-line, hack-local-variables):
4 Downcase mode names, as seems to be traditional.
5
3 * mail/emacsbug.el (report-emacs-bug): Mention checking From address. 6 * mail/emacsbug.el (report-emacs-bug): Mention checking From address.
4 (report-emacs-bug-hook): Try to validate the From address. (Bug#8038) 7 (report-emacs-bug-hook): Try to validate the From address. (Bug#8038)
5 8
diff --git a/lisp/files.el b/lisp/files.el
index 2dad1b0eeb5..9749e9d75ef 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3078,7 +3078,8 @@ mode, if there is one, otherwise nil."
3078 (if mode-only 3078 (if mode-only
3079 (and (equal keyname "mode") 3079 (and (equal keyname "mode")
3080 (setq result 3080 (setq result
3081 (intern (concat (symbol-name val) "-mode")))) 3081 (intern (concat (downcase (symbol-name val))
3082 "-mode"))))
3082 (or (equal keyname "coding") 3083 (or (equal keyname "coding")
3083 (condition-case nil 3084 (condition-case nil
3084 (push (cons (if (eq key 'eval) 3085 (push (cons (if (eq key 'eval)
@@ -3240,7 +3241,7 @@ major-mode."
3240 ;; deprecated, but try to reject them anyway. 3241 ;; deprecated, but try to reject them anyway.
3241 (not (string-match 3242 (not (string-match
3242 "-minor\\'" 3243 "-minor\\'"
3243 (setq val2 (symbol-name val)))) 3244 (setq val2 (downcase (symbol-name val)))))
3244 (setq result (intern (concat val2 "-mode")))) 3245 (setq result (intern (concat val2 "-mode"))))
3245 (unless (eq var 'coding) 3246 (unless (eq var 'coding)
3246 (condition-case nil 3247 (condition-case nil