auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUCTeX and "builtin latex mode" integration


From: Stefan Monnier
Subject: Re: AUCTeX and "builtin latex mode" integration
Date: Sun, 25 Sep 2022 10:01:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> 1. Suppose that the file has %%% mode:latex as file variable. When emacs
> opens this file, it runs `latex-mode' accordingly, which in turn runs
> AUCTeX `LaTeX-mode' by redirectiton. Then it sets `major-mode' to
> `LaTeX-mode'.  After that, `hack-local-variables' runs; it sees that
> `major mode' doesn't match the %%% mode:latex line and runs `latex-mode'
> again.

Why would `hack-local-variables` do that ?
AFAIK vanilla Emacs doesn't do such a thing (I just tried it in
Emacs-29 to confirm).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]