From e145f1881a460f77190b02968657d58b73ab8f56 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 26 May 2011 21:00:53 -0400 Subject: 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. --- etc/NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/NEWS b/etc/NEWS index a4ca2961ae..d6fa4117c4 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 -- cgit v1.2.3