summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2011-05-26 21:00:53 -0400
committerGlenn Morris <rgm@gnu.org>2011-05-26 21:00:53 -0400
commite145f1881a460f77190b02968657d58b73ab8f56 (patch)
tree0c503660c9f37d5d2fcfb38d42ac523145440359 /etc
parent8c7c1f6d955a74dee347f8c4fa2538b8eeccbcbf (diff)
downloademacs-e145f1881a460f77190b02968657d58b73ab8f56.tar.gz
Make set-auto-mode respect mode: entries at the end of the file (bug#8586)
* lisp/files.el (set-auto-mode): Also respect mode: entries at the end of the file. * doc/lispref/modes.texi (Auto Major Mode): Update for set-auto-mode changes. * doc/emacs/custom.texi (Specifying File Variables): Major modes no longer need come first. * etc/NEWS: Mention this.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index a4ca2961aed..d6fa4117c4c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -993,6 +993,10 @@ being reverted, even if the buffer has a local `revert-buffer-function'.
** New variables `delayed-warnings-list' and `delayed-warnings-hook' allow
deferring warnings until the main command loop is executed.
++++
+** `set-auto-mode' now respects mode: local variables at the end of files,
+as well as those in the -*- line.
+
* Changes in Emacs 24.1 on non-free operating systems