Hi Florian, "Landis Florian (ladi)" <l...@zhaw.ch> writes:
> if I choose XeTeX with a comment-option at the end of the document, In Emacs jargon, they're called file local variables or local variable list. > opening the file results in Emacs saying tha max-lisp-eval-depth has > been exceeded. > > As a result, running the AUCTeX shortcuts for running LaTeX, does not > work (without defaults given). > > Leaving out below option and doing 'M-x TeX-engine-set RET xetex' > produces no hiccups. Hmm, I have no problems with opening a test file like this: --8<---------------cut here---------------start------------->8--- \documentclass{article} \title{Minimal working example} \author{Florian} \begin{document} \maketitle \begin{document} \section{What happens} This does not load AUCTeX correctly with the XeTeX commented option at the end of the document, but works fine without it. With the option, Emacs says that 'max-lisp-eval-depth' is exceeded and commands for compiling the document under AUCTeX are not available. Leaving out below option and doing 'M-x TeX-engine-set RET xetex' produces no hiccups. \end{document} %%% Local Variables: %%% mode: LaTeX %%% TeX-master: t %%% TeX-engine: xetex %%% coding: utf-8 %%% End: --8<---------------cut here---------------end--------------->8--- > Emacs : GNU Emacs 28.1 (build 2, x86_64-w64-mingw32) > of 2022-04-21 > Package: 14.0.3.2024-03-17 It seems you've installed AUCTeX from ELPA, maybe you can update (though I don't think that would solve the issue.) Do you get this issue also when starting with "emacs -Q"? You need to start emacs with -Q switch and then eval this in scratch: (progn (package-initialize t) (package-activate 'auctex)) Now open your .tex file. Best, Arash _______________________________________________ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex