auctex
[Top][All Lists]
Advanced

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

wrong-type-argument stringp nil


From: Denis Bitouzé
Subject: wrong-type-argument stringp nil
Date: Sat, 16 Jan 2021 16:03:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi,

each I open my test file `test.tex`, which is rather big (5452 lines: it
accumulates all my LaTeX tests :), the buffer is open but not on the
front (it is available, nevertheless) because of a `wrong-type-argument
stringp nil` error.

After toggling `debug-on-error`, the backtrace is the following one
which remains a mystery to me :)

Many thanks for any help.

  ┌────
  │ Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  │   looking-at(nil)
  │   TeX-auto-parse-region((("\\\\declaretheorem[ 
\11\n\15%]*\\(?:\\[[^][]*\\(?:{[^}{]*\\(?..." 1 
LaTeX-auto-thmtools-declaretheorem) ("\\\\declaretheoremstyle[ 
\11\n\15%]*\\(?:\\[[^][]*\\(?:{[^}{..." 1 
LaTeX-auto-thmtools-declaretheoremstyle) ("\\\\SetLabelAlign{\\([^}]+\\)}" 1 
LaTeX-auto-enumitem-SetLabelAlign) 
("\\\\SetEnumitemValue{\\([^}]+\\)}{\\([^}]+\\)}" (0 1 2) 
LaTeX-auto-enumitem-SetEnumitemValue) ("\\\\SetEnumitemKey{\\([^}]+\\)}" 1 
LaTeX-auto-enumitem-SetEnumitemKey) ("\\\\newlist{\\([^}]+\\)}{\\([^}]+\\)}" (1 
2) LaTeX-auto-enumitem-newlist) 
("\\\\begin[[:space:]]*{[BL]?Verbatim\\*?}[[:space:]]*\\..." 1 
LaTeX-auto-label) 
("\\\\begin{SaveVerbatim}\\(?:\\[[^][]*\\(?:{[^}{]*\\(?:{[..." 1 
LaTeX-auto-fancyvrb-saveverbatim) 
("\\\\SaveVerb\\(?:\\[[^][]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[..." 1 
LaTeX-auto-fancyvrb-saveverb) ("\\\\DefineVerbatimEnvironment[ \11\n\15]*{[ 
\11\n\15]*\\([A-Za-..." (1 2) LaTeX-auto-fancyvrb-environment) 
("\\\\\\(Rec\\|C\\)ustomVerbatimCommand[ \11\n\15]*{?[ \11\n\15]*\\\\..." (2 3 
1) LaTeX-auto-fancyvrb-macro) 
("\\\\begin{lstlisting}\\[[^][]*\\(?:{[^}{]*\\(?:{[^}{]*\\..." 1 
LaTeX-auto-label) ("\\\\lstdefinestyle{\\([^}]+\\)}" 1 
LaTeX-auto-listings-lstdefinestyle) ("\\\\lstnewenvironment[ 
\11\n\15]*{\\([A-Za-z0-9]+\\)}%?[ \11\n..." (1 2 3) 
LaTeX-auto-listings-lstnewenvironment) ("\\\\setkeys[ 
\11\n\15]*{\\([A-Za-z]+\\)}[ \11\n\15]*{\\([^}]*\\)}" (1 2) 
LaTeX-auto-polyglossia-setkeys) 
("\\\\set\\(defaultlanguage\\|mainlanguage\\|otherlanguag..." (3 1 2) 
LaTeX-auto-polyglossia-lang) ("\\\\newfontfa\\(?:ce\\|mily\\)[ 
\11\n\15%]*\\\\\\([a-zA-Z]+\\)" 1 LaTeX-auto-fontspec-newfontcmd) 
("\\\\DeclareNewFloatType{\\([^}]+\\)}" 1 
LaTeX-auto-floatrow-DeclareNewFloatType) 
("\\\\newseparated\\(label\\|ref\\){?\\\\\\([a-zA-Z]+\\)}?" (2 1) 
LaTeX-auto-floatrow-newseparatedlabel-ref) ("\\\\newfloatcommand{\\([^}]+\\)}" 
1 LaTeX-auto-floatrow-newfloatcommand) 
("\\\\Declare\\(FloatStyle\\|FloatFont\\|FloatVCode\\|Colo..." (0 1 2) 
LaTeX-auto-floatrow-DeclareNewOption) 
("\\\\\\(new\\|renew\\|provide\\)menumacro{?\\\\\\([a-zA-Z]+\\..." (2 3 1) 
LaTeX-auto-menukeys-newmenumacro) 
("\\\\\\(?:new\\|copy\\)menucolortheme{\\([^}]+\\)}" 1 
LaTeX-auto-menukeys-newmenucolortheme) 
("\\\\\\(?:new\\|copy\\)menustyle\\(?:simple\\)?*?{\\([^}]+\\..." 1 
LaTeX-auto-menukeys-newmenustyle) 
("\\\\Declare\\(?:SIUnit\\|SIPrefix\\|BinaryPrefix\\|SIPos..." 1 
LaTeX-auto-siunitx-unit) 
("\\\\LTXtable{\\(?:[^}]+\\)}{\\(\\.*[^#}%\\\\\\.\n\15]+\\)\\(\\.[^..." 1 
TeX-auto-file) ("\\\\DeclareCaption\\(Font\\|Format\\|Justification\\|Lab..." 
(0 1 2) LaTeX-auto-caption-DeclareCaption) 
("\\\\label\\[[^]]*\\]{\\([^\n\15%\\{}]+\\)}" 1 LaTeX-auto-label) 
("\\\\\\(?:Ren\\|N\\)ewEnviron[ \11\n\15]*{\\([A-Za-z0-9]+\\)}%?..." (1 2 3) 
LaTeX-auto-environ-NewEnviron) 
("\\\\newtheoremlisttype{\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}" 1 
LaTeX-auto-ntheorem-newtheoremlisttype) 
("\\\\newtheoremstyle{\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}" 1 
LaTeX-auto-ntheorem-newtheoremstyle) 
("\\\\newshadedtheorem{\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}" 1 
LaTeX-auto-ntheorem-newtheorem) 
("\\\\newframedtheorem{\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}" 1 
LaTeX-auto-ntheorem-newtheorem) 
("\\\\newtheorem{\\(\\(?:[a-zA-Z]\\|\\cj\\)+\\)}" 1 
LaTeX-auto-ntheorem-newtheorem) ("\\\\newpagestyle[ \11\n\15%]*{\\([^}]+\\)}" 1 
LaTeX-auto-pagestyle) ("\\\\tcbuselibrary{\\([^}]+\\)}" 1 
LaTeX-auto-tcolorbox-tcbuselibrary) ("\\\\\\(re\\)?newtcbox[ 
\11\n\15%]*\\(?:\\[[^][]*\\(?:{[^}{]*\\(..." (2 3 4 1) 
LaTeX-auto-tcolorbox-newtcbox) ("\\\\\\(re\\)?newtcolorbox[ 
\11\n\15%]*\\(?:\\[[^][]*\\(?:{[^}{..." (2 3 4 1) 
LaTeX-auto-tcolorbox-newtcolorbox) 
("\\\\\\(?:New\\|Renew\\|Provide\\|Declare\\)DocumentEnviro..." (1 2) 
LaTeX-auto-xparse-environment) 
("\\\\\\(?:New\\|Renew\\|Provide\\|Declare\\)\\(?:Expandable..." (1 2) 
LaTeX-auto-xparse-macro) ("\\\\babelfont\\(?:\\[[^]]*\\]\\)?[ 
\11\n\15%]*{\\([^}]+\\)}" 1 LaTeX-auto-babel-babelfont) 
("\\\\babeltags{\\([^}]+\\)}" 1 LaTeX-auto-babel-babeltag) 
("\\\\newgathered{\\([^}]+\\)}" 1 LaTeX-auto-mathtools-newgathered) 
("\\\\DeclarePairedDelimiter\\(?:X\\|XPP\\)?{?\\\\\\([a-zA-Z..." (1 2) 
LaTeX-auto-mathtools-DeclarePairedDelimiter) ("\\\\newtagform{\\([^}]+\\)}" 1 
LaTeX-auto-mathtools-newtagform) ("\\\\newcolumntype{\\([^}]+\\)}" 1 
LaTeX-auto-array-newcolumntype) 
("\\\\\\(?:define\\|provide\\|prepare\\)colorset\\(?:\\[\\(?:..." (1 2 3) 
LaTeX-auto-xcolor-definecolorset) 
("\\\\\\(?:colorlet\\|\\(?:defin\\|pr\\(?:epar\\|ovid\\)\\)eco..." 1 
LaTeX-auto-xcolor-definecolor) ("\\\\savegeometry{\\([^}]+\\)}" 1 
LaTeX-auto-geometry-savegeometry) ("\\\\definecolor{\\([^}]+\\)}" 1 
LaTeX-auto-color-definecolor) ...) nil 999999)
  │   TeX-auto-parse()
  │   run-hooks(TeX-update-style-hook)
  │   TeX-update-style(t)
  │   #f(compiled-function () #<bytecode 0x2715a09>)()
  │   run-hooks(find-file-hook)
  │   after-find-file(nil t)
  │   find-file-noselect-1(#<buffer test.tex> "~/latex/divers/test.tex" nil nil 
"~/latex/divers/test.tex" (9836294 66314))
  │   find-file-noselect("~/latex/divers/test.tex" nil nil t)
  │   #f(compiled-function (filename &optional wildcards) "Edit file 
FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if none 
already exists.\nInteractively, the default if you just type RET is the current 
directory,\nbut the visited file name is available through the minibuffer 
history:\ntype \\[next-history-element] to pull it into the minibuffer.\n\nThe 
first time \\[next-history-element] is used after Emacs prompts for\nthe file 
name, the result is affected by `file-name-at-point-functions',\nwhich by 
default try to guess the file name by looking at point in the\ncurrent buffer.  
Customize the value of `file-name-at-point-functions'\nor set it to nil, if you 
want only the visited file name and the\ncurrent directory to be available on 
first \\[next-history-element]\nrequest.\n\nYou can visit files on remote 
machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the 
file name.  You can\nalso visit local files as a different user by 
specifying\n/sudo::FILE for the file name.\nSee the Info node `(tramp)File name 
Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if 
WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit 
multiple files.  You can\nsuppress wildcard expansion by setting 
`find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion 
and without\nautomatically choosing a major mode, use \\[find-file-literally]." 
(interactive #f(compiled-function () #<bytecode 0x20f5c71>)) #<bytecode 
0x1fe21a93d7b3>)("~/latex/divers/test.tex" t)
  │   ad-Advice-find-file(#f(compiled-function (filename &optional wildcards) 
"Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one 
if none already exists.\nInteractively, the default if you just type RET is the 
current directory,\nbut the visited file name is available through the 
minibuffer history:\ntype \\[next-history-element] to pull it into the 
minibuffer.\n\nThe first time \\[next-history-element] is used after Emacs 
prompts for\nthe file name, the result is affected by 
`file-name-at-point-functions',\nwhich by default try to guess the file name by 
looking at point in the\ncurrent buffer.  Customize the value of 
`file-name-at-point-functions'\nor set it to nil, if you want only the visited 
file name and the\ncurrent directory to be available on first 
\\[next-history-element]\nrequest.\n\nYou can visit files on remote machines by 
specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  
You can\nalso visit local files as a different user by specifying\n/sudo::FILE 
for the file name.\nSee the Info node `(tramp)File name Syntax' in the Tramp 
Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil 
in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You 
can\nsuppress wildcard expansion by setting `find-file-wildcards' to nil.\n\nTo 
visit a file without any kind of conversion and without\nautomatically choosing 
a major mode, use \\[find-file-literally]." (interactive #f(compiled-function 
() #<bytecode 0x10732dd>)) #<bytecode 0x1fe21a93d7b3>) 
"~/latex/divers/test.tex" t)
  │   apply(ad-Advice-find-file #f(compiled-function (filename &optional 
wildcards) "Edit file FILENAME.\nSwitch to a buffer visiting file 
FILENAME,\ncreating one if none already exists.\nInteractively, the default if 
you just type RET is the current directory,\nbut the visited file name is 
available through the minibuffer history:\ntype \\[next-history-element] to 
pull it into the minibuffer.\n\nThe first time \\[next-history-element] is used 
after Emacs prompts for\nthe file name, the result is affected by 
`file-name-at-point-functions',\nwhich by default try to guess the file name by 
looking at point in the\ncurrent buffer.  Customize the value of 
`file-name-at-point-functions'\nor set it to nil, if you want only the visited 
file name and the\ncurrent directory to be available on first 
\\[next-history-element]\nrequest.\n\nYou can visit files on remote machines by 
specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  
You can\nalso visit local files as a different user by specifying\n/sudo::FILE 
for the file name.\nSee the Info node `(tramp)File name Syntax' in the Tramp 
Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil 
in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You 
can\nsuppress wildcard expansion by setting `find-file-wildcards' to nil.\n\nTo 
visit a file without any kind of conversion and without\nautomatically choosing 
a major mode, use \\[find-file-literally]." (interactive #f(compiled-function 
() #<bytecode 0x1188eb9>)) #<bytecode 0x1fe21a93d7b3>) 
("~/latex/divers/test.tex" t))
  │   find-file("~/latex/divers/test.tex" t)
  │   funcall-interactively(find-file "~/latex/divers/test.tex" t)
  │   #<subr call-interactively>(find-file nil nil)
  │   apply(#<subr call-interactively> find-file (nil nil))
  │   call-interactively@ido-cr+-record-current-command(#<subr 
call-interactively> find-file nil nil)
  │   apply(call-interactively@ido-cr+-record-current-command #<subr 
call-interactively> (find-file nil nil))
  │   call-interactively(find-file nil nil)
  │   command-execute(find-file)
  └────
-- 
Denis



reply via email to

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