GNU bug report logs -
#70817
14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option
Previous Next
Reported by: "Landis Florian (ladi)" <ladi <at> zhaw.ch>
Date: Tue, 7 May 2024 11:08:01 UTC
Severity: normal
Tags: notabug
Found in version 14.0.3.2024
Done: Ikumi Keita <ikumi <at> ikumi.que.jp>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Florian,
"Landis Florian (ladi)" <ladi <at> zhaw.ch> writes:
> You're right, AUCTeX loads the file just fine if emacs is started with
> the -Q switch.
Just to be sure, the recipe is to save the file on your HD:
--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---
And then:
• Uninstall AUCTeX with 'M-x package-delete RET auctex RET'
• Restart Emacs and install AUCTeX via the package interface
• Start Emacs with "emacs -Q"
• In scratch, eval the following:
(progn
(package-initialize t)
(package-activate 'auctex))
• Open the .tex file above
• See if it works
• Also do 'M-x list-load-path-shadows RET' and check what it tells
> Does that mean that there's something else in my configuration of
> Emacs (or AUCTeX?) that is tripping AUCTeX up?
Yes, that might be one conclusion.
> I wouldn't even know where to start looking...
The first step is described above: If it works in a clean environment,
we can proceed; and you might get help here from others :-)
> In the meantime, the solution that works for me is to reduce the local
> variable list to:
>
> %%% Local Variables:
> %%% TeX-engine: xetex
> %%% coding: utf-8
> %%% End:
>
> I think the line
>
> %%% mode: latex
>
> is the culprit in my case. Was there an infinite loop between AUCTeX
> loading latex-mode automatically and again due to the local variables?
I depends, it might be that you've loaded the built-in latex-mode. So
again, please follow the recipe above and tell us what you get.
Best, Arash
This bug report was last modified 1 year and 64 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.