[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69373: 14.0.3; hack-local-variables misbehaves after loading AUCTeX
From: |
Stefan Monnier |
Subject: |
bug#69373: 14.0.3; hack-local-variables misbehaves after loading AUCTeX |
Date: |
Sun, 25 Feb 2024 10:32:40 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Thanks for the report. I think this is more an Emacs issue than AUCTeX
> and should be assigned/fixed there.
Agreed.
I think the patch below is needed.
Tony, are you able to recompile your own Emacs to test that patch?
If so, I'd appreciate if you could try it to confirm that it fixes the
problem for you as well.
Stefan
diff --git a/lisp/files.el b/lisp/files.el
index 524385edc84..d1b7ab04b6f 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4353,9 +4366,7 @@ hack-one-local-variable
('mode
(let ((mode (intern (concat (downcase (symbol-name val))
"-mode"))))
- (unless (eq (indirect-function mode)
- (indirect-function major-mode))
- (funcall mode))))
+ (set-auto-mode-0 mode t)))
('eval
(pcase val
(`(add-hook ',hook . ,_) (hack-one-local-variable--obsolete hook)))