Package: auctex;
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70817 in the body.
You can then email your comments to 70817 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
View this report as an mbox folder, status mbox, maintainer mbox
bug-auctex <at> gnu.org
:bug#70817
; Package auctex
.
(Tue, 07 May 2024 11:08:02 GMT) Full text and rfc822 format available."Landis Florian (ladi)" <ladi <at> zhaw.ch>
:bug-auctex <at> gnu.org
.
(Tue, 07 May 2024 11:08:02 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: "Landis Florian (ladi)" <ladi <at> zhaw.ch> To: "bug-auctex <at> gnu.org" <bug-auctex <at> gnu.org> Subject: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Tue, 7 May 2024 08:45:25 +0000
Dear all, if I choose XeTeX with a comment-option at the end of the document, 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. Best, Florian Minimal non-working example: """ \documentclass{article} \title{Minimal working example} \author{Florian} \begin{document} \maketitle \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} % Let's try XeTeX: %%% Local Variables: %%% coding: utf-8 %%% mode: latex %%% TeX-engine: xetex %%% End: """ Emacs : GNU Emacs 28.1 (build 2, x86_64-w64-mingw32) of 2022-04-21 Package: 14.0.3.2024-03-17 current state: ============== (setq AUCTeX-date "2024-03-17" window-system 'w32 LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "c:/Users/ladi/.emacs.d/elpa/auctex-14.0.4/style" "c:/Users/ladi/.emacs.d/auctex/auto" "c:/Users/ladi/.emacs.d/auctex/style" "auto" "style") TeX-auto-save nil TeX-parse-self nil TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %(output-dir) %t" TeX-run-TeX nil (plain-TeX-mode AmSTeX-mode Texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil (LaTeX-mode docTeX-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t" TeX-run-compile nil (Texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t" TeX-run-compile nil (Texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %t" TeX-run-TeX nil (AmSTeX-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (ConTeXt-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (ConTeXt-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode ConTeXt-mode) :help "Run BibTeX") ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Run Biber") ("Texindex" "texindex %s.??" TeX-run-command nil (Texinfo-mode) :help "Run Texindex") ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil (Texinfo-mode) :help "Run Texi2dvi or Texi2pdf") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Run makeglossaries to create glossary file") ("Index" "makeindex %(O?idx)" TeX-run-index nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Run makeindex to create index file") ("upMendex" "upmendex %(O?idx)" TeX-run-index t (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode Texinfo-mode) :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (LaTeX-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (LaTeX-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command")) ) -- Dr. Florian Landis ZHAW School of Management and Law Center for Energy and the Environment Gertrudstrasse 8 Postfach 8401 Winterthur Schweiz
bug-auctex <at> gnu.org
:bug#70817
; Package auctex
.
(Tue, 07 May 2024 13:44:01 GMT) Full text and rfc822 format available.Message #8 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: Arash Esbati <arash <at> gnu.org> To: "Landis Florian (ladi)" <ladi <at> zhaw.ch> Cc: 70817 <at> debbugs.gnu.org Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Tue, 07 May 2024 15:42:39 +0200
Hi Florian, "Landis Florian (ladi)" <ladi <at> 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 <at> gnu.org
:bug#70817
; Package auctex
.
(Wed, 08 May 2024 10:47:02 GMT) Full text and rfc822 format available.Message #11 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: Arash Esbati <arash <at> gnu.org> To: "Landis Florian (ladi)" <ladi <at> zhaw.ch> Cc: 70817 <at> debbugs.gnu.org Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Wed, 08 May 2024 12:45:58 +0200
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
bug-auctex <at> gnu.org
:bug#70817
; Package auctex
.
(Wed, 08 May 2024 13:55:02 GMT) Full text and rfc822 format available.Message #14 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: "Landis Florian (ladi)" <ladi <at> zhaw.ch> To: "70817 <at> debbugs.gnu.org" <70817 <at> debbugs.gnu.org> Cc: Arash Esbati <arash <at> gnu.org> Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Wed, 8 May 2024 06:56:22 +0000
Hi Arash, You're right, AUCTeX loads the file just fine if emacs is started with the -Q switch. Does that mean that there's something else in my configuration of Emacs (or AUCTeX?) that is tripping AUCTeX up? I wouldn't even know where to start looking... 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? Best, Florian Am 07.05.2024 um 15:42 schrieb Arash Esbati: > Hi Florian, > > "Landis Florian (ladi)" <ladi <at> 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 <at> gnu.org
:bug#70817
; Package auctex
.
(Wed, 08 May 2024 13:55:03 GMT) Full text and rfc822 format available.Message #17 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: "Landis Florian (ladi)" <ladi <at> zhaw.ch> To: Arash Esbati <arash <at> gnu.org> Cc: "70817 <at> debbugs.gnu.org" <70817 <at> debbugs.gnu.org> Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Wed, 8 May 2024 11:13:14 +0000
[Message part 1 (text/plain, inline)]
Hi Arash, dear all, I now did the uninstall, restart, reinstall. With -Q switch and evaluating (progn (package-initialize t) (package-activate 'auctex)) I open the file (which still works smoothly) and run 'M-x list-load-path-shadows RET' to get: No Emacs Lisp load-path shadowings were found With neither the -Q switch nor above evaluations, I get File local-variables error: (error Lisp nesting exceeds ‘max-lisp-eval-depth’) upon opening the file and <home>/.emacs.d/elpa/transient-20240506.1559/transient hides c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/transient <home>/.emacs.d/elpa/seq-2.24/seq hides c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/emacs-lisp/seq 2 Emacs Lisp load-path shadowings were found upon doing 'M-x list-load-path-shadow RET'. Best, Florian Am 08.05.2024 um 12:46 schrieb Arash Esbati: Hi Florian, "Landis Florian (ladi)" <ladi <at> zhaw.ch><mailto: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
[Message part 2 (text/html, inline)]
bug-auctex <at> gnu.org
:bug#70817
; Package auctex
.
(Wed, 08 May 2024 14:43:02 GMT) Full text and rfc822 format available.Message #20 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: Arash Esbati <arash <at> gnu.org> To: "Landis Florian (ladi)" <ladi <at> zhaw.ch> Cc: 70817 <at> debbugs.gnu.org Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Wed, 08 May 2024 16:41:50 +0200
"Landis Florian (ladi)" <ladi <at> zhaw.ch> writes: > Hi Arash, dear all, > > I now did the uninstall, restart, reinstall. With -Q switch and evaluating > > (progn > (package-initialize t) > (package-activate 'auctex)) > I open the file (which still works smoothly) and run 'M-x > list-load-path-shadows RET' to get: > > No Emacs Lisp load-path shadowings were found Ok, so AUCTeX works just fine in a vanilla setup. > With neither the -Q switch nor above evaluations, I get > > File local-variables error: (error Lisp nesting exceeds ‘max-lisp-eval-depth’) > > upon opening the file and So you get the issue when you start emacs with your setup, right? If so, we have dig through your config file. You can try 2 things: • Restart Emacs, do 'M-x toggle-debug-on-error RET' and then open the file in order to trigger the issue. See what the debugger says. • Rename your init file and make a new one containing only your AUCTeX setup. Then restart Emacs, do 'M-x toggle-debug-on-error RET' and open your .tex file again. > <home>/.emacs.d/elpa/transient-20240506.1559/transient hides c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/transient > <home>/.emacs.d/elpa/seq-2.24/seq hides c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/emacs-lisp/seq > > 2 Emacs Lisp load-path shadowings were found > > upon doing 'M-x list-load-path-shadow RET'. This should be harmless. transient and seq are both in Emacs core, but I can't tell if with 28 or 29. You can try to remove them from the package interface, it will complain if they are needed as dependencies. Best, Arash
bug-auctex <at> gnu.org
:bug#70817
; Package auctex
.
(Thu, 09 May 2024 10:36:03 GMT) Full text and rfc822 format available.Message #23 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: "Landis Florian (ladi)" <ladi <at> zhaw.ch> To: Arash Esbati <arash <at> gnu.org> Cc: "70817 <at> debbugs.gnu.org" <70817 <at> debbugs.gnu.org> Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Thu, 9 May 2024 10:26:06 +0000
[Message part 1 (text/plain, inline)]
Hi Arash, hi all, Am 08.05.2024 um 16:41 schrieb Arash Esbati: Ok, so AUCTeX works just fine in a vanilla setup. So you get the issue when you start emacs with your setup, right? If so, we have dig through your config file. You can try 2 things: • Restart Emacs, do 'M-x toggle-debug-on-error RET' and then open the file in order to trigger the issue. See what the debugger says. Here comes the output of that, but shortened, since there's a lot of repetition going on... Debugger entered--Lisp error: (error "Lisp nesting exceeds ‘max-lisp-eval-depth’") #f(compiled-function (f1 f2) #<bytecode 0x125751fb83a24a0d>)(text-mode-context-menu t) add-hook(context-menu-functions text-mode-context-menu 10 t) text-mode() TeX-mode() ;; this repeats A LOT: ;; ---- LaTeX-mode() apply(LaTeX-mode nil) latex-mode() #<subr hack-one-local-variable>(mode LaTeX) apply(#<subr hack-one-local-variable> (mode LaTeX)) hack-one-local-variable(mode LaTeX) hack-local-variables-apply() hack-local-variables(no-mode) run-mode-hooks(LaTeX-mode-hook) ;; ---- LaTeX-mode() apply(LaTeX-mode nil) latex-mode() set-auto-mode-0(latex-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(#<buffer mwe.tex> "~/Desktop/mwe.tex" nil nil "~/Desktop/mwe.tex" (1125899907329631 2720378480)) find-file-noselect("~/Desktop/mwe.tex" nil nil t) find-file("~/Desktop/mwe.tex" t) funcall-interactively(find-file "~/Desktop/mwe.tex" t) command-execute(find-file) Does it help, if I tell you that the function LaTeX-mode() is from ~/.emacs.d/elpa/auctex-14.0.4/latex.el and latex-mode() is from c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/textmodes/tex-mode.el ? When I check the buffers, mwe.tex is in 'Text' mode. • Rename your init file and make a new one containing only your AUCTeX setup. Then restart Emacs, do 'M-x toggle-debug-on-error RET' and open your .tex file again. I reduce init.el to (most comments ';;' ommitted) --8<---------------cut here---------------start------------->8--- (custom-set-variables '(package-selected-packages '(auctex))) (prefer-coding-system 'utf-8) --8<---------------cut here---------------end--------------->8--- Funny: WITHOUT toggle-debug-on-error, here the file opens and reloads (C-x C-v) just fine, AUCTeX works. WITH toggle-debug-on-error, opening the file produces the following (the buffer list still shows the file in latex mode but reloading (C-x C-v) the file after that gives a buffer in 'Fundamental' mode)... Debugger entered--Lisp error: (error "Lisp nesting exceeds ‘max-lisp-eval-depth’") after-insert-file-set-coding(223 nil) insert-file-contents-literally("c:/Users/ladi/.emacs.d/elpa/auctex-14.0.4/images/s..." nil 0 8192) image-type-from-file-header("c:/Users/ladi/.emacs.d/elpa/auctex-14.0.4/images/s...") image-type("c:/Users/ladi/.emacs.d/elpa/auctex-14.0.4/images/s..." nil nil) create-image("c:/Users/ladi/.emacs.d/elpa/auctex-14.0.4/images/s...") toolbarx-find-image("sep") toolbarx-emacs-add-button((separator :image "sep" :command t :enable nil :help "") (:used-symbols undo paste copy cut save-buffer kill-buffer dired open-file new-file nil) (keymap (new-file menu-item "New File" find-file :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Specify a new file's name, to edit the file" :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :vert-only t) (open-file menu-item "Open File" menu-find-file-existing :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Read a file into an Emacs buffer" :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :vert-only t) (dired menu-item "Dired" dired :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Read a directory, operate on its files" :vert-only t) (kill-buffer menu-item "Kill Buffer" kill-this-buffer :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Discard current buffer" :enable (kill-this-buffer-enabled-p) :vert-only t) (save-buffer menu-item "Save Buffer" save-buffer :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Save current buffer to its file" :enable (and (buffer-modified-p) (buffer-file-name) (not (window-minibuffer-p (frame-selected-window menu-updating-frame)))) :visible (or buffer-file-name (not (eq 'special (get major-mode 'mode-class)))) :vert-only t) (cut menu-item "Cut" clipboard-kill-region :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Delete text in region and copy it to the clipboard" :visible (not (eq 'special (get major-mode 'mode-class))) :vert-only t) (copy menu-item "Copy" clipboard-kill-ring-save :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Copy text in region to the clipboard" :vert-only t) (paste menu-item "Paste" clipboard-yank :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Paste text from clipboard" :visible (not (eq 'special (get major-mode 'mode-class))) :vert-only t) (undo menu-item "Undo" undo :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1...") :help "Undo last operation" :enable (and (not buffer-read-only) (not (eq t buffer-undo-list)) (if (eq last-command #'undo) pending-undo-list (consp buffer-undo-list))) :visible (not (eq 'special (get major-mode 'mode-class))) :vert-only t))) toolbarx-emacs-refresh-process-button-or-insert-list(((new-file :image "new" :command find-file :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :help "Specify a new file's name, to edit the file") (open-file :image "open" :command menu-find-file-existing :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :help "Read a file into an Emacs buffer") (dired :image "diropen" :command dired :help "Read a directory, operate on its files") (kill-buffer :image "close" :command kill-this-buffer :enable (kill-this-buffer-enabled-p) :help "Discard current buffer") (save-buffer :image "save" :command save-buffer :enable (and (buffer-modified-p) (buffer-file-name) (not (window-minibuffer-p (frame-selected-window menu-updating-frame)))) :visible (or buffer-file-name (not (eq 'special (get major-mode ...)))) :help "Save current buffer to its file") (cut :image "cut" :command clipboard-kill-region :visible (not (eq 'special (get major-mode 'mode-class))) :help "Delete text in region and copy it to the cli...") (copy :image "copy" :command clipboard-kill-ring-save :help "Copy text in region to the clipboard") (paste :image "paste" :command clipboard-yank :visible (not (eq 'special (get major-mode 'mode-class))) :help "Paste text from clipboard") (undo :image "undo" :command undo :enable (and (not buffer-read-only) (not (eq t buffer-undo-list)) (if (eq last-command #'undo) pending-undo-list (consp buffer-undo-list))) :visible (not (eq 'special (get major-mode 'mode-class))) :help "Undo last operation") (separator :image "sep" :command t :enable nil :help "") (latex :image #f(compiled-function () #<bytecode -0xb900f260a6332e>) :command (progn (TeX-save-document #'TeX-master-file) (TeX-command "LaTeX" #'TeX-master-file -1)) :help #f(compiled-function (&rest ignored) #<bytecode -0xfe55595a370ee52>)) (next-error :image "error" :command TeX-next-error :enable (TeX-error-report-has-errors-p) :visible (TeX-error-report-has-errors-p)) (view :image #f(compiled-function () #<bytecode -0xb908dee1039492>) :command (TeX-command "View" #'TeX-master-file -1) :help #f(compiled-function (&rest ignored) #<bytecode -0xfe555952b0e1192>)) (bibtex :image "bibtex" :command (TeX-command (if LaTeX-using-Biber "Biber" "BibTeX") #'TeX-master-file -1) :help #f(compiled-function (&rest ignored) #<bytecode 0xa6a2c980b287b02>)) (spell :image "spell" :command (TeX-command "Spell" #'TeX-master-file -1) :help #f(compiled-function (&rest ignored) #<bytecode -0xfe55595a78b9352>))) (:used-symbols undo paste copy cut save-buffer kill-buffer dired open-file new-file nil) (keymap (new-file menu-item "New File" find-file :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Specify a new file's name, to edit the file" :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :vert-only t) (open-file menu-item "Open File" menu-find-file-existing :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Read a file into an Emacs buffer" :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :vert-only t) (dired menu-item "Dired" dired :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Read a directory, operate on its files" :vert-only t) (kill-buffer menu-item "Kill Buffer" kill-this-buffer :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Discard current buffer" :enable (kill-this-buffer-enabled-p) :vert-only t) (save-buffer menu-item "Save Buffer" save-buffer :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Save current buffer to its file" :enable (and (buffer-modified-p) (buffer-file-name) (not (window-minibuffer-p (frame-selected-window menu-updating-frame)))) :visible (or buffer-file-name (not (eq 'special (get major-mode ...)))) :vert-only t) (cut menu-item "Cut" clipboard-kill-region :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Delete text in region and copy it to the cli..." :visible (not (eq 'special (get major-mode 'mode-class))) :vert-only t) (copy menu-item "Copy" clipboard-kill-ring-save :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Copy text in region to the clipboard" :vert-only t) (paste menu-item "Paste" clipboard-yank :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Paste text from clipboard" :visible (not (eq 'special (get major-mode 'mode-class))) :vert-only t) (undo menu-item "Undo" undo :image (image :type xpm :file "c:/Program Files/Emacs/emacs-28.1/share/emac...") :help "Undo last operation" :enable (and (not buffer-read-only) (not (eq t buffer-undo-list)) (if (eq last-command #'undo) pending-undo-list (consp buffer-undo-list))) :visible (not (eq 'special (get major-mode 'mode-class))) :vert-only t))) toolbarx-emacs-refresh(nil) toolbarx-refresh(nil) toolbarx-install-toolbar((new-file open-file dired kill-buffer save-buffer cut copy paste undo separator latex next-error view bibtex spell) ((latex :image #f(compiled-function () #<bytecode -0xb900f260a6332e>) :command (progn (TeX-save-document #'TeX-master-file) (TeX-command "LaTeX" #'TeX-master-file -1)) :help #f(compiled-function (&rest ignored) #<bytecode -0xfe55595a370ee52>)) (pdflatex :image "pdftex" :command (progn (TeX-save-document #'TeX-master-file) (TeX-command "PDFLaTeX" #'TeX-master-file -1)) :help #f(compiled-function (&rest ignored) #<bytecode -0x15a3e698ea7d4ac4>)) (next-error :image "error" :command TeX-next-error :enable (TeX-error-report-has-errors-p) :visible (TeX-error-report-has-errors-p)) (view :image #f(compiled-function () #<bytecode -0xb908dee1039492>) :command (TeX-command "View" #'TeX-master-file -1) :help #f(compiled-function (&rest ignored) #<bytecode -0xfe555952b0e1192>)) (file :image "dvips" :command (TeX-command "File" #'TeX-master-file -1) :visible (not TeX-PDF-mode) :help #f(compiled-function (&rest ignored) #<bytecode -0xfe555952a918652>)) (bibtex :image "bibtex" :command (TeX-command (if LaTeX-using-Biber "Biber" "BibTeX") #'TeX-master-file -1) :help #f(compiled-function (&rest ignored) #<bytecode 0xa6a2c980b287b02>)) (clean :image "delete" :command (TeX-command "Clean" #'TeX-master-file -1) :help #f(compiled-function (&rest ignored) #<bytecode -0xfe555943c177512>)) (spell :image "spell" :command (TeX-command "Spell" #'TeX-master-file -1) :help #f(compiled-function (&rest ignored) #<bytecode -0xfe55595a78b9352>)) (latex-symbols-experimental :alias :eval-group LaTeX-symbols-toolbar-switch-contents LaTeX-symbols-toolbar-contents) (separator :image "sep" :command t :enable nil :help "") (new-file :image "new" :command find-file :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :help "Specify a new file's name, to edit the file") (open-file :image "open" :command menu-find-file-existing :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :help "Read a file into an Emacs buffer") (dired :image "diropen" :command dired :help "Read a directory, operate on its files") (save-buffer :image "save" :command save-buffer :enable (and (buffer-modified-p) (buffer-file-name) (not (window-minibuffer-p (frame-selected-window menu-updating-frame)))) :help "Save current buffer to its file" :visible (or buffer-file-name (not (eq 'special (get major-mode 'mode-class))))) (write-file :image "saveas" :command write-file :enable (not (window-minibuffer-p (frame-selected-window menu-updating-frame))) :help "Write current buffer to another file" :visible (or buffer-file-name (not (eq 'special (get major-mode 'mode-class))))) (undo :image "undo" :command undo :enable (and (not buffer-read-only) (not (eq t buffer-undo-list)) (if (eq last-command #'undo) pending-undo-list (consp buffer-undo-list))) :help "Undo last operation" :visible (not (eq 'special (get major-mode 'mode-class)))) (cut :image "cut" :help "Delete text in region and copy it to the clipboard" :command clipboard-kill-region :visible (not (eq 'special (get major-mode 'mode-class)))) (copy :image "copy" :help "Copy text in region to the clipboard" :command clipboard-kill-ring-save) (paste :image "paste" :help "Paste text from clipboard" :command clipboard-yank :visible (not (eq 'special (get major-mode 'mode-class)))) (search-forward :command nonincremental-search-forward :help "Search forward for a string" :image "search") (search-replace :image "search-replace" :command query-replace :help "Replace string interactively, ask about each occur...") (print-buffer :image "print" :command print-buffer :help "Print current buffer with page headings") (customize :image "preferences" :command customize :help "Edit preferences (customize)") (help :image "help" :command (lambda nil (interactive) (popup-menu menu-bar-help-menu)) :help "Pop up the Help menu") (kill-buffer :command kill-this-buffer :enable (kill-this-buffer-enabled-p) :help "Discard current buffer" :image "close") (exit-emacs :image "exit" :command save-buffers-kill-emacs :help "Offer to save unsaved buffers, then exit Emacs") (spell-buffer :image "spell" :command ispell-buffer :help "Check spelling of selected buffer") (info :image "info" :command info :help "Enter Info, the documentation browser"))) LaTeX-install-toolbar() LaTeX-maybe-install-toolbar() ;; This repeats a LOT: ;; ---- LaTeX-mode() apply(LaTeX-mode nil) latex-mode() #<subr hack-one-local-variable>(mode LaTeX) apply(#<subr hack-one-local-variable> (mode LaTeX)) hack-one-local-variable(mode LaTeX) hack-local-variables-apply() hack-local-variables(no-mode) run-mode-hooks(LaTeX-mode-hook) ;; ---- LaTeX-mode() apply(LaTeX-mode nil) latex-mode() set-auto-mode-0(latex-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(#<buffer mwe.tex> "~/Desktop/mwe.tex" nil nil "~/Desktop/mwe.tex" (1125899907329631 2720378480)) find-file-noselect("~/Desktop/mwe.tex" nil nil t) find-alternate-file("~/Desktop/mwe.tex" t) funcall-interactively(find-alternate-file "~/Desktop/mwe.tex" t) command-execute(find-alternate-file) Minimal failing example for init.el (even without toggle-debug-on-error, opening mwe.tex immediately raises error and buffer goes to 'Text' mode): --8<---------------cut here---------------start------------->8--- (custom-set-variables '(package-selected-packages '(auctex))) (prefer-coding-system 'utf-8) (tool-bar-mode -1) --8<---------------cut here---------------end--------------->8--- Best, Florian
[Message part 2 (text/html, inline)]
bug-auctex <at> gnu.org
:bug#70817
; Package auctex
.
(Thu, 09 May 2024 13:02:01 GMT) Full text and rfc822 format available.Message #26 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: Ikumi Keita <ikumi <at> ikumi.que.jp> To: "Landis Florian (ladi)" <ladi <at> zhaw.ch> Cc: Arash Esbati <arash <at> gnu.org>, "70817 <at> debbugs.gnu.org" <70817 <at> debbugs.gnu.org> Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Thu, 09 May 2024 22:01:26 +0900
Hi Landis and all, >>>>> "Landis Florian (ladi)" <ladi <at> zhaw.ch> writes: > latex-mode() ^^^^^^^^^^^^ > #<subr hack-one-local-variable>(mode LaTeX) > apply(#<subr hack-one-local-variable> (mode LaTeX)) > hack-one-local-variable(mode LaTeX) I think this must be the issue bug#69373[1]. Landis, can you try the patch given in [2]? If not, either A. Update your emacs to 29.3 or B. Put the following code block into somewhere in your init file (~/.emacs.d/init.el) ---------------------------------------------------------------------- (defun hack-one-local-variable (var val) "Set local variable VAR with value VAL. If VAR is `mode', call `VAL-mode' as a function unless it's already the major mode." (pcase var ('mode (let ((mode (intern (concat (downcase (symbol-name val)) "-mode")))) (set-auto-mode-0 mode t))) ('eval (pcase val (`(add-hook ',hook . ,_) (hack-one-local-variable--obsolete hook))) (save-excursion (eval val t))) (_ (hack-one-local-variable--obsolete var) ;; Make sure the string has no text properties. ;; Some text properties can get evaluated in various ways, ;; so it is risky to put them on with a local variable list. (if (stringp val) (set-text-properties 0 (length val) nil val)) (set (make-local-variable var) val)))) ---------------------------------------------------------------------- Sorry for inconvenience. [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69373 [2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69373#14 Best regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW
bug-auctex <at> gnu.org
:bug#70817
; Package auctex
.
(Mon, 13 May 2024 14:43:02 GMT) Full text and rfc822 format available.Message #29 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: "Landis Florian (ladi)" <ladi <at> zhaw.ch> To: Ikumi Keita <ikumi <at> ikumi.que.jp> Cc: Arash Esbati <arash <at> gnu.org>, "70817 <at> debbugs.gnu.org" <70817 <at> debbugs.gnu.org> Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Mon, 13 May 2024 11:05:43 +0000
[Message part 1 (text/plain, inline)]
Dear all Am 09.05.2024 um 15:01 schrieb Ikumi Keita: I think this must be the issue bug#69373[1]. Landis, can you try the patch given in [2]? If not, either A. Update your emacs to 29.3 or I can confirm that the problem goes away if I use emacs 29.3. Thanks, Florian B. Put the following code block into somewhere in your init file (~/.emacs.d/init.el) ---------------------------------------------------------------------- (defun hack-one-local-variable (var val) "Set local variable VAR with value VAL. If VAR is `mode', call `VAL-mode' as a function unless it's already the major mode." (pcase var ('mode (let ((mode (intern (concat (downcase (symbol-name val)) "-mode")))) (set-auto-mode-0 mode t))) ('eval (pcase val (`(add-hook ',hook . ,_) (hack-one-local-variable--obsolete hook))) (save-excursion (eval val t))) (_ (hack-one-local-variable--obsolete var) ;; Make sure the string has no text properties. ;; Some text properties can get evaluated in various ways, ;; so it is risky to put them on with a local variable list. (if (stringp val) (set-text-properties 0 (length val) nil val)) (set (make-local-variable var) val)))) ---------------------------------------------------------------------- Sorry for inconvenience. [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69373 [2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69373#14 Best regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW
[Message part 2 (text/html, inline)]
bug-auctex <at> gnu.org
:bug#70817
; Package auctex
.
(Mon, 13 May 2024 15:47:01 GMT) Full text and rfc822 format available.Message #32 received at 70817 <at> debbugs.gnu.org (full text, mbox):
From: Ikumi Keita <ikumi <at> ikumi.que.jp> To: "Landis Florian (ladi)" <ladi <at> zhaw.ch> Cc: Arash Esbati <arash <at> gnu.org>, "70817 <at> debbugs.gnu.org" <70817 <at> debbugs.gnu.org> Subject: Re: bug#70817: 14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option Date: Tue, 14 May 2024 00:46:08 +0900
Hi Landis, >>>>> "Landis Florian (ladi)" <ladi <at> zhaw.ch> writes: > Am 09.05.2024 um 15:01 schrieb Ikumi Keita: >> I think this must be the issue bug#69373[1]. Landis, can you try the >> patch given in [2]? If not, either >> A. Update your emacs to 29.3 or > I can confirm that the problem goes away if I use emacs 29.3. > Thanks, Thank you for confirmation. I'll close this bug. Best regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW
Ikumi Keita <ikumi <at> ikumi.que.jp>
to control <at> debbugs.gnu.org
.
(Mon, 13 May 2024 15:48:01 GMT) Full text and rfc822 format available.Ikumi Keita <ikumi <at> ikumi.que.jp>
to control <at> debbugs.gnu.org
.
(Mon, 13 May 2024 15:48:01 GMT) Full text and rfc822 format available.Debbugs Internal Request <help-debbugs <at> gnu.org>
to internal_control <at> debbugs.gnu.org
.
(Wed, 12 Jun 2024 11:24:07 GMT) Full text and rfc822 format available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.