[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 b7cef701cb5: * lisp/files.el (hack-one-local-variable): Use `se
From: |
Stefan Monnier |
Subject: |
emacs-29 b7cef701cb5: * lisp/files.el (hack-one-local-variable): Use `set-auto-mode-0` |
Date: |
Sun, 25 Feb 2024 11:43:49 -0500 (EST) |
branch: emacs-29
commit b7cef701cb587ecb66f192e4d41aa202645560e0
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/files.el (hack-one-local-variable): Use `set-auto-mode-0`
This fixes bug#69373.
---
lisp/files.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lisp/files.el b/lisp/files.el
index 1e7f00e4254..c0d26b2343c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4238,10 +4238,8 @@ already the major mode."
(pcase var
('mode
(let ((mode (intern (concat (downcase (symbol-name val))
- "-mode"))))
- (unless (eq (indirect-function mode)
- (indirect-function major-mode))
- (funcall mode))))
+ "-mode"))))
+ (set-auto-mode-0 mode t)))
('eval
(pcase val
(`(add-hook ',hook . ,_) (hack-one-local-variable--obsolete hook)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 b7cef701cb5: * lisp/files.el (hack-one-local-variable): Use `set-auto-mode-0`,
Stefan Monnier <=