[Top][All Lists]

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

[Bug-AUCTeX] Re: Problem with TeX-modes

From: Ralf Angeli
Subject: [Bug-AUCTeX] Re: Problem with TeX-modes
Date: Sat, 01 Apr 2006 13:09:17 +0200

* David Kastrup (2006-03-30) writes:

> if I use M-x customize-variable RET TeX-modes RET
> and uncheck "LaTeX", set for current session and then load a LaTeX
> file, this bombs out.

Did this work before?

> The reason is that AUCTeX's tex-mode checks for the kind of file,
> decides that this is a LaTeX file, then calls Emacs' latex-mode.
> latex-mode calls tex-mode as part of its operation.
> Lather, rinse, repeat, overflow everything and the kitchen sink.
> Does anybody have a good idea how to deal with that problem?  The same
> problem occurs with plain TeX files when just unchecking plain-TeX in
> TeX-modes.

We could introduce a buffer-local variable which is set the first time
`TeX-tex-mode' is being run and which prevents `TeX-tex-mode' from
calling the specific mode (like `latex-mode') when it is run a second
time.  One could force it to run the specific mode by calling it with
(tex-mode 1) or doing something similar with a new dedicated argument
we could introduce.  I am not sure, however, if this is a good idea.
It rather feels like brute force.

> I think that the combination of smart format detection from AUCTeX
> (keep tex-mode checked) and dull Emacs mode should be permitted.

It's even essential to keep that intact.  Otherwise one would not be
able to enter other special modes provided by AUCTeX but not by
tex-mode.el, like ConTeXt mode.


reply via email to

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