From unknown Sat Aug 16 23:48:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Resent-From: Sebastian Drude Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 02 May 2023 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63228 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 63228@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168301422331371 (code B ref -1); Tue, 02 May 2023 07:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 May 2023 07:57:03 +0000 Received: from localhost ([127.0.0.1]:41631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptkse-00089A-0I for submit@debbugs.gnu.org; Tue, 02 May 2023 03:57:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:36220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptg3y-0007zU-4h for submit@debbugs.gnu.org; Mon, 01 May 2023 22:48:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptg3w-0003xA-SS for bug-auctex@gnu.org; Mon, 01 May 2023 22:48:20 -0400 Received: from ewsoutbound.kpnmail.nl ([195.121.94.185]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptg3s-0008Ea-Hl for bug-auctex@gnu.org; Mon, 01 May 2023 22:48:20 -0400 X-KPN-MessageId: b9e21feb-e893-11ed-80ce-005056999439 Received: from smtp.kpnmail.nl (unknown [10.31.155.7]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id b9e21feb-e893-11ed-80ce-005056999439; Tue, 02 May 2023 04:47:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:subject:from:to:mime-version:date:message-id; bh=07enYh9Ps7NyBAqrBF1Il/B4A040TvivUBIILFbFFYE=; b=uNkG4F7mTdYq70KHvg+6ixkSLRrgPTeEgkARkx8Cj69BRcSsKw5NUhyjHaS9NXbBctMcNTRDGMZmN Ag0FQEdtr+8Bl9RYcIYMGcQA/+1dpYfFJNlK/Yd/LxOHKcAlJAoLt7oNt71zOAsygC7zEsyBhTOMnh 7FwQrSJmS2cae8itbifCoMT3HNvnBZGSgBUsdZl7oL/TrcjU4p29v8/89V/Ov5TVZsBmt5cmWaZmmr DFweWLMf1jh26EtAU65dGKc30HvDcF/7OsAljWno0CpCWAc2xB71vZObXsiexnWBh+We4Iwv16nPWJ J7IrPOZ0UUB0ONfQatbU/xoVhard8Ig== X-KPN-MID: 33|ZT7boYf+VAYaSMtZU/C1L/AYtfnMQtJr7aYJIJ4sEYJQTdRF6WzXwkBS433TJjq /p8MohFhw8TNXx5fkHsd396Gf1WaDe96RWY0bg7u04bM= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|/eYd8WB3hD7vdma9CdoPl6FLR4F1wftvr3qz0nfcAkkf18w26/nrhvKeQ4vcaPq IRUQ34h9sOHDk+Nl+ZGXOlQ== X-Originating-IP: 179.211.197.203 Received: from [192.168.0.7] (unknown [179.211.197.203]) by smtp.kpnmail.nl (Halon) with ESMTPSA id c45cf7a2-e893-11ed-a2b3-005056998788; Tue, 02 May 2023 04:48:11 +0200 (CEST) Message-ID: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> Date: Mon, 1 May 2023 23:48:06 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: pt-BR From: Sebastian Drude Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=195.121.94.185; envelope-from=drude@xs4all.nl; helo=ewsoutbound.kpnmail.nl X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Tue, 02 May 2023 03:56:54 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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) #)("amsppt.sty")   mapcar(#f(compiled-function (file) #) ("." ".." "amsppt.sti" "amsppt.sty" "amsppt1.tex" "amstex.bug" "amstex.tex"))   TeX-auto-generate("base" "/var/lib/auctex/emacs/")   #f(compiled-function (file) #)("base")   mapcar(#f(compiled-function (file) #) ("." ".." "base" "config"))   TeX-auto-generate("amstex" "/var/lib/auctex/emacs/")   #f(compiled-function (file) #)("amstex")   mapcar(#f(compiled-function (file) #) ("." ".." "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) #)("/usr/share/texlive/texmf-dist/tex/")   mapc(#f(compiled-function (macro) #) ("/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. From unknown Sat Aug 16 23:48:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 02 May 2023 11:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63228 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Sebastian Drude Cc: 63228@debbugs.gnu.org Received: via spool by 63228-submit@debbugs.gnu.org id=B63228.168302663922648 (code B ref 63228); Tue, 02 May 2023 11:24:01 +0000 Received: (at 63228) by debbugs.gnu.org; 2 May 2023 11:23:59 +0000 Received: from localhost ([127.0.0.1]:41820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pto6x-0005tE-1f for submit@debbugs.gnu.org; Tue, 02 May 2023 07:23:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pto6t-0005ss-1K for 63228@debbugs.gnu.org; Tue, 02 May 2023 07:23:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pto6m-0004LS-Hl; Tue, 02 May 2023 07:23:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=0KPh6BJndGxFJkshSGTqZJLSWdINqPaEC3gHF0qeUUI=; b=RQFUVnwWquwRiNJrg4y/ oguQA4cl8dBB9tR+AFGck+2v3Tc8j+eO5AUQ+n4YiXc5qgL4XYViMlrWHCUuHXokmvVf7zSLg8CzE h9N7jbHdUm47UncRtVq/PTZQVGctxyv0E19RSg2e9KxQSO0LnGWtQtpFwpLIwk6IcxtgaYuXAu8xD FNRArnipSsqxKZSvk6/9l4o306t70dd9gvEdi3Wm3NsjVl8qoGW+W1VZVRFxYY/3Sa5ymM/b1Hwfl z0hz6nrFatNLC46i0qw3R3P9Isg4/XrMWWWv9vsfytpEar7+MFOwaZ4RyI8v2IJFnhH9iqrL/wm6w /KImJ604zepu5w==; Received: from pd9fb7539.dip0.t-ipconnect.de ([217.251.117.57] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pto6j-0002my-4W; Tue, 02 May 2023 07:23:48 -0400 From: Arash Esbati In-Reply-To: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> (Sebastian Drude's message of "Mon, 1 May 2023 23:48:06 -0300") References: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> Date: Tue, 02 May 2023 13:22:02 +0200 Message-ID: <868re7t1ut.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Sebastian Drude 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.=A0 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. > =A0=A0=A0=A0 Status: Available Obsolete from gnu -- Install > =A0=A0=A0 Archive: gnu > =A0=A0=A0 Version: 13.2.0 > =A0=A0=A0=A0 Commit: 9d47b0a1bdffb8e01a83bf507dac7677ecca92f7 > =A0=A0=A0 Summary: Integrated environment for *TeX* > =A0=A0 Requires: emacs-25.1 > =A0=A0 Homepage: https://www.gnu.org/software/auctex/ > =A0=A0 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=20 Maintainer: --8<---------------cut here---------------end--------------->8--- > My question: why is there a version (13.2.0) in the gnu-archive which > is tagged as "obsolete"??=A0 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 From unknown Sat Aug 16 23:48:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 02 May 2023 15:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63228 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: "Sebastian Drude" Cc: 63228@debbugs.gnu.org Received: via spool by 63228-submit@debbugs.gnu.org id=B63228.168304159430583 (code B ref 63228); Tue, 02 May 2023 15:34:01 +0000 Received: (at 63228) by debbugs.gnu.org; 2 May 2023 15:33:14 +0000 Received: from localhost ([127.0.0.1]:44852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pts0A-0007xC-De for submit@debbugs.gnu.org; Tue, 02 May 2023 11:33:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pts06-0007wt-VZ for 63228@debbugs.gnu.org; Tue, 02 May 2023 11:33:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptrzz-0004KT-K2; Tue, 02 May 2023 11:33:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=EJ48zI7P6EFaAwzXoytmdpsTqRzIV7h9HF8j09KwbXM=; b=NmSeIaHawBC53sGgp4RW yHZp/2WAylH6XaZmD3wJZaypCsiNw0nNxHgXLdORf5CLM9h22CMgduu6jkkORcBJH8/x2xhPMHEXK ZPPKisKPK4Fp1IX0IgsJNwn7G5VH1/rrtYe6LD2TXrI5BhjjnlW68pvyHw9EdRs+UjbFfbMuS3HE7 q8qtscmCzHZlyFLWPNc023i3d09JgEGz6dTQ7LFo78YFjzsQjAJTuKAC7zt+C6pSBkNvMhzp88Lt2 xWMjwWUse5646K158DJQnp2pA3jY2qbhx6b7zYtKrdLFm5Gu/yXdPWRDi5xNxY/NYPGFjud0UGg1Z 63MEoboNiLyEyQ==; Received: from pd9fb7539.dip0.t-ipconnect.de ([217.251.117.57] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptrzy-0006f0-8X; Tue, 02 May 2023 11:33:03 -0400 From: Arash Esbati In-Reply-To: <00ea01d97cf4$535341d0$f9f9c570$@xs4all.nl> (Sebastian Drude's message of "Tue, 2 May 2023 09:47:55 -0300") References: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> <868re7t1ut.fsf@gnu.org> <00ea01d97cf4$535341d0$f9f9c570$@xs4all.nl> Date: Tue, 02 May 2023 17:32:19 +0200 Message-ID: <86354eeol8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain "Sebastian Drude" 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. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=langscibook.el Content-Transfer-Encoding: quoted-printable ;;; langscibook.el --- AUCTeX style for `langscibook.sty' -*- lexical-bin= ding: t; -*- ;;; Code: (TeX-add-style-hook "langscibook" (lambda () (TeX-check-engine-add-engines 'xetex) (TeX-run-style-hooks "scrbook") (TeX-add-symbols '("BackBody" t) '("BackTitle" t) '("BookDOI" "DOI")) ;; Fontification (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) (font-latex-add-keywords '(("BackBody" "{") ("BackTitle" "{") ("BookDOI" "{")) 'function))) TeX-dialect) (defun LaTeX-langscibook-class-options () "Class options for the langscibook class." (TeX-load-style "babel") (TeX-read-key-val t `(("collection") ("draftmode") ("openreview") ("minimal") ("nobabel") ("showindex") ("chinesefont") ("japanesefont") ("hebrewfont") ("arabicfont") ("syriacfont") ("output" ("book" "paper" "minimal" "guidelines")) ("booklanguage" ,LaTeX-babel-language-list) ("copyright" ("CC-BY"))))) ;;; langscibook.el ends here --=-=-= Content-Type: text/plain > 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 --=-=-=-- From unknown Sat Aug 16 23:48:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Resent-From: "Sebastian Drude" Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 03 May 2023 01:47:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63228 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: "'Arash Esbati'" Cc: 63228@debbugs.gnu.org Received: via spool by 63228-submit@debbugs.gnu.org id=B63228.168307839820787 (code B ref 63228); Wed, 03 May 2023 01:47:03 +0000 Received: (at 63228) by debbugs.gnu.org; 3 May 2023 01:46:38 +0000 Received: from localhost ([127.0.0.1]:45305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pu1Zj-0005P9-N3 for submit@debbugs.gnu.org; Tue, 02 May 2023 21:46:37 -0400 Received: from ewsoutbound.kpnmail.nl ([195.121.94.169]:13029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptpQM-000269-OE for 63228@debbugs.gnu.org; Tue, 02 May 2023 08:48:08 -0400 X-KPN-MessageId: 919c0134-e8e7-11ed-810d-005056abad63 Received: from smtp.kpnmail.nl (unknown [10.31.155.40]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 919c0134-e8e7-11ed-810d-005056abad63; Tue, 02 May 2023 14:47:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:mime-version:message-id:date:subject:to:from; bh=RdEYgviBZWKWtaunc64UUZ49g5lDG+iZ6L4EaCKfPcI=; b=Jn6t+N2EPFptgOw5ksNUGhpSQrFbn0ee/ameHW38swGyBtWUx7fkJNj2Q7hz6YIdsJhv4L8jTJS+k ADMUXju/DK1Jm2gh/v4LWOHaCrZytGr0FxdzDYX7K8QgSpJeXkAr7Cpe3BRB5AhFqQqgwAyo3p7fga brgmTnCTNoENuT30RtslS8gH9CGCZzt56OlS0w2uxY4+dB6uVYR7aveF/o13CXYRq/XF5pLB5jAQf7 fcmNbHnJ5PVxQjUnamY3DVq63shbirkB90GV/bcM91dpKnynbe4n/LA7knZRpSsdYN/WaN6Aw5ClKG 26Moj6bKvnsK4WzXFqiwzPAAYELclbA== X-KPN-MID: 33|ZBNofUzPrQIseB7aobYmusrBelcw6aTeaFjBvyg96P540knpR/1Bn+LXvijbExD XiYDsrXWqC23X7eqK+EmrfiLJ2a+wq09Ku+X/GXEsbxY= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|OLf0R0BMFzgA8IKmRJRHw3g+g4EusXbOkfwsb0UbILgXIJOxhSoVUuTqLXNC/Bi jyHZ0teAVtkAJJ6OczPD50g== X-Originating-IP: 200.129.128.254 Received: from PAT023364 (vpn.museu-goeldi.br [200.129.128.254]) by smtp.kpnmail.nl (Halon) with ESMTPSA id 8f987a52-e8e7-11ed-b2e8-005056ab7584; Tue, 02 May 2023 14:47:59 +0200 (CEST) From: "Sebastian Drude" References: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> <868re7t1ut.fsf@gnu.org> In-Reply-To: <868re7t1ut.fsf@gnu.org> Date: Tue, 2 May 2023 09:47:55 -0300 Message-ID: <00ea01d97cf4$535341d0$f9f9c570$@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGRRDpcSdGCWJieAAXIiHDnnpb8XwFTKOEUr8y/tBA= Content-Language: en-gb X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Tue, 02 May 2023 21:46:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 --=20 Museu P.E. Goeldi, CCH, Linguistica =E2=96=AA Av. Perimetral, 1901 Terra Firme, CEP: 66077-530 =E2=96=AA Bel=C3=A9m do Par=C3=A1 = =E2=80=93 PA =E2=96=AA Brazil drude@xs4all.nl =E2=96=AA +55 (91) 3217 6024 =E2=96=AA +55 (91) = 983733319 -----Original Message----- From: Arash Esbati =20 Sent: Tuesday, May 2, 2023 8:22 AM To: Sebastian Drude Cc: 63228@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 writes: > I am coming back to AUCTeX after many years, now on a Linux-MINT=20 > system (Debian-based). Welcome back. > I understand that, in order to be able to get command-expansion etc.=20 > for all (La)TeX packages, I need to run the command=20 > "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=20 > 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: --8<---------------cut here---------------end--------------->8--- > My question: why is there a version (13.2.0) in the gnu-archive which=20 > 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. From unknown Sat Aug 16 23:48:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 04 May 2023 10:57:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63228 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Sebastian Drude Cc: 63228@debbugs.gnu.org Received: via spool by 63228-submit@debbugs.gnu.org id=B63228.168319780820824 (code B ref 63228); Thu, 04 May 2023 10:57:03 +0000 Received: (at 63228) by debbugs.gnu.org; 4 May 2023 10:56:48 +0000 Received: from localhost ([127.0.0.1]:48653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puWdk-0005Po-Dq for submit@debbugs.gnu.org; Thu, 04 May 2023 06:56:48 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:35500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puWdi-0005Pe-HI for 63228@debbugs.gnu.org; Thu, 04 May 2023 06:56:47 -0400 Received: from localhost (42-144-46-173.rev.home.ne.jp [42.144.46.173]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 352725C; Thu, 4 May 2023 19:56:44 +0900 (JST) From: Ikumi Keita In-reply-to: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> References: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> Comments: In-reply-to Sebastian Drude message dated "Mon, 01 May 2023 23:48:06 -0300." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Thu, 04 May 2023 19:56:40 +0900 Message-ID: <39855.1683197800@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Sebastian, >>>>> Sebastian Drude 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.=A0 After moving about 30 files, > I decided that something must be wrong.=A0 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: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > =A0AUCTeX-date "2023-04-24" [...] > =A0TeX-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) > =A0 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 From unknown Sat Aug 16 23:48:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Resent-From: "Sebastian Drude" Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 04 May 2023 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63228 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: "'Ikumi Keita'" Cc: 63228@debbugs.gnu.org Received: via spool by 63228-submit@debbugs.gnu.org id=B63228.168320955122643 (code B ref 63228); Thu, 04 May 2023 14:13:02 +0000 Received: (at 63228) by debbugs.gnu.org; 4 May 2023 14:12:31 +0000 Received: from localhost ([127.0.0.1]:51629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puZh9-0005t8-8E for submit@debbugs.gnu.org; Thu, 04 May 2023 10:12:31 -0400 Received: from ewsoutbound.kpnmail.nl ([195.121.94.186]:29540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puZh6-0005ss-56 for 63228@debbugs.gnu.org; Thu, 04 May 2023 10:12:29 -0400 X-KPN-MessageId: a07e7cb8-ea85-11ed-8f97-00505699b430 Received: from smtp.kpnmail.nl (unknown [10.31.155.5]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id a07e7cb8-ea85-11ed-8f97-00505699b430; Thu, 04 May 2023 16:11:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:mime-version:message-id:date:subject:to:from; bh=7dItHDxa173BH3nm9uQhWFps+8wzeOgTl4UbFfDjFYk=; b=a/bCzASL40tPQGqPE6qkK/hnzXfJ/E2JYxDwK8UFpQQ8TDVc8OazD6W2hl2Gf3/KB81rcdsar3JHZ 3ZmaeLLoPHrCzV8eIsLB4EL4ke13AxQhns+5g3aFOH8+TrJtMnSK1Vpn3Fu1C4IJwzTS09yqtHPhQV 6chVLoMc1Pg60HX4hf3wnv4CkYm4BdKdbMU2u+u8LILnrJLAL5lw5ui3vFlMzdpkV2ibsbAkDTqK+/ ZmLxhthTxYVFF/ozji7ysPM8xlZdLA+eY1iWbvIqUVmhjFnMw7VH+rDU1WWC8BqPOVX4D9G77LIPc0 v1o3hmyok4nCROeFgT4/LB8oIAC97EA== X-KPN-MID: 33|6IZIfUkNuVxD5bSMPF22/HYdrNKZvTUoS0UoPvNPeJ0aCG56XASKEqdtT31LdQM 4Panj/bBfANFSsQQPmplrwitk3JGgiIMi+TC4gDRkM2A= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|foLYd8ssEvr70KNE08UXbeQhoZ9BTtVg0lKqz6vKY2VjuEuHCNhg3S/uNMeYniX rSbh3uzrbn70IZvZewb197w== X-Originating-IP: 200.129.128.254 Received: from PAT023364 (vpn.museu-goeldi.br [200.129.128.254]) by smtp.kpnmail.nl (Halon) with ESMTPSA id acd488d0-ea85-11ed-ab8e-00505699b758; Thu, 04 May 2023 16:12:20 +0200 (CEST) From: "Sebastian Drude" References: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> <39855.1683197800@localhost> In-Reply-To: <39855.1683197800@localhost> Date: Thu, 4 May 2023 11:12:16 -0300 Message-ID: <001f01d97e92$70a72ef0$51f58cd0$@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGRRDpcSdGCWJieAAXIiHDnnpb8XwJS1VjKr8gBf2A= Content-Language: en-gb X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 --=20 Museu P.E. Goeldi, CCH, Linguistica =E2=96=AA Av. Perimetral, 1901 Terra Firme, CEP: 66077-530 =E2=96=AA Bel=C3=A9m do Par=C3=A1 = =E2=80=93 PA =E2=96=AA Brazil drude@xs4all.nl =E2=96=AA +55 (91) 3217 6024 =E2=96=AA +55 (91) = 983733319 -----Original Message----- From: Ikumi Keita =20 Sent: Thursday, May 4, 2023 7:57 AM To: Sebastian Drude Cc: 63228@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 writes: > But then, after parsing quite a number of files, the parser stops=20 > 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=20 > /usr/share/texlive/texmf-dist/tex/ temporarily to some other=20 > directory, the error repeats with some other file. After moving about = > 30 files, I decided that something must be wrong. I uninstalled the=20 > AUCTeX package which I installed via my package management system=20 > (Mint's Software Manager), which was an old version (11.91-2ubuntu2),=20 > and installed AUCTeX via ELPA. > Still, the error persists. > I cannot imagine that AUCText should have difficulties to parse so=20 > 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=20 > 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: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (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=20 > installed, I wonder whether this is a known error which occurs with=20 > certain TeX style, class and further files, or whether something is=20 > 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 From unknown Sat Aug 16 23:48:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Resent-From: Sebastian Drude Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 18 May 2023 01:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63228 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 'Ikumi Keita' Cc: 63228@debbugs.gnu.org Received: via spool by 63228-submit@debbugs.gnu.org id=B63228.168437304328903 (code B ref 63228); Thu, 18 May 2023 01:25:01 +0000 Received: (at 63228) by debbugs.gnu.org; 18 May 2023 01:24:03 +0000 Received: from localhost ([127.0.0.1]:51528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzSN9-0007W7-4g for submit@debbugs.gnu.org; Wed, 17 May 2023 21:24:03 -0400 Received: from ewsoutbound.kpnmail.nl ([195.121.94.186]:28753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzSN6-0007Va-Ts for 63228@debbugs.gnu.org; Wed, 17 May 2023 21:24:02 -0400 X-KPN-MessageId: 9264a490-f51a-11ed-8f97-00505699b430 Received: from smtp.kpnmail.nl (unknown [10.31.155.8]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 9264a490-f51a-11ed-8f97-00505699b430; Thu, 18 May 2023 03:23:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:to:from:subject:mime-version:date:message-id; bh=OjqkQoV1qulsOnw6REYE7W6EDKyFFmfuA4/wSXbZPi4=; b=h4+KGCPH3ZAqt12GkuejhgfzNqWaLHgBqhd2Wh/PrTMtBwDGePSCPcpoenHZrm9cqpXy4Co+Ls3e6 GDH5Ps5nqggDOknWHpfLavHorIWwoZKJqTeMtLZ3biRN43yq8t3bnTLheIpoMuALftaRgd/k1mYmNm SmGuOtbZuyCoTvJW8bxBeQQCkdeFSL6mLd3ofxO1sfGRJjvbE8iCp//+bWNJeaezgJvjTeQPRxMx5e hmvnqoOLZHnjfeF4bas8YQhD+Iuu4bclMUgLiWBF1W/+rjBEKKqMN5GK8oh+YEHec0YmQzeyT894bW W6+U0BI9DSQYobMC9e5FApIaFUPoayw== X-KPN-MID: 33|bGxmpzfVNMQOT4hQ7OoReMKNh13Y6Yh9JksyaMSnSEuqFuGHSmz3Bw4eJdY2Kb3 57wE0n1MxKsfhfBhkqoSyotbeWfHotTycAiLhPh0krXU= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|Ra5jv0ZjoyPGWIYelYkSDaGOTa+PCUhUL05eq/BB7NGIF4d+y8rmFXAJxMXYOwM Sqw9lVgkPSz7QbxvGVSIyRw== X-Originating-IP: 179.211.197.203 Received: from [192.168.0.6] (unknown [179.211.197.203]) by smtp.kpnmail.nl (Halon) with ESMTPSA id a3c7aea4-f51a-11ed-b306-00505699d6e5; Thu, 18 May 2023 03:23:52 +0200 (CEST) Message-ID: <890c89a2-d194-c686-703b-ad52cf2a1df1@xs4all.nl> Date: Wed, 17 May 2023 22:23:47 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Sebastian Drude References: <16ec45f5-fd51-b3ae-324c-383873e186d8@xs4all.nl> <39855.1683197800@localhost> <002001d97e92$882680d0$98738270$@xs4all.nl> Content-Language: en-US In-Reply-To: <002001d97e92$882680d0$98738270$@xs4all.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) 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@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 From debbugs-submit-bounces@debbugs.gnu.org Sat May 20 07:27:15 2023 Received: (at control) by debbugs.gnu.org; 20 May 2023 11:27:15 +0000 Received: from localhost ([127.0.0.1]:57966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0Kjz-0001AE-2x for submit@debbugs.gnu.org; Sat, 20 May 2023 07:27:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0Kjv-00019x-Nl for control@debbugs.gnu.org; Sat, 20 May 2023 07:27:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0Kjq-0006ff-A0 for control@debbugs.gnu.org; Sat, 20 May 2023 07:27:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=a6y4DXxEbEw0gr/hVEe1TCQI14ydtKHRQROpr1pEmZ0=; b=QaPo6stNazhB8Y VHWw851A/PvQknG07TE01EXKoZkgbCUiqZmsgyrETaHKCYsByoXVCfFuWua16cP3EUl1WikOW73lt DLcEpa+ehTyLKgnIZYcFClEExOR++A41UqiUn6sV4yfMW3R64HWzjMmUVnwnND1mQcpb0dFirNmaJ +vWVGIFLPv3ybC/6zPQqGE3iQFSg2xKzAYQ3ViHx+NzbFar0Cx8XwWLor9JYKejkh9uyJ4giQYWpU MWH8VsatC5xfFphE/8zyIaKDb4KMj6ON6bUwoTkbeNIFUJGBmQuwG/Fdnup2JupdEEIsbwUnzHQ4o V4xfaYvk5+Vn2A4hVJ6w==; Received: from p5b326c3d.dip0.t-ipconnect.de ([91.50.108.61] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0Kjp-0002VK-KF for control@debbugs.gnu.org; Sat, 20 May 2023 07:27:06 -0400 From: Arash Esbati To: control-debbugs Subject: bug#63228: 13.2.0; TeX-auto-generate-global TeX-auto-parse-region: Wrong type argument: stringp, nil Date: Sat, 20 May 2023 13:26:31 +0200 Message-ID: <864jo7qm54.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 63228 notabug close 63228 quit