bug-auctex
[Top][All Lists]
Advanced

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

bug#45713: 27.1; After Package Update Cannot Execute LaTeX Commands


From: Arash Esbati
Subject: bug#45713: 27.1; After Package Update Cannot Execute LaTeX Commands
Date: Wed, 03 Feb 2021 22:17:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50

Hi Nikolaus,

"Nikolaus Thiel" <klt@fsfe.org> writes:

Sorry for my late response.

> I started Emacs from the command line using
>
> $ /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -Q
>
> That produced the following messages in the terminal:
>
> Emacs[1071:29235] Failed to initialize color list unarchiver:
> Error Domain=NSCocoaErrorDomain Code=4864
> "*** -[NSKeyedUnarchiver 
> _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive 
> cannot be decoded by NSKeyedUnarchiver"
> UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver 
> _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive 
> cannot be decoded by NSKeyedUnarchiver}

I'm not familiar with macOS, so I can't tell what's going on.  I can
only suspect that you've installed Emacs via MacPorts, and maybe you
have installed AUCTeX through MacPorts as well.

> I saved the small LaTeX code into a file. Opening it, only the TeX menu 
> appeared
> but neither LaTeX nor Command menu. So I used "C-c C-c RET"

It seems that AUCTeX isn't loaded and you end up with Emacs tex-mode.

> pdflatex ends with the expected LaTeX error:
>
> bash-3.2$ cd /Users/klaus/Desktop/
> bash-3.2$ pdflatex \\nonstopmode\\input test.tex
> This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded 
> format=pdflatex)
>  restricted \write18 enabled.
> ....
>
>
> xelatex does not even start
>
> bash-3.2$ xelatex
> This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020) (preloaded 
> format=xelatex)
>  restricted \write18 enabled.
> **

Be careful here; xelatex is running in interactive mode and expects an
input.  In your shell, try \relax RET \bye RET.

> If I change the command in *tex-shell* manually to "xelatex 
> \\nonstopmode\\input
> test.tex" the file is compiled successfully.
>
>
>
> The evaluation of
>
> (TeX-command-expand "xelatex -interaction=nonstopmode %s")
>
> produces the following error:
>
> Debugger entered--Lisp error: (void-function TeX-command-expand)
>   (TeX-command-expand "xelatex -interaction=nonstopmode %s")
>   eval((TeX-command-expand "xelatex -interaction=nonstopmode %s") nil)
>   elisp--eval-last-sexp(nil)
>   eval-last-sexp(nil)
>   funcall-interactively(eval-last-sexp nil)
>   call-interactively(eval-last-sexp nil nil)
>   command-execute(eval-last-sexp)

See above, I think your installation is broken.

> I do not know a recipe how to produce the error on your system.
>
> Did you also try on Mac OS X 11.1?

Nope, I'm not on macOS.  Sorry, but I'm out of ideas here.  I can only
suggest that you delete all your AUCTeX installations (ELPA, MacPorts
etc.), load a .tex file and do `M-x list-load-path-shadows RET' and see
if you don't have dupe installations, restart Emacs, and install AUCTeX
via ELPA.

Best, Arash





reply via email to

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