GNU bug report logs -
#45713
27.1; After Package Update Cannot Execute LaTeX Commands
Previous Next
Reported by: "Nikolaus Thiel" <klt <at> fsfe.org>
Date: Thu, 7 Jan 2021 13:36:02 UTC
Severity: normal
Tags: moreinfo, notabug
Done: Arash Esbati <arash <at> gnu.org>
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 45713 in the body.
You can then email your comments to 45713 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45713
; Package
emacs
.
(Thu, 07 Jan 2021 13:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Nikolaus Thiel" <klt <at> fsfe.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 07 Jan 2021 13:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
A few days ago I upgraded all packages using the command U. Also auc-tex
has been updated to
Status: Installed in ‘auctex-13.0.1/’. Delete
Version: 13.0.1
Today I want to compile a LaTeX file using XeLaTeX
but I get the folowing error:
Debugger entered--Lisp error: (error "Nonexpansion file")
signal(error ("Nonexpansion file"))
error("Nonexpansion %s" file)
TeX-command-expand("xelatex -interaction=nonstopmode %s")
TeX-command("XeLaTeX" TeX-master-file nil)
TeX-command-master()
TeX-command-menu("XeLaTeX")
menu-function-53()
funcall-interactively(menu-function-53)
call-interactively(menu-function-53 nil nil)
command-execute(menu-function-53)
Thanks for your help!
Nikolaus Thiel
In GNU Emacs 27.1 (build 1, x86_64-apple-darwin20.1.0, NS appkit-2022.10 Version 11.0.1 (Build 20B29))
of 2020-12-10 built on bigsurx.internal.macports.net
Windowing system distributor 'Apple', version 10.3.2022
System Description: macOS 11.1
Recent messages:
Removing duplicates...done
Applying style hooks...done
Sorting environment...done
Removing duplicates...done
Entering debugger...
Mark activated
Saving file /Users/klaus/Desktop/emacsBacktrace.txt...
Wrote /Users/klaus/Desktop/emacsBacktrace.txt
Back to top level
Making completion list... [3 times]
Configured using:
'configure --prefix=/opt/local --disable-silent-rules --without-dbus
--without-gconf --without-libotf --without-m17n-flt --with-gmp
--with-gnutls --with-json --with-xml2 --with-modules --infodir
/opt/local/share/info/emacs --with-ns --with-lcms2 --without-harfbuzz
--without-imagemagick --without-xaw3d --with-rsvg 'CFLAGS=-pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
x86_64' 'CPPFLAGS=-I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk'
'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
-arch x86_64''
Configured features:
RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM
NS MODULES THREADS JSON PDUMPER LCMS2 GMP
Important settings:
value of $LANG: en_CH.UTF-8
locale-coding-system: utf-8-unix
Major mode: LaTeX/P
Minor modes in effect:
TeX-PDF-mode: t
shell-dirtrack-mode: t
delete-selection-mode: t
show-paren-mode: t
cua-mode: t
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
/Users/klaus/.emacs.d/elpa/svg-1.1/svg hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/svg
Features:
(shadow sort mail-extr emacsbug sendmail help-fns radix-tree cl-print
debug backtrace find-func preview tex-bar tex-buf toolbar-x noutline
outline font-latex latex easy-mmode edmacro kmacro latex-flymake
flymake-proc flymake warnings thingatpt tex-ispell tex-style tex crm
advice texmathp tex-mode compile shell pcomplete comint ansi-color ring
latexenc finder-inf gnutls mm-archive message dired dired-loaddefs
format-spec rfc822 mml mml-sec epa derived gnus-util rmail
rmail-loaddefs text-property-search time-date mailabbrev gmm-utils
mailheader mm-decode mm-bodies mm-encode mail-utils network-stream
url-http mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr url-gw nsm rmc puny url-cache url-auth url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util mailcap epg epg-config ispell cus-edit wid-edit quail help-mode
jka-compr delsel paren cua-base cus-start cus-load tex-site info package
easymenu browse-url url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs)
Memory information:
((conses 16 262848 15254)
(symbols 48 19326 1)
(strings 32 80401 3826)
(string-bytes 1 2129439)
(vectors 16 26980)
(vector-slots 8 332020 28042)
(floats 8 84 394)
(intervals 56 599 0)
(buffers 1000 17))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45713
; Package
emacs
.
(Thu, 07 Jan 2021 21:52:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 45713 <at> debbugs.gnu.org (full text, mbox):
"Nikolaus Thiel" <klt <at> fsfe.org> writes:
> A few days ago I upgraded all packages using the command U. Also auc-tex
> has been updated to
>
> Status: Installed in ‘auctex-13.0.1/’. Delete
> Version: 13.0.1
>
>
> Today I want to compile a LaTeX file using XeLaTeX
> but I get the folowing error:
>
> Debugger entered--Lisp error: (error "Nonexpansion file")
> signal(error ("Nonexpansion file"))
> error("Nonexpansion %s" file)
> TeX-command-expand("xelatex -interaction=nonstopmode %s")
> TeX-command("XeLaTeX" TeX-master-file nil)
> TeX-command-master()
> TeX-command-menu("XeLaTeX")
> menu-function-53()
> funcall-interactively(menu-function-53)
> call-interactively(menu-function-53 nil nil)
> command-execute(menu-function-53)
Similiar issues were reported here[1] and here[2]. Can you please
delete AUCTeX via package manager, i.e., really delete and not moving
from `installed' into `dependency', restart Emacs, reinstall AUCTeX and
see if it helps?
Best, Arash
Footnotes:
[1] https://lists.gnu.org/archive/html/bug-auctex/2020-12/msg00001.html
[2] https://emacs.stackexchange.com/q/62554/12242
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 10 Jan 2021 14:15:01 GMT)
Full text and
rfc822 format available.
bug reassigned from package 'emacs' to 'auctex'.
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jan 2021 21:21:02 GMT)
Full text and
rfc822 format available.
bug No longer marked as found in versions 27.1.
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jan 2021 21:21:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45713
; Package
auctex
.
(Wed, 13 Jan 2021 21:39:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 45713 <at> debbugs.gnu.org (full text, mbox):
Hi Nikolaus,
"Nikolaus Thiel" <klt <at> fsfe.org> writes:
> thanks a lot for offering help.
Sure welcome. For future reference, please keep 45713 <at> debbugs.gnu.org
in CC, TIA.
> I have deleted auctex, restarted Emacs and installed from Elpa auctex again, but in a
> newer version: 13.0.3
>
> The problem persists:
>
> Debugger entered--Lisp error: (error "Nonexpansion file")
> signal(error ("Nonexpansion file"))
> error("Nonexpansion %s" file)
> TeX-command-expand("xelatex -interaction=nonstopmode %s")
> TeX-command("XeLaTeX" TeX-master-file nil)
> TeX-command-master()
> TeX-command-menu("XeLaTeX")
> menu-function-53()
> funcall-interactively(menu-function-53)
> call-interactively(menu-function-53 nil nil)
> command-execute(menu-function-53)
I can't reproduce this. A small .tex file like this:
--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage{fontspec}
\begin{document}
foo
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: xetex
%%% End:
--8<---------------cut here---------------end--------------->8---
compiles with no problems for me, either by hitting `C-c C-c RET' or
from the menu Command->LaTeX. Eval'ing
(TeX-command-expand "xelatex -interaction=nonstopmode %s")
returns for me
"xelatex -interaction=nonstopmode xelatex-test"
> What else could I try?
Standard debugging procedure I think: Start Emacs with -Q, eval
(package-initialize) in scratch buffer and then load your .tex file. At
the end, a recipe to reproduce this issue is needed.
> PS
> For a week now, when I try to save a mail as draft I get the following error:
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
> nndraft-update-unread-articles()
> run-hooks(after-save-hook)
> basic-save-buffer(t)
> save-buffer(1)
> funcall-interactively(save-buffer 1)
> call-interactively(save-buffer nil nil)
> command-execute(save-buffer)
>
> I use Emacs with gnus Newsreader for e-mailing.
I've reassigned this report to AUCTeX. Please open a new bug report for
the Gnus issue.
Best, Arash
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45713
; Package
auctex
.
(Wed, 03 Feb 2021 21:18:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 45713 <at> debbugs.gnu.org (full text, mbox):
Hi Nikolaus,
"Nikolaus Thiel" <klt <at> 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
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45713
; Package
auctex
.
(Tue, 05 Mar 2024 09:11:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 45713 <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> writes:
> Hi Nikolaus,
>
> "Nikolaus Thiel" <klt <at> 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.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
No further comments, and I can't reproduce this on macOS, so I'm closing
this report.
Best, Arash
Added tag(s) notabug.
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 05 Mar 2024 09:11:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
45713 <at> debbugs.gnu.org and "Nikolaus Thiel" <klt <at> fsfe.org>
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 05 Mar 2024 09:11:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 02 Apr 2024 11:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 60 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.