From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 14 17:07:13 2018 Received: (at submit) by debbugs.gnu.org; 14 Aug 2018 21:07:13 +0000 Received: from localhost ([127.0.0.1]:51130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fpgX2-0001Ex-Oh for submit@debbugs.gnu.org; Tue, 14 Aug 2018 17:07:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fpg8x-0000U1-2n for submit@debbugs.gnu.org; Tue, 14 Aug 2018 16:42:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpg8o-0006uv-Od for submit@debbugs.gnu.org; Tue, 14 Aug 2018 16:42:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,DEAR_SOMETHING autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47532) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fpg8o-0006u7-6j for submit@debbugs.gnu.org; Tue, 14 Aug 2018 16:42:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpg8k-0004Es-Mg for bug-auctex@gnu.org; Tue, 14 Aug 2018 16:42:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpg8f-0006nC-Hz for bug-auctex@gnu.org; Tue, 14 Aug 2018 16:42:06 -0400 Received: from mailout10.t-online.de ([194.25.134.21]:52868) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fpg8f-0006j6-3K; Tue, 14 Aug 2018 16:42:01 -0400 Received: from fwd41.aul.t-online.de (fwd41.aul.t-online.de [172.20.27.139]) by mailout10.t-online.de (Postfix) with SMTP id D1A0341FBF33; Tue, 14 Aug 2018 22:41:56 +0200 (CEST) Received: from [192.168.178.55] (V8gs3-ZOZhJJCfaSb5ENHiXFss-nH0BYWcvYysMdMeeomnLdz16cjGQpjTQrvAhZhA@[79.255.38.117]) by fwd41.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1fpg8Y-19Voa80; Tue, 14 Aug 2018 22:41:54 +0200 To: bug-auctex@gnu.org, bug-gnu-emacs@gnu.org From: Peter Pichler Subject: 26.1; reftex: TOC problems with section titles containing double quotes Message-ID: Date: Tue, 14 Aug 2018 22:41:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-ID: V8gs3-ZOZhJJCfaSb5ENHiXFss-nH0BYWcvYysMdMeeomnLdz16cjGQpjTQrvAhZhA X-TOI-MSGID: e0d1ebc4-c4f8-453b-bc71-bcb68894caff Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 14 Aug 2018 17:07:11 -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: , Reply-To: pichler@ieee.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Dear Sirs, I recently updated my emacs installation on Windows 10 from 24.2 to the=20 most recent pre-compiled version I found on=20 ftp://ftp.gnu.org/gnu/emacs/windows/ I then enabled auctex via M-x=20 list-packages. During editing LaTeX files, I enabled reftex as minor=20 mode via M-x reftex-mode Example LaTeX file: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D \documentclass{article} \usepackage{german} \begin{document} \section{K"onige} K"onige sind selten. \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Failure description: Upon invoking reftex-toc via C-c =3D, I get =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =C2=A0=C2=A0=C2=A0=C2=A0 1 K"onige} K"onige sind selten. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D as TABLE-OF-CONTENTS. My old 24.2 emacs version would have resulted in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =C2=A0=C2=A0=C2=A0=C2=A0 1 K"onige =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Apparently, the end of the section header is not recognized when it=20 contains a double quote as needed by the german package to typeset=20 German Umlauts. Any help would be appreciated. Kind regards, Peter Pichler Emacs=C2=A0 : GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) =C2=A0of 2018-05-30 Package: 26.1 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq =C2=A0window-system 'w32 =C2=A0reftex-plug-into-AUCTeX nil =C2=A0) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 15 15:50:28 2018 Received: (at 32442) by debbugs.gnu.org; 15 Aug 2018 19:50:28 +0000 Received: from localhost ([127.0.0.1]:52069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fq1oJ-0002wU-O9 for submit@debbugs.gnu.org; Wed, 15 Aug 2018 15:50:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fq1oF-0002w5-V5 for 32442@debbugs.gnu.org; Wed, 15 Aug 2018 15:50:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fq1o9-0000cp-Nz for 32442@debbugs.gnu.org; Wed, 15 Aug 2018 15:50:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fq1o1-0000a0-8r; Wed, 15 Aug 2018 15:50:10 -0400 Received: from p4fe3ef58.dip0.t-ipconnect.de ([79.227.239.88]:50089 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1fq1nx-0002JG-OH; Wed, 15 Aug 2018 15:50:06 -0400 From: Arash Esbati To: Peter Pichler Subject: Re: bug#32442: 26.1; reftex: TOC problems with section titles containing double quotes References: Date: Wed, 15 Aug 2018 21:49:47 +0200 In-Reply-To: (Peter Pichler's message of "Tue, 14 Aug 2018 22:41:57 +0200") Message-ID: <86pnyjz9yc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32442 Cc: pichler@ieee.org, 32442@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: -6.0 (------) Peter Pichler writes: > I recently updated my emacs installation on Windows 10 from 24.2 to > the most recent pre-compiled version I found on > ftp://ftp.gnu.org/gnu/emacs/windows/ I then enabled auctex via M-x=20 > list-packages. During editing LaTeX files, I enabled reftex as minor > mode via M-x reftex-mode > > Example LaTeX file: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > \documentclass{article} > \usepackage{german} > \begin{document} > \section{K"onige} > K"onige sind selten. > \end{document} > > %%% Local Variables: > %%% mode: latex > %%% TeX-master: t > %%% End: Hi Peter, I think this is RefTeX's subtle way to say: "Please also update your TeX distro to latest TeXlive or MikTeX, change your file to this and use UTF8 encoding with `C-x RET f prefer-utf-8 RET'": \documentclass{article} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} \tableofcontents \section{K=F6nige} \label{sec:konige} K=F6nige sind selten. \end{document} Yes, this seems to be a bug, thanks for the report. But I can't tell why. Will try to investigate, someday :-) Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 19 14:35:14 2018 Received: (at 32442) by debbugs.gnu.org; 19 Aug 2018 18:35:14 +0000 Received: from localhost ([127.0.0.1]:54807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frSXi-0007bk-AN for submit@debbugs.gnu.org; Sun, 19 Aug 2018 14:35:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frSXh-0007bW-BS for 32442@debbugs.gnu.org; Sun, 19 Aug 2018 14:35:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frSXW-0003vN-VK for 32442@debbugs.gnu.org; Sun, 19 Aug 2018 14:35:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frSXV-0003uk-KR; Sun, 19 Aug 2018 14:35:02 -0400 Received: from p5b3269d0.dip0.t-ipconnect.de ([91.50.105.208]:53018 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1frSXV-0004zA-BH; Sun, 19 Aug 2018 14:35:01 -0400 From: Arash Esbati To: Peter Pichler Subject: Re: bug#32442: 26.1; reftex: TOC problems with section titles containing double quotes References: <86pnyjz9yc.fsf@gnu.org> Date: Sun, 19 Aug 2018 20:34:51 +0200 In-Reply-To: (Peter Pichler's message of "Sat, 18 Aug 2018 01:16:23 +0200") Message-ID: <86pnyeurw4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32442 Cc: pichler@ieee.org, 32442@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: -6.0 (------) Peter Pichler writes: > Am 15.08.2018 um 21:49 schrieb Arash Esbati: >> Hi Peter, >> I think this is RefTeX's subtle way to say: "Please also update your TeX >> distro to latest TeXlive or MikTeX, change your file to this and use >> UTF8 encoding with `C-x RET f prefer-utf-8 RET'": >> >> \documentclass{article} >> \usepackage[ngerman]{babel} >> >> \usepackage[T1]{fontenc} >> \usepackage{lmodern} >> >> \begin{document} >> >> \tableofcontents >> >> \section{K=F6nige} >> \label{sec:konige} >> K=F6nige sind selten. >> >> \end{document} >> >> Yes, this seems to be a bug, thanks for the report. But I can't tell >> why. Will try to investigate, someday :-) Hi Peter, please keep 32442@debbugs.gnu.org in CC, thanks. > actually, it is the other way round ;-) Because I had to update my > MikTeX version, I also had to update to a more recent emacs/auctex > installation. I am aware that I could use the =E4=F6=FC=DF instead of "a > etc. but the last time this resulted in serious problems with > spellchecking which I could not resolve within reasonable time. Then I suggest you give it a new try and fix this issue. > In the meanwhile, I tried to find find out what happened. It appears > that the problem occurs in the function reftex-context-substring > called in line 19 of the function reftex-section-info which is called > in turn in line 73 of the function reftex-parse-from-file. Without > double quotes, the (up-list 1) in line 23 of the function > reftex-parse-from-file works normally and the argument of the section > command is extracted correctly. If the argument of the section command > contains double quotes, the (up-list 1) results in an error and > reftex-parse-from-file takes the 150 characters (or until eof) > beginning with the argument of the section command. Strangely enough, > up-list called interactively or out of an interactive function (even > within the condition-case) causes no problems at all. Unfortunately, > this erratic behavior exceeds my experiences with emacs-lisp by far > and I hope, you have more luck. You were on the right track here. This behavior isn't erratic when you look at the definition of `reftex-parse-from-file'. There you see that the actual parsing is done inside a `reftex-with-special-syntax'. This macro saves the current syntax table, activates the one called `reftex-syntax-table', does the job and restores the saved one. `reftex-syntax-table' is defined like this: (setq reftex-syntax-table (copy-syntax-table)) (modify-syntax-entry ?\( "." reftex-syntax-table) (modify-syntax-entry ?\) "." reftex-syntax-table) Here you see that it doesn't touch the syntax for `"' which is used to delimit string constants. With this setup, `K"onig' seems to `up-list' like a string `onig' which doesn't end, hence it doesn't work. You can easily fix this by writing `K\"onig', i.e., escaping the quote and it works as expected. But then again, I recommend you let OT1-encoded fonts and \"-constructs go and try to fix the other issue. Here the file I tested with: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern} \makeatletter \let\Gobble\@gobble \makeatother \begin{document} \tableofcontents \section{K=F6nige} \label{sec:konige} K=F6nige sind selten. \section{K"onig} \label{sec:konige-1} K"onige sind selten. \section{K\"onig} \label{sec:konige-2} K"onige sind selten. \section{K"onige\expandafter\Gobble\string"} \label{sec:konige-3} K"onige sind selten. \end{document} Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 17:44:16 2018 Received: (at 32442-close) by debbugs.gnu.org; 31 Oct 2018 21:44:16 +0000 Received: from localhost ([127.0.0.1]:57521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHyHf-0007ex-Ug for submit@debbugs.gnu.org; Wed, 31 Oct 2018 17:44:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45301) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHyHd-0007ej-Lm for 32442-close@debbugs.gnu.org; Wed, 31 Oct 2018 17:44:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHyHS-0003ik-DF for 32442-close@debbugs.gnu.org; Wed, 31 Oct 2018 17:44:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHyHS-0003ie-9V; Wed, 31 Oct 2018 17:44:02 -0400 Received: from p5b326298.dip0.t-ipconnect.de ([91.50.98.152]:60984 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1gHyHR-0002fI-Tp; Wed, 31 Oct 2018 17:44:02 -0400 From: Arash Esbati To: Peter Pichler Subject: Re: bug#32442: 26.1; reftex: TOC problems with section titles containing double quotes References: <86pnyjz9yc.fsf@gnu.org> <86pnyeurw4.fsf@gnu.org> Date: Wed, 31 Oct 2018 22:43:25 +0100 In-Reply-To: <86pnyeurw4.fsf@gnu.org> (Arash Esbati's message of "Sun, 19 Aug 2018 20:34:51 +0200") Message-ID: <86zhut7pxe.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32442-close Cc: 32442-close@debbugs.gnu.org, pichler@ieee.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: -6.0 (------) Arash Esbati writes: > But then again, I recommend you let OT1-encoded fonts and \"-constructs > go and try to fix the other issue. There was no response, and I don't consider this a bug, hence I'm closing it. Best, Arash From unknown Sun Jun 22 22:45:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Nov 2018 12:24:04 +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