Package: auctex;
Reported by: Sebastian Drude <drude <at> xs4all.nl>
Date: Tue, 2 May 2023 07:58:01 UTC
Severity: normal
Tags: notabug
Found in version 13.2.0
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 63228 in the body.
You can then email your comments to 63228 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#63228
; Package auctex
.
(Tue, 02 May 2023 07:58:01 GMT) Full text and rfc822 format available.Sebastian Drude <drude <at> xs4all.nl>
:bug-auctex <at> gnu.org
.
(Tue, 02 May 2023 07:58:01 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Sebastian Drude <drude <at> xs4all.nl> To: bug-auctex <at> gnu.org Subject: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Date: Mon, 1 May 2023 23:48:06 -0300
Dear AUCTeX maintainers and other friendly souls on this list, I am coming back to AUCTeX after many years, now on a Linux-MINT system (Debian-based). I understand that, in order to be able to get command-expansion etc. for all (La)TeX packages, I need to run the command "TeX-auto-generate-global" once. As I am a regular user, I first had to use "sudo" to give myself write permissions to the "/var/lib/auctex/emacs" directory. But then, after parsing quite a number of files, the parser stops while parsing many files with the error message "TeX-auto-parse-region: Wrong type argument: stringp, nil" When I move the offending file from its directory in /usr/share/texlive/texmf-dist/tex/ temporarily to some other directory, the error repeats with some other file. After moving about 30 files, I decided that something must be wrong. I uninstalled the AUCTeX package which I installed via my package management system (Mint's Software Manager), which was an old version (11.91-2ubuntu2), and installed AUCTeX via ELPA. Still, the error persists. As I have not any fancy configurations not extra TeX packages installed, I wonder whether this is a known error which occurs with certain TeX style, class and further files, or whether something is not right with my AUCTeX installation or more generally my system. Here is the backtrace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) looking-at(nil) TeX-auto-parse-region(TeX-auto-full-regexp-list nil 999999) TeX-auto-parse() TeX-auto-store("/var/lib/auctex/emacs/amsppt.el") TeX-auto-generate("amsppt.sty" "/var/lib/auctex/emacs/") #f(compiled-function (file) #<bytecode 0x1107a75>)("amsppt.sty") mapcar(#f(compiled-function (file) #<bytecode 0x1107a75>) ("." ".." "amsppt.sti" "amsppt.sty" "amsppt1.tex" "amstex.bug" "amstex.tex")) TeX-auto-generate("base" "/var/lib/auctex/emacs/") #f(compiled-function (file) #<bytecode 0x1107a75>)("base") mapcar(#f(compiled-function (file) #<bytecode 0x1107a75>) ("." ".." "base" "config")) TeX-auto-generate("amstex" "/var/lib/auctex/emacs/") #f(compiled-function (file) #<bytecode 0x1107a75>)("amstex") mapcar(#f(compiled-function (file) #<bytecode 0x1107a75>) ("." ".." "amstex" "context" "cslatex" "csplain" "eplain" "fontinst" "generic" "jadetex" "lambda" "latex" "latex-dev" "lollipop" "lualatex" "luatex" "mex" "mltex" "plain" "platex" "psizzl" "ptex" "startex" "support" "texsis" "uplatex" "uptex" "xelatex" "xetex" "xmltex")) TeX-auto-generate("/usr/share/texlive/texmf-dist/tex/" "/var/lib/auctex/emacs/") #f(compiled-function (macro) #<bytecode 0x10fb1f5>)("/usr/share/texlive/texmf-dist/tex/") mapc(#f(compiled-function (macro) #<bytecode 0x10fb1f5>) ("/var/lib/texmf/tex/" "/usr/share/texlive/texmf-dist/tex/" "/usr/share/texlive/texmf-dist/bibtex/bst/" "/usr/share/texmf/tex/" "/usr/share/texmf/bibtex/bst/" "/usr/share/texlive/texmf-dist/pbibtex/bst/" "/usr/share/texmf/jtex/" "/usr/share/texmf/jbibtex/bst/")) TeX-auto-generate-global() funcall-interactively(TeX-auto-generate-global) call-interactively(TeX-auto-generate-global record nil) command-execute(TeX-auto-generate-global record) execute-extended-command(nil "TeX-auto-generate-global" nil) funcall-interactively(execute-extended-command nil "TeX-auto-generate-global" nil) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) I cannot imagine that AUCText should have difficulties to parse so many files which are part of the regular LiveTeX distriution, but I am unable to figure out what causes the parsing error, and at what the AUCTeX parser is looking when it is looking at nil. Any help very much appreciated. Thanks, Sebastian Emacs : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian Package: 13.2.0 current state: ============== (setq AUCTeX-date "2023-04-24" window-system 'x LaTeX-version "2e" TeX-style-path '("/var/lib/auctex/emacs/" "/usr/share/emacs/site-lisp/auctex/style" "/home/sebastian/.emacs.d/auctex/auto" "/home/sebastian/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master nil TeX-command-list '(("jTeX" "%(PDF)jtex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode) :help "Run NTT jTeX") ("jLaTeX" "%(PDF)jlatex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (latex-mode) :help "Run NTT jLaTeX") ("pTeX" "%(PDF)ptex %(kanjiopt)%`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode) :help "Run ASCII pTeX") ("pLaTeX" "%(PDF)platex %(kanjiopt)%`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (latex-mode) :help "Run ASCII pLaTeX") ("Mendex" "mendex %(mendexkopt)%s" TeX-run-command nil t :help "Create index file with mendex") ("jBibTeX" "jbibtex %s" TeX-run-BibTeX nil t :help "Run jBibTeX") ("pBibTeX" "pbibtex %(kanjiopt)%s" TeX-run-BibTeX nil t :help "Run pBibTeX") ("-" "" ignore nil t) ("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-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) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-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) %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("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 t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %s" TeX-run-command nil t :help "Run makeglossaries to create glossary file") ("Index" "%(makeindex) %s" TeX-run-index nil t :help "Run makeindex to create index file") ("upMendex" "upmendex %s" TeX-run-index t t :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :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") ) ) If I may, I also have another question. When I accessed AUCTeX directly in the ELPA (in emacs, via the command "list-packages"), I came to the page which says: auctex is an available obsolete package. Status: Available Obsolete from gnu -- Install Archive: gnu Version: 13.2.0 Commit: 9d47b0a1bdffb8e01a83bf507dac7677ecca92f7 Summary: Integrated environment for *TeX* Requires: emacs-25.1 Homepage: https://www.gnu.org/software/auctex/ Keywords: tex latex texinfo context doctex preview-latex Other versions: 13.2.0 (installed). My question: why is there a version (13.2.0) in the gnu-archive which is tagged as "obsolete"?? It took me quite a while before I installed AUCTeX nevertheless, and now I see that I have these two versions, one installed and one on the gnu server.
bug-auctex <at> gnu.org
:bug#63228
; Package auctex
.
(Tue, 02 May 2023 11:24:01 GMT) Full text and rfc822 format available.Message #8 received at 63228 <at> debbugs.gnu.org (full text, mbox):
From: Arash Esbati <arash <at> gnu.org> To: Sebastian Drude <drude <at> xs4all.nl> Cc: 63228 <at> debbugs.gnu.org Subject: Re: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Date: Tue, 02 May 2023 13:22:02 +0200
Sebastian Drude <drude <at> xs4all.nl> writes: > I am coming back to AUCTeX after many years, now on a Linux-MINT > system (Debian-based). Welcome back. > I understand that, in order to be able to get command-expansion > etc. for all (La)TeX packages, I need to run the command > "TeX-auto-generate-global" once. May I ask which package you want to use where AUCTeX support for completion is missing? I'm asking because TeX-auto-generate\(-global\)? can produce completion files which are not really accurate. So if you want to use a specific package where the AUCTeX style package.el is missing, it's better to write it yourself or ask here for help. > I uninstalled the AUCTeX package which I installed via my package > management system (Mint's Software Manager), which was an old version > (11.91-2ubuntu2), and installed AUCTeX via ELPA. In general, this is a good decision. > Still, the error persists. This is a bad thing, OTOH. > If I may, I also have another question. When I accessed AUCTeX > directly in the ELPA (in emacs, via the command "list-packages"), I > came to the page which says: > > auctex is an available obsolete package. > Status: Available Obsolete from gnu -- Install > Archive: gnu > Version: 13.2.0 > Commit: 9d47b0a1bdffb8e01a83bf507dac7677ecca92f7 > Summary: Integrated environment for *TeX* > Requires: emacs-25.1 > Homepage: https://www.gnu.org/software/auctex/ > Keywords: tex latex texinfo context doctex preview-latex > Other versions: 13.2.0 (installed). This is what I see after `list-packages': --8<---------------cut here---------------start------------->8--- Package auctex is available. Status: Available from gnu -- Install Archive: gnu Version: 13.2.0 Commit: 9d47b0a1bdffb8e01a83bf507dac7677ecca92f7 Summary: Integrated environment for *TeX* Requires: emacs-25.1 Website: https://www.gnu.org/software/auctex/ Keywords: tex latex texinfo context doctex preview-latex Maintainer: <auctex-devel <at> gnu.org> --8<---------------cut here---------------end--------------->8--- > My question: why is there a version (13.2.0) in the gnu-archive which > is tagged as "obsolete"?? It took me quite a while before I installed > AUCTeX nevertheless, and now I see that I have these two versions, one > installed and one on the gnu server. Strange. How did you install the package? With `M-x list-packages RET', choosing AUCTeX with 'i' and 'x'? Best, Arash
bug-auctex <at> gnu.org
:bug#63228
; Package auctex
.
(Tue, 02 May 2023 15:34:01 GMT) Full text and rfc822 format available.Message #11 received at 63228 <at> debbugs.gnu.org (full text, mbox):
From: Arash Esbati <arash <at> gnu.org> To: "Sebastian Drude" <drude <at> xs4all.nl> Cc: 63228 <at> debbugs.gnu.org Subject: Re: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Date: Tue, 02 May 2023 17:32:19 +0200
[Message part 1 (text/plain, inline)]
"Sebastian Drude" <drude <at> xs4all.nl> writes: > I am using the Language Science Press (for xetex) langscibook class, > and when starting, I could not complement on commands defined in that > class and other packages loaded in a local file > \input{localpackages.tex}. I had to update langscibook, and after > that I thought I should create the AUCTeX style files for my packages, > which is when I started to try to invoke TeX-auto-generate-global. Yes, AUCTeX doesn't have a style file for langscibook.cls, but that might change. > So you tell me that invoking TeX-auto-generate-global is actually not > necessary? But as far as I can see, the AUCTeX-style-files do cover > only a part of all packages provided with LiveTeX. No, AUCTeX doesn't have a style file for every package provided by TeXlive. Usually, people write a style file for packages and they are then submitted to AUCTeX. For a somewhat complicated class like langscibook.cls, you should write a support file manually. `TeX-auto-generate-global' would always produce suboptimal results. Please find attached my 10 minutes take on such a file; I admit I couldn't find and/or grasp the manual. So maybe you want to take over, make it complete and submit it to AUCTeX. You can save this file in a directory which is part of `TeX-style-private' and then restart AUCTeX, and be sure you have set `TeX-parse-self' to t in your init file.
[langscibook.el (application/emacs-lisp, attachment)]
[Message part 3 (text/plain, inline)]
> And So it is normal that it fails on so many files with the error > "TeX-auto-parse-region: Wrong type argument: stringp, nil"? This > seems very weird to me... Usually not, and I'm seeing this for the first time, but to be honest, I'm not willing to debug it. > yes, I used `M-x list-packages RET', searched for AUCTeX with C-s, and > then entered the package and chose "install". I am not sure whether I > saw the "obsolete" description the first time I searched for the > package or only the second time. Is it still present? Best, Arash
bug-auctex <at> gnu.org
:bug#63228
; Package auctex
.
(Wed, 03 May 2023 01:47:03 GMT) Full text and rfc822 format available.Message #14 received at 63228 <at> debbugs.gnu.org (full text, mbox):
From: "Sebastian Drude" <drude <at> xs4all.nl> To: "'Arash Esbati'" <arash <at> gnu.org> Cc: 63228 <at> debbugs.gnu.org Subject: RE: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Date: Tue, 2 May 2023 09:47:55 -0300
Dear Arash, Thanks for answering so quickly. My answers/comments are below, marked with "SD>" (for some reason, my mail program did not quote your answer correctly). Best wishes, Sebastian -- Museu P.E. Goeldi, CCH, Linguistica ▪ Av. Perimetral, 1901 Terra Firme, CEP: 66077-530 ▪ Belém do Pará – PA ▪ Brazil drude <at> xs4all.nl ▪ +55 (91) 3217 6024 ▪ +55 (91) 983733319 -----Original Message----- From: Arash Esbati <arash <at> gnu.org> Sent: Tuesday, May 2, 2023 8:22 AM To: Sebastian Drude <drude <at> xs4all.nl> Cc: 63228 <at> debbugs.gnu.org Subject: Re: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Sebastian Drude <mailto:drude <at> xs4all.nl> writes: > I am coming back to AUCTeX after many years, now on a Linux-MINT > system (Debian-based). Welcome back. > I understand that, in order to be able to get command-expansion etc. > for all (La)TeX packages, I need to run the command > "TeX-auto-generate-global" once. May I ask which package you want to use where AUCTeX support for completion is missing? I'm asking because TeX-auto-generate\(-global\)? can produce completion files which are not really accurate. So if you want to use a specific package where the AUCTeX style package.el is missing, it's better to write it yourself or ask here for help. SD> I am using the Language Science Press (for xetex) langscibook class, and when starting, I could not complement on commands defined in that class and other packages loaded in a local file \input{localpackages.tex}. I had to update langscibook, and after that I thought I should create the AUCTeX style files for my packages, which is when I started to try to invoke TeX-auto-generate-global. SD> So you tell me that invoking TeX-auto-generate-global is actually not necessary? But as far as I can see, the AUCTeX-style-files do cover only a part of all packages provided with LiveTeX. SD> And So it is normal that it fails on so many files with the error "TeX-auto-parse-region: Wrong type argument: stringp, nil"? This seems very weird to me... > auctex is an available obsolete package. > Status: Available Obsolete from gnu -- Install > Archive: gnu > Version: 13.2.0 > Commit: 9d47b0a1bdffb8e01a83bf507dac7677ecca92f7 > Summary: Integrated environment for *TeX* > Requires: emacs-25.1 > Homepage: https://www.gnu.org/software/auctex/ > Keywords: tex latex texinfo context doctex preview-latex Other > versions: 13.2.0 (installed). This is what I see after `list-packages': --8<---------------cut here---------------start------------->8--- Package auctex is available. Status: Available from gnu -- Install Archive: gnu Version: 13.2.0 Commit: 9d47b0a1bdffb8e01a83bf507dac7677ecca92f7 Summary: Integrated environment for *TeX* Requires: emacs-25.1 Website: https://www.gnu.org/software/auctex/ Keywords: tex latex texinfo context doctex preview-latex Maintainer: <mailto:auctex-devel <at> gnu.org> --8<---------------cut here---------------end--------------->8--- > My question: why is there a version (13.2.0) in the gnu-archive which > is tagged as "obsolete"?? It took me quite a while before I installed > AUCTeX nevertheless, and now I see that I have these two versions, one > installed and one on the gnu server. Strange. How did you install the package? With `M-x list-packages RET', choosing AUCTeX with 'i' and 'x'? SD> yes, I used `M-x list-packages RET', searched for AUCTeX with C-s, and then entered the package and chose "install". I am not sure whether I saw the "obsolete" description the first time I searched for the package or only the second time.
bug-auctex <at> gnu.org
:bug#63228
; Package auctex
.
(Thu, 04 May 2023 10:57:03 GMT) Full text and rfc822 format available.Message #17 received at 63228 <at> debbugs.gnu.org (full text, mbox):
From: Ikumi Keita <ikumi <at> ikumi.que.jp> To: Sebastian Drude <drude <at> xs4all.nl> Cc: 63228 <at> debbugs.gnu.org Subject: Re: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Date: Thu, 04 May 2023 19:56:40 +0900
Hi Sebastian, >>>>> Sebastian Drude <drude <at> xs4all.nl> writes: > But then, after parsing quite a number of files, the parser stops > while parsing many files with the error message > "TeX-auto-parse-region: Wrong type argument: stringp, nil" > When I move the offending file from its directory in > /usr/share/texlive/texmf-dist/tex/ temporarily to some other > directory, > the error repeats with some other file. After moving about 30 files, > I decided that something must be wrong. I uninstalled the AUCTeX > package which I installed via my package management system (Mint's > Software Manager), which was an old version (11.91-2ubuntu2), and > installed AUCTeX via ELPA. > Still, the error persists. > I cannot imagine that AUCText should have difficulties to parse so many > files which are part of the regular LiveTeX distriution, but I am unable > to figure out what causes the parsing error, and at what the AUCTeX > parser is looking when it is looking at nil. I can't tell the reason of your first failure, but I can guess the second. > current state: > ============== > (setq > AUCTeX-date "2023-04-24" [...] > TeX-command-list '(("jTeX" "%(PDF)jtex %`%S%(PDFout)%(mode)%' %t" [...] The value of `TeX-command-list' is old and doesn't match the date "2023-04-24". I think you installed ELPA AUCTeX by the very emacs session you activated the old 11.91 AUCTeX. Please don't do that. The old ingredients remaining in the emacs session prevents you from successful AUCTeX operation. That would be the reason of the error: > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > looking-at(nil) [...] In addition, I suppose the ELPA AUCTeX installation itself wasn't successful. The old AUCTeX source loaded in the session didn't have new/updated elisp macros, thus byte-compiling the new AUCTeX sources must be broken. I recommend to re-install ELPA AUCTeX by the following procedure: 1. Delete the current AUCTeX installation. 2. Quit the emacs session. 3. Launch a fresh emacs session and, before doing anything else, install ELPA AUCTeX. > As I have not any fancy configurations not extra TeX packages > installed, I wonder whether this is a known error which occurs with > certain TeX style, class and further files, or whether something is > not right with my AUCTeX installation or more generally my system. My guess is the latter. As I described above, I think your AUCTeX installation is broken. By the way, it is known that `TeX-auto-generate-global' can introduce unexpected side effects.[1] Thus I recommened you to follow Arash's advice, writing custom style file for langscibook.cls instead of `TeX-auto-generate-global'. [1] https://lists.gnu.org/r/auctex/2021-01/msg00037.html Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine
bug-auctex <at> gnu.org
:bug#63228
; Package auctex
.
(Thu, 04 May 2023 14:13:02 GMT) Full text and rfc822 format available.Message #20 received at 63228 <at> debbugs.gnu.org (full text, mbox):
From: "Sebastian Drude" <drude <at> xs4all.nl> To: "'Ikumi Keita'" <ikumi <at> ikumi.que.jp> Cc: 63228 <at> debbugs.gnu.org Subject: RE: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Date: Thu, 4 May 2023 11:12:16 -0300
Thanks to both, Ikumi and Arash, For giving me your advice. Over the weekend, I will try a fresh installation and proceed as you indicate. If necessary, I would come back to you next week. Thanks a lot again! Sebastian -- Museu P.E. Goeldi, CCH, Linguistica ▪ Av. Perimetral, 1901 Terra Firme, CEP: 66077-530 ▪ Belém do Pará – PA ▪ Brazil drude <at> xs4all.nl ▪ +55 (91) 3217 6024 ▪ +55 (91) 983733319 -----Original Message----- From: Ikumi Keita <ikumi <at> ikumi.que.jp> Sent: Thursday, May 4, 2023 7:57 AM To: Sebastian Drude <drude <at> xs4all.nl> Cc: 63228 <at> debbugs.gnu.org Subject: Re: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Hi Sebastian, >>>>> Sebastian Drude <drude <at> xs4all.nl> writes: > But then, after parsing quite a number of files, the parser stops > while parsing many files with the error message > "TeX-auto-parse-region: Wrong type argument: stringp, nil" > When I move the offending file from its directory in > /usr/share/texlive/texmf-dist/tex/ temporarily to some other > directory, the error repeats with some other file. After moving about > 30 files, I decided that something must be wrong. I uninstalled the > AUCTeX package which I installed via my package management system > (Mint's Software Manager), which was an old version (11.91-2ubuntu2), > and installed AUCTeX via ELPA. > Still, the error persists. > I cannot imagine that AUCText should have difficulties to parse so > many files which are part of the regular LiveTeX distriution, but I am > unable to figure out what causes the parsing error, and at what the > AUCTeX parser is looking when it is looking at nil. I can't tell the reason of your first failure, but I can guess the second. > current state: > ============== > (setq > AUCTeX-date "2023-04-24" [...] > TeX-command-list '(("jTeX" "%(PDF)jtex %`%S%(PDFout)%(mode)%' %t" [...] The value of `TeX-command-list' is old and doesn't match the date "2023-04-24". I think you installed ELPA AUCTeX by the very emacs session you activated the old 11.91 AUCTeX. Please don't do that. The old ingredients remaining in the emacs session prevents you from successful AUCTeX operation. That would be the reason of the error: > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > looking-at(nil) [...] In addition, I suppose the ELPA AUCTeX installation itself wasn't successful. The old AUCTeX source loaded in the session didn't have new/updated elisp macros, thus byte-compiling the new AUCTeX sources must be broken. I recommend to re-install ELPA AUCTeX by the following procedure: 1. Delete the current AUCTeX installation. 2. Quit the emacs session. 3. Launch a fresh emacs session and, before doing anything else, install ELPA AUCTeX. > As I have not any fancy configurations not extra TeX packages > installed, I wonder whether this is a known error which occurs with > certain TeX style, class and further files, or whether something is > not right with my AUCTeX installation or more generally my system. My guess is the latter. As I described above, I think your AUCTeX installation is broken. By the way, it is known that `TeX-auto-generate-global' can introduce unexpected side effects.[1] Thus I recommened you to follow Arash's advice, writing custom style file for langscibook.cls instead of `TeX-auto-generate-global'. [1] https://lists.gnu.org/r/auctex/2021-01/msg00037.html Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine
bug-auctex <at> gnu.org
:bug#63228
; Package auctex
.
(Thu, 18 May 2023 01:25:01 GMT) Full text and rfc822 format available.Message #23 received at 63228 <at> debbugs.gnu.org (full text, mbox):
From: Sebastian Drude <drude <at> xs4all.nl> To: 'Ikumi Keita' <ikumi <at> ikumi.que.jp> Cc: 63228 <at> debbugs.gnu.org Subject: Re: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Date: Wed, 17 May 2023 22:23:47 -0300
Dear Ikumi, Arash, all, thanks again for your support two weeks ago. In the meanwhile, I have updated my Linux system (which took longer than I had planned) and started with a fresh installation of Emacs and then of AucTeX, and so far that has proven to work fine. In particular, I have generated, via TeX-auto-generate, a style file for langscibook, which is so far matching my needs. So thanks again for your support! Sebastian PS: I am now struggling with another AucTeX problem, and will use this channel again in a separate thread. -- Museu P.E. Goeldi, CCH, Linguistica ▪ Av. Perimetral, 1901 Terra Firme, CEP: 66077-530 ▪ Belém do Pará – PA ▪ Brazil drude <at> xs4all.nl ▪ +55 (91) 3217 6024 ▪ +55 (91) 983733319 Priv: Tv. Juvenal Cordeiro, 184, Apt 104 ▪ 66070-300 Belém On 04/05/2023 11:12, Sebastian Drude wrote: > Thanks to both, Ikumi and Arash, > > > For giving me your advice. Over the weekend, I will try a fresh > installation and proceed as you indicate. If necessary, I would come back > to you next week. > > Thanks a lot again! > > Sebastian
Arash Esbati <arash <at> gnu.org>
to control <at> debbugs.gnu.org
.
(Sat, 20 May 2023 11:28:01 GMT) Full text and rfc822 format available.Arash Esbati <arash <at> gnu.org>
to control <at> debbugs.gnu.org
.
(Sat, 20 May 2023 11:28:01 GMT) Full text and rfc822 format available.Debbugs Internal Request <help-debbugs <at> gnu.org>
to internal_control <at> debbugs.gnu.org
.
(Sun, 18 Jun 2023 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.