mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Correct hack-local-variables change from Thu May 5 11:05:49 2016 +0000
Prevent hack-local-variables being called from the fundamental-mode mode call early in normal-mode. This fixes bug #23460 and bug #23463. * lisp/files.el (normal-mode) Replace call to fundamental-mode with calls to the things it calls, with the exception of hack-local-variables. * etc/NEWS: Add an entry to note the calling of hack-local-variables at each major mode initialization.
This commit is contained in:
parent
81204b276f
commit
26171e0277
2 changed files with 9 additions and 1 deletions
|
|
@ -2316,7 +2316,10 @@ not set local variables (though we do notice a mode specified with -*-.)
|
|||
or from Lisp without specifying the optional argument FIND-FILE;
|
||||
in that case, this function acts as if `enable-local-variables' were t."
|
||||
(interactive)
|
||||
(fundamental-mode)
|
||||
(kill-all-local-variables)
|
||||
(unless delay-mode-hooks
|
||||
(run-hooks 'change-major-mode-after-body-hook
|
||||
'after-change-major-mode-hook))
|
||||
(let ((enable-local-variables (or (not find-file) enable-local-variables)))
|
||||
;; FIXME this is less efficient than it could be, since both
|
||||
;; s-a-m and h-l-v may parse the same regions, looking for "mode:".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue