> 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))) _______________________________________________ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex