mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
Fix major-mode setting regression when there's a mode: cookie
* lisp/files.el (hack-local-variables): Fix regression in setting the major mode when there are mode: cookies in the file (bug#54993).
This commit is contained in:
parent
736fd8b258
commit
713a199705
3 changed files with 11 additions and 1 deletions
|
|
@ -3899,7 +3899,7 @@ inhibited."
|
|||
(with-demoted-errors "Directory-local variables error: %s"
|
||||
;; Note this is a no-op if enable-local-variables is nil.
|
||||
(hack-dir-local-variables))
|
||||
(let ((result (append (hack-local-variables--find-variables)
|
||||
(let ((result (append (hack-local-variables--find-variables handle-mode)
|
||||
(hack-local-variables-prop-line))))
|
||||
(if (and enable-local-variables
|
||||
(not (inhibit-local-variables-p)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue