From unknown Thu Aug 14 12:24:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#63083 <63083@debbugs.gnu.org> To: bug#63083 <63083@debbugs.gnu.org> Subject: Status: 13.1.4; Table of contents should ignore commented out text Reply-To: bug#63083 <63083@debbugs.gnu.org> Date: Thu, 14 Aug 2025 19:24:46 +0000 retitle 63083 13.1.4; Table of contents should ignore commented out text reassign 63083 auctex submitter 63083 Hugo Paquet severity 63083 normal tag 63083 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 25 23:55:20 2023 Received: (at submit) by debbugs.gnu.org; 26 Apr 2023 03:55:20 +0000 Received: from localhost ([127.0.0.1]:53931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prWFM-0006P8-AC for submit@debbugs.gnu.org; Tue, 25 Apr 2023 23:55:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:48974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prKK6-0001X9-FH for submit@debbugs.gnu.org; Tue, 25 Apr 2023 11:11:22 -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 1prKK5-0005jx-95 for bug-auctex@gnu.org; Tue, 25 Apr 2023 11:11:17 -0400 Received: from gw.lipn.univ-paris13.fr ([194.254.163.15] helo=mail.lipn.univ-paris13.fr) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prKK2-0006xn-Rr for bug-auctex@gnu.org; Tue, 25 Apr 2023 11:11:17 -0400 Received: from smtpclient.apple (unknown [10.10.6.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: paquet) by mail.lipn.univ-paris13.fr (Postfix) with ESMTPSA id 1F23C82037 for ; Tue, 25 Apr 2023 17:10:57 +0200 (CEST) From: Hugo Paquet Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Subject: 13.1.4; Table of contents should ignore commented out text Message-Id: <83601773-B6A5-4DCB-B70F-CD95E3D54A58@lipn.univ-paris13.fr> Date: Tue, 25 Apr 2023 17:10:56 +0200 To: bug-auctex@gnu.org X-Mailer: Apple Mail (2.3654.120.0.1.15) X-LIPN-MailScanner-Information: Please contact the ISP for more information X-LIPN-MailScanner-ID: 1F23C82037.AE35E X-LIPN-MailScanner: Found to be clean X-LIPN-MailScanner-From: paquet@lipn.univ-paris13.fr X-Spam-Status: No Received-SPF: pass client-ip=194.254.163.15; envelope-from=paquet@lipn.univ-paris13.fr; helo=mail.lipn.univ-paris13.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 25 Apr 2023 23:55:10 -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: -3.3 (---) The command "C-c =3D" is supposed to scan the .tex file(s) and generate = a table of contents.=20 But the table seems to include all sections, even those when the code = "\section{....}" appears in a comment block. This makes the table of contents inconsistent with the resulting pdf. Emacs : GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS = appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2021-03-27 Package: 13.1.4 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq AUCTeX-date "2022-08-26" window-system 'ns LaTeX-version "2e" TeX-style-path '("/usr/local/var/auctex" "/Users/huguet/.emacs.d/elpa/auctex-13.1.4/style" "/Users/huguet/.emacs.d/auctex/auto" "/Users/huguet/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master "freyd-bicats" TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %(output-dir) %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) %(o-dir) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %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 %(O?aux)" TeX-run-BibTeX nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode context-mode) :help "Run BibTeX") ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run Biber") ("Texindex" "texindex %s.??" TeX-run-command nil (texinfo-mode) :help "Run Texindex") ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil (texinfo-mode) :help "Run Texi2dvi or Texi2pdf") ("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 (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeglossaries to create glossary file") ("Index" "makeindex %(O?idx)" TeX-run-index nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeindex to create index file") ("upMendex" "upmendex %(O?idx)" TeX-run-index t (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :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") ) ) From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 26 04:59:27 2023 Received: (at 63083) by debbugs.gnu.org; 26 Apr 2023 08:59:27 +0000 Received: from localhost ([127.0.0.1]:54234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prazn-0007L1-Az for submit@debbugs.gnu.org; Wed, 26 Apr 2023 04:59:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prazi-0007Kn-Js for 63083@debbugs.gnu.org; Wed, 26 Apr 2023 04:59:26 -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 1prazX-0001P3-49; Wed, 26 Apr 2023 04:59:11 -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=iBy4xDnzJWLQLCuIed+te+ti6c+wUTV9JPYQIRHpxdo=; b=U0l6/yYh9UAR/CnxyID6 gPuoGIaYVMRKwoDVVBsl5Qlp6CyS/2P2ryeSyghYRv7t+11UP4od8QreAotn1HMKBjOURtBtWZ7gf OSYkk3pskN2jvl2fDfmFTIgU6adZPVg8BFBA5b33rstprtLeJG5BW6YwYrtS0pYRAj6j821WmxPNn NJ8WSMAPOLqPDP6PdlbG6X01DOR/sM13+S8pI77wqGxx93PEg83yjcATBR3vKVn5zz0LJhyLRmBZA lYppW4Xlq3+NNkm1O60gqkqdAiPw4LhPO7CJxYCblJ0yeKZnQpqcOEsJkWfSGxAGd7ML7NjseOrl6 fi4Nc9x8QW5kVA==; 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 1prazS-00079k-Mq; Wed, 26 Apr 2023 04:59:10 -0400 From: Arash Esbati To: Hugo Paquet Subject: Re: bug#63083: 13.1.4; Table of contents should ignore commented out text In-Reply-To: <83601773-B6A5-4DCB-B70F-CD95E3D54A58@lipn.univ-paris13.fr> (Hugo Paquet's message of "Tue, 25 Apr 2023 17:10:56 +0200") References: <83601773-B6A5-4DCB-B70F-CD95E3D54A58@lipn.univ-paris13.fr> Date: Wed, 26 Apr 2023 10:58:45 +0200 Message-ID: <86pm7rc94q.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: 63083 Cc: 63083@debbugs.gnu.org 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 (---) Hugo Paquet writes: > The command "C-c =" is supposed to scan the .tex file(s) and generate > a table of contents. But the table seems to include all sections, > even those when the code "\section{....}" appears in a comment block. > This makes the table of contents inconsistent with the resulting pdf. I think this is by design; I'm not aware of any variable similar to `reftex-label-ignored-macros-and-environments' for \section and such. I think the idea is to comment out the code with %, and then there was also this bug report[1]. Maybe others have a good idea. Best, Arash Footnotes: [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59638 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 27 05:25:24 2024 Received: (at control) by debbugs.gnu.org; 27 Feb 2024 10:25:25 +0000 Received: from localhost ([127.0.0.1]:41250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reueK-00005K-F2 for submit@debbugs.gnu.org; Tue, 27 Feb 2024 05:25:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reu1x-0006UI-VX for control@debbugs.gnu.org; Tue, 27 Feb 2024 04:45:46 -0500 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 1retkZ-0005Z4-4K for control@debbugs.gnu.org; Tue, 27 Feb 2024 04:27:48 -0500 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=QYgSxYTiiXwRbRZU0e3RItarUCPaheW5V/cxj8b3xcM=; b=JKwsHdYgIo+b0S CXimk3jcxw9lMavu98TBewaeCFpZnML8/uIXReM3pKLFc2OO8vqq+N5BJxzScEUfDlHdtuWJX6rI4 r9kGxVdsJqB8pwJp2QvAFUx7nWwsBjWeas4pOwfNuSolZFktDtzeCpZPvIHerb0sUoELXJ/jkIHeL LMHwwW/QHIjT8/sldhlsfdrV7GZOnDDQiiFT9DL2WBHF7Dbc3zibfr+Zlv58z+wvw9ltXB6Q6GM4I wwQRxcrlIPU2kNCcoHAP2UYEiEmeGDEtfsVI41cX/RfgX69sFNq2YHhRJo7dyc6AdnLvVQG655tRh NGFKXVal30YBuXHb/ceg==; From: Arash Esbati To: "control-debbugs" Subject: bug#63083: control-message Date: Tue, 27 Feb 2024 10:27:31 +0100 Message-ID: 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 63083 moreinfo close 63083 quit From unknown Thu Aug 14 12:24:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 27 Mar 2024 11:24:19 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator