From MAILER-DAEMON Thu Jun 16 07:58:22 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o1o8j-0001wR-0R for mharc-bug-auctex@gnu.org; Thu, 16 Jun 2022 07:58:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1o8R-0001uz-H1 for bug-auctex@gnu.org; Thu, 16 Jun 2022 07:58:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1o8Q-0000sk-17 for bug-auctex@gnu.org; Thu, 16 Jun 2022 07:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1o8P-0000GN-Vp for bug-auctex@gnu.org; Thu, 16 Jun 2022 07:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#28953: 11.91.0; wrong alert about inexistent LaTeX errors Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 16 Jun 2022 11:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28953 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: =?UTF-8?Q?Mos=C3=A8?= Giordano , jfbu Cc: 28953@debbugs.gnu.org Received: via spool by 28953-submit@debbugs.gnu.org id=B28953.1655380630952 (code B ref 28953); Thu, 16 Jun 2022 11:58:01 +0000 Received: (at 28953) by debbugs.gnu.org; 16 Jun 2022 11:57:10 +0000 Received: from localhost ([127.0.0.1]:40917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1o7Z-0000FI-SY for submit@debbugs.gnu.org; Thu, 16 Jun 2022 07:57:10 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:60910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1o7X-0000F9-UO for 28953@debbugs.gnu.org; Thu, 16 Jun 2022 07:57:09 -0400 Received: from localhost (61-24-175-238.rev.home.ne.jp [61.24.175.238]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 7F9FE2D7; Thu, 16 Jun 2022 20:57:05 +0900 (JST) From: Ikumi Keita In-reply-to: References: <4C19E60F-5677-4F59-B0D9-094040B023DA@free.fr> <5BD2FE55-D501-460C-8187-ED06E3DEFA6F@free.fr> <1C600EE8-5514-42B5-B209-1F4A764CC928@free.fr> Comments: In-reply-to =?UTF-8?Q?Mos=C3=A8?= Giordano message dated "Tue, 24 Oct 2017 00:24:55 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Jun 2022 20:57:04 +0900 Message-ID: <65945.1655380624@localhost> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2022 11:58:16 -0000 Hi Mos=E8 and Jean, I've forgotten this bug, but came across it just now. I expect it was fixed recently together with bug#55065[1]. Is it OK to close this bug? Bye, Ikumi Keita #StandWithUkraine #StopWarInUkraine [1] https://lists.gnu.org/r/bug-auctex/2022-04/msg00013.html >>>>> Mos=E8 Giordano writes: > 2017-10-23 18:35 GMT+02:00 jfbu : >>=20 >> Le 23 oct. 2017 =E0 17:09, Mos=E8 Giordano a =E9crit : >>=20 >>> 2017-10-23 14:47 GMT+02:00 jfbu : >>>> In real life example the ``:1: `` pattern appeared farther away on the= line >>>> inside a sentence. To a human, it is obvious it is not a LaTeX error >>>> message. I am confident the logic for recognizing such error messages >>>> is improvable. I plan to look at it when I get time to make >>>> concrete proposal. >>>=20 >>> The relevant regexp is at line 1507 of tex-buf.el: >>> https://git.savannah.gnu.org/gitweb/?p=3Dauctex.git;a=3Dblob;f=3Dtex-bu= f.el;h=3Df458651c2cffc110ef4af4541c6b08af976907fb;hb=3DHEAD#l1507 >>> Perhaps ".*" is too greedy, anyway that regexp should match anything >>> that is a legal path. I don't expect it to be supereasy to find a >>> regexp matching a path but not a whole sentence ;-) >>=20 >>=20 >> Indeed. But the regexp is really minimal, is there some documentation >> about the underlying difficulties? > I don't think there is such documentation, but I'd be happy to be proven = wrong. > As far as I know, using exclamation mark to start an error message is > just a widespread convention, there is nothing fundamental in it. For > the file-line-error style, the first part should match a file path. I > don't know if it **has** to start with "./" (or "/"), or it may change > depending on the TeX version (and for sure it depends on the platform > used). The file may end with an extension (AUCTeX doesn't really like > files without any extension), but TeX doesn't require it at all. >> Reporting that the LaTeX run had errors, and giving an Error overview >> could perhaps be split. >>=20 >> For example if I try this >>=20 >> \documentclass{article} >> \begin{document} >> Hi >> \typeout{./I/am/not/a/file:4: and this is not an error} >> \typeout{} >> \ERROR >> \typeout{} >> \typeout{! I am not an error.} >>=20 >> Did it go OK? >> \end{document} >>=20 >> with Latexmk, it will only say >>=20 >> Collected error summary (may duplicate other messages): >> latex: Command for 'latex' gave return code 1 >> Refer to 'temp2.log' for details >>=20 >> Without the \ERROR, it reports no problem. Now, indeed >> Latexmk does not report a detailed error summary like AUCTeX >> (it does report undefined references etc...) >>=20 >> For example a \PackageError{foo}{zaza}{tata} will also >> cause the latex run to exit with return code 1 on my mac os, >> hence the return code detects it independently of log contents. >>=20 >> Could AUCTeX check the return code on platforms allowing it? > This is interesting, but should be implemented in a reliable way. > Bye, > Mos=E8 From MAILER-DAEMON Thu Jun 16 08:43:07 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o1oq1-0004KT-ME for mharc-bug-auctex@gnu.org; Thu, 16 Jun 2022 08:43:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1opz-0004Hl-Cl for bug-auctex@gnu.org; Thu, 16 Jun 2022 08:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1opy-0006I8-PU for bug-auctex@gnu.org; Thu, 16 Jun 2022 08:43:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1opy-0003Xt-Nj for bug-auctex@gnu.org; Thu, 16 Jun 2022 08:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#28953: 11.91.0; wrong alert about inexistent LaTeX errors Resent-From: jfbu Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 16 Jun 2022 12:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28953 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita , =?UTF-8?Q?Mos=C3=A8?= Giordano Cc: 28953@debbugs.gnu.org Received: via spool by 28953-submit@debbugs.gnu.org id=B28953.165538334413564 (code B ref 28953); Thu, 16 Jun 2022 12:43:02 +0000 Received: (at 28953) by debbugs.gnu.org; 16 Jun 2022 12:42:24 +0000 Received: from localhost ([127.0.0.1]:40994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1opL-0003Wi-Ic for submit@debbugs.gnu.org; Thu, 16 Jun 2022 08:42:23 -0400 Received: from nc-smtp2.sdv.fr ([212.95.69.92]:44874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1opJ-0003WY-5l for 28953@debbugs.gnu.org; Thu, 16 Jun 2022 08:42:22 -0400 Received: from [192.168.1.219] (80.144.8.109.rev.sfr.net [109.8.144.80]) by nc-smtp2.sdv.fr (Postfix) with ESMTP id 90ACFA0139; Thu, 16 Jun 2022 14:42:17 +0200 (CEST) Message-ID: <6688008a-348d-a732-46e6-031df7ba417e@free.fr> Date: Thu, 16 Jun 2022 14:42:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: fr Newsgroups: gmane.emacs.auctex.bugs References: <4C19E60F-5677-4F59-B0D9-094040B023DA@free.fr> <5BD2FE55-D501-460C-8187-ED06E3DEFA6F@free.fr> <1C600EE8-5514-42B5-B209-1F4A764CC928@free.fr> <65945.1655380624@localhost> From: jfbu In-Reply-To: <65945.1655380624@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2022 12:43:03 -0000 Hi Keita and Mosè, OK with me, thanks I noticed in 2017 I wrote > I plan to look at it when I get time to make > concrete proposal. Obviously I never got time... As per my original problem it had occurred in a LaTeX package of mine and I fixed it there via avoiding using \ref with some argument including a ":", which I replaced with a full stop "." rather. This is why, probably, I did not bother more, sorry... Best, Jean-François Le 16/06/2022 à 13:57, Ikumi Keita a écrit : > Hi Mosè and Jean, > > I've forgotten this bug, but came across it just now. I expect it was > fixed recently together with bug#55065[1]. > > Is it OK to close this bug? > > Bye, > Ikumi Keita > #StandWithUkraine #StopWarInUkraine > > [1] https://lists.gnu.org/r/bug-auctex/2022-04/msg00013.html > >>>>>> Mosè Giordano writes: >> 2017-10-23 18:35 GMT+02:00 jfbu : >>> >>> Le 23 oct. 2017 à 17:09, Mosè Giordano a écrit : >>> >>>> 2017-10-23 14:47 GMT+02:00 jfbu : >>>>> In real life example the ``:1: `` pattern appeared farther away on the line >>>>> inside a sentence. To a human, it is obvious it is not a LaTeX error >>>>> message. I am confident the logic for recognizing such error messages >>>>> is improvable. I plan to look at it when I get time to make >>>>> concrete proposal. >>>> >>>> The relevant regexp is at line 1507 of tex-buf.el: >>>> https://git.savannah.gnu.org/gitweb/?p=auctex.git;a=blob;f=tex-buf.el;h=f458651c2cffc110ef4af4541c6b08af976907fb;hb=HEAD#l1507 >>>> Perhaps ".*" is too greedy, anyway that regexp should match anything >>>> that is a legal path. I don't expect it to be supereasy to find a >>>> regexp matching a path but not a whole sentence ;-) >>> >>> >>> Indeed. But the regexp is really minimal, is there some documentation >>> about the underlying difficulties? > >> I don't think there is such documentation, but I'd be happy to be proven wrong. > >> As far as I know, using exclamation mark to start an error message is >> just a widespread convention, there is nothing fundamental in it. For >> the file-line-error style, the first part should match a file path. I >> don't know if it **has** to start with "./" (or "/"), or it may change >> depending on the TeX version (and for sure it depends on the platform >> used). The file may end with an extension (AUCTeX doesn't really like >> files without any extension), but TeX doesn't require it at all. > >>> Reporting that the LaTeX run had errors, and giving an Error overview >>> could perhaps be split. >>> >>> For example if I try this >>> >>> \documentclass{article} >>> \begin{document} >>> Hi >>> \typeout{./I/am/not/a/file:4: and this is not an error} >>> \typeout{} >>> \ERROR >>> \typeout{} >>> \typeout{! I am not an error.} >>> >>> Did it go OK? >>> \end{document} >>> >>> with Latexmk, it will only say >>> >>> Collected error summary (may duplicate other messages): >>> latex: Command for 'latex' gave return code 1 >>> Refer to 'temp2.log' for details >>> >>> Without the \ERROR, it reports no problem. Now, indeed >>> Latexmk does not report a detailed error summary like AUCTeX >>> (it does report undefined references etc...) >>> >>> For example a \PackageError{foo}{zaza}{tata} will also >>> cause the latex run to exit with return code 1 on my mac os, >>> hence the return code detects it independently of log contents. >>> >>> Could AUCTeX check the return code on platforms allowing it? > >> This is interesting, but should be implemented in a reliable way. > >> Bye, >> Mosè > > > > _______________________________________________ > bug-auctex mailing list > bug-auctex@gnu.org > https://lists.gnu.org/mailman/listinfo/bug-auctex From MAILER-DAEMON Thu Jun 16 08:43:09 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o1oq5-0004N9-Pn for mharc-bug-auctex@gnu.org; Thu, 16 Jun 2022 08:43:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1opz-0004Hk-Be for bug-auctex@gnu.org; Thu, 16 Jun 2022 08:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47100) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1opy-0006Hv-IV for bug-auctex@gnu.org; Thu, 16 Jun 2022 08:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1opy-0003Xm-9R for bug-auctex@gnu.org; Thu, 16 Jun 2022 08:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#28953: 11.91.0; wrong alert about inexistent LaTeX errors Resent-From: jfbu Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 16 Jun 2022 12:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28953 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 28953@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org X-Debbugs-Original-Cc: 28953@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165538335413588 (code B ref -1); Thu, 16 Jun 2022 12:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jun 2022 12:42:34 +0000 Received: from localhost ([127.0.0.1]:40997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1opV-0003X5-Uz for submit@debbugs.gnu.org; Thu, 16 Jun 2022 08:42:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:42324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1opS-0003Ww-Uh for submit@debbugs.gnu.org; Thu, 16 Jun 2022 08:42:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1opS-0003Q7-LH for bug-auctex@gnu.org; Thu, 16 Jun 2022 08:42:30 -0400 Received: from ciao.gmane.io ([116.202.254.214]:48912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1opQ-00063p-QX for bug-auctex@gnu.org; Thu, 16 Jun 2022 08:42:30 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1o1opM-0009jW-9M for bug-auctex@gnu.org; Thu, 16 Jun 2022 14:42:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: jfbu Date: Thu, 16 Jun 2022 14:42:16 +0200 Message-ID: <6688008a-348d-a732-46e6-031df7ba417e@free.fr> References: <4C19E60F-5677-4F59-B0D9-094040B023DA@free.fr> <5BD2FE55-D501-460C-8187-ED06E3DEFA6F@free.fr> <1C600EE8-5514-42B5-B209-1F4A764CC928@free.fr> <65945.1655380624@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: fr In-Reply-To: <65945.1655380624@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geab-bug-auctex@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2022 12:43:03 -0000 Hi Keita and Mosè, OK with me, thanks I noticed in 2017 I wrote > I plan to look at it when I get time to make > concrete proposal. Obviously I never got time... As per my original problem it had occurred in a LaTeX package of mine and I fixed it there via avoiding using \ref with some argument including a ":", which I replaced with a full stop "." rather. This is why, probably, I did not bother more, sorry... Best, Jean-François Le 16/06/2022 à 13:57, Ikumi Keita a écrit : > Hi Mosè and Jean, > > I've forgotten this bug, but came across it just now. I expect it was > fixed recently together with bug#55065[1]. > > Is it OK to close this bug? > > Bye, > Ikumi Keita > #StandWithUkraine #StopWarInUkraine > > [1] https://lists.gnu.org/r/bug-auctex/2022-04/msg00013.html > >>>>>> Mosè Giordano writes: >> 2017-10-23 18:35 GMT+02:00 jfbu : >>> >>> Le 23 oct. 2017 à 17:09, Mosè Giordano a écrit : >>> >>>> 2017-10-23 14:47 GMT+02:00 jfbu : >>>>> In real life example the ``:1: `` pattern appeared farther away on the line >>>>> inside a sentence. To a human, it is obvious it is not a LaTeX error >>>>> message. I am confident the logic for recognizing such error messages >>>>> is improvable. I plan to look at it when I get time to make >>>>> concrete proposal. >>>> >>>> The relevant regexp is at line 1507 of tex-buf.el: >>>> https://git.savannah.gnu.org/gitweb/?p=auctex.git;a=blob;f=tex-buf.el;h=f458651c2cffc110ef4af4541c6b08af976907fb;hb=HEAD#l1507 >>>> Perhaps ".*" is too greedy, anyway that regexp should match anything >>>> that is a legal path. I don't expect it to be supereasy to find a >>>> regexp matching a path but not a whole sentence ;-) >>> >>> >>> Indeed. But the regexp is really minimal, is there some documentation >>> about the underlying difficulties? > >> I don't think there is such documentation, but I'd be happy to be proven wrong. > >> As far as I know, using exclamation mark to start an error message is >> just a widespread convention, there is nothing fundamental in it. For >> the file-line-error style, the first part should match a file path. I >> don't know if it **has** to start with "./" (or "/"), or it may change >> depending on the TeX version (and for sure it depends on the platform >> used). The file may end with an extension (AUCTeX doesn't really like >> files without any extension), but TeX doesn't require it at all. > >>> Reporting that the LaTeX run had errors, and giving an Error overview >>> could perhaps be split. >>> >>> For example if I try this >>> >>> \documentclass{article} >>> \begin{document} >>> Hi >>> \typeout{./I/am/not/a/file:4: and this is not an error} >>> \typeout{} >>> \ERROR >>> \typeout{} >>> \typeout{! I am not an error.} >>> >>> Did it go OK? >>> \end{document} >>> >>> with Latexmk, it will only say >>> >>> Collected error summary (may duplicate other messages): >>> latex: Command for 'latex' gave return code 1 >>> Refer to 'temp2.log' for details >>> >>> Without the \ERROR, it reports no problem. Now, indeed >>> Latexmk does not report a detailed error summary like AUCTeX >>> (it does report undefined references etc...) >>> >>> For example a \PackageError{foo}{zaza}{tata} will also >>> cause the latex run to exit with return code 1 on my mac os, >>> hence the return code detects it independently of log contents. >>> >>> Could AUCTeX check the return code on platforms allowing it? > >> This is interesting, but should be implemented in a reliable way. > >> Bye, >> Mosè > > > > _______________________________________________ > bug-auctex mailing list > bug-auctex@gnu.org > https://lists.gnu.org/mailman/listinfo/bug-auctex From MAILER-DAEMON Thu Jun 16 09:28:08 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o1pXb-0004m8-2j for mharc-bug-auctex@gnu.org; Thu, 16 Jun 2022 09:28:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1pXX-0004je-8h for bug-auctex@gnu.org; Thu, 16 Jun 2022 09:28:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1pXW-00011o-0h for bug-auctex@gnu.org; Thu, 16 Jun 2022 09:28:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1pXV-0006sD-Ps for bug-auctex@gnu.org; Thu, 16 Jun 2022 09:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#28953: 11.91.0; wrong alert about inexistent LaTeX errors Resent-From: jfbu Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 16 Jun 2022 13:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28953 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: =?UTF-8?Q?Mos=C3=A8?= Giordano Cc: 28953@debbugs.gnu.org, Ikumi Keita Received: via spool by 28953-submit@debbugs.gnu.org id=B28953.165538605626388 (code B ref 28953); Thu, 16 Jun 2022 13:28:01 +0000 Received: (at 28953) by debbugs.gnu.org; 16 Jun 2022 13:27:36 +0000 Received: from localhost ([127.0.0.1]:41091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1pX6-0006rX-0r for submit@debbugs.gnu.org; Thu, 16 Jun 2022 09:27:36 -0400 Received: from smtp5-g21.free.fr ([212.27.42.5]:34206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1pX3-0006rO-96 for 28953@debbugs.gnu.org; Thu, 16 Jun 2022 09:27:34 -0400 Received: from [192.168.1.219] (unknown [109.8.144.80]) (Authenticated sender: jfbu@free.fr) by smtp5-g21.free.fr (Postfix) with ESMTPSA id 58FCA5FFC5; Thu, 16 Jun 2022 15:27:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1655386051; bh=gI1GN0rIZGAgGlb72vVpchLIS+zWaVemuolRouoVvHU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=eOlIcpzX2NC3sSp/JIoNTfyZaaqYg+Q8UT25Cw28sXwN0jfC6jOUYu8T+EbdhGY13 WcFOBsJn+gCBFvz5WTQpHV0jZyxQK72AD0LHSc1nqhzlpHD8T0R8qQDHiQflYP0ZzD G/i2sAJh3Ivm+IQXdzlOJAiuusYV9FZRFq5kGIpWdk/UQQ+bLc8JtQMH0LH7p+D8u3 VpKPzrMLwcFT6rrIoe+Ra8+8qo1+9n9CsLEMRtU3xNdyFgKee9cWA/z6H1u2dLENz3 tSBzphtshSKVz+qlu3eG6USsqtLuouBxpJx/1UUN40LWrXjC7obheiJ5459Urtp3+d QN7IBGYrF8yLw== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) From: jfbu In-Reply-To: <65945.1655380624@localhost> Date: Thu, 16 Jun 2022 15:27:28 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4C19E60F-5677-4F59-B0D9-094040B023DA@free.fr> <5BD2FE55-D501-460C-8187-ED06E3DEFA6F@free.fr> <1C600EE8-5514-42B5-B209-1F4A764CC928@free.fr> <65945.1655380624@localhost> X-Mailer: Apple Mail (2.3445.9.7) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2022 13:28:05 -0000 Hi Mos=C3=A9, (replying about 56 months later) >=20 > Le 24 oct. 2017 =C3=A0 00:24, Mos=C3=A8 Giordano a = =C3=A9crit : >=20 > 2017-10-23 18:35 GMT+02:00 jfbu : >>=20 >> Le 23 oct. 2017 =C3=A0 17:09, Mos=C3=A8 Giordano a = =C3=A9crit : >>=20 >>> 2017-10-23 14:47 GMT+02:00 jfbu : >>>> In real life example the ``:1: `` pattern appeared farther away on = the line >>>> inside a sentence. To a human, it is obvious it is not a LaTeX = error >>>> message. I am confident the logic for recognizing such error = messages >>>> is improvable. I plan to look at it when I get time to make >>>> concrete proposal. >>>=20 >>> The relevant regexp is at line 1507 of tex-buf.el: >>> = https://git.savannah.gnu.org/gitweb/?p=3Dauctex.git;a=3Dblob;f=3Dtex-buf.e= l;h=3Df458651c2cffc110ef4af4541c6b08af976907fb;hb=3DHEAD#l1507 >>> Perhaps ".*" is too greedy, anyway that regexp should match anything >>> that is a legal path. I don't expect it to be supereasy to find a >>> regexp matching a path but not a whole sentence ;-) >>=20 >>=20 >> Indeed. But the regexp is really minimal, is there some documentation >> about the underlying difficulties? >=20 > I don't think there is such documentation, but I'd be happy to be = proven wrong. >=20 about this: > As far as I know, using exclamation mark to start an error message is > just a widespread convention, there is nothing fundamental in it. For Only to point out that it is core TeX behaviour in errorstopmode: (quoting from tex.web sources:) > The print_err procedure supplies a =E2=80=98!=E2=80=99 before the = official message, and makes sure that the terminal is awake if a stop is = going to occur.=20 >=20 > @ The global variable |interaction| has four settings, representing = increasing > amounts of user interaction: >=20 > @d batch_mode=3D0 {omits all stops and omits terminal output} > @d nonstop_mode=3D1 {omits all stops} > @d scroll_mode=3D2 {omits error stops} > @d error_stop_mode=3D3 {stops at every opportunity to interact} > @d print_err(#)=3D=3Dbegin if interaction=3Derror_stop_mode then = wake_up_terminal; > print_nl("! "); print(#); > end Any LaTeX \PackageError ultimately goes through TeX=E2=80=99s = \errmessage and \errhelp mechanisms. But the change file tex.ch implements -file-line-error option and this = is relevant: > @x [6.73] l.1734 - file:line:error style error messages. > print_nl("! "); print(#); > @y > if file_line_error_style_p then print_file_line > else print_nl("! "); > print(#); > @z The procedure print_file_line has coding > procedure print_file_line; > var level: 0..max_in_open; > begin > level:=3Din_open; > while (level>0) and (full_source_filename_stack[level]=3D0) do > decr(level); > if level=3D0 then > print_nl("! ") > else begin > print_nl (""); print (full_source_filename_stack[level]); print = (":"); > if level=3Din_open then print_int (line) > else print_int (line_stack[level+1]); > print (": "); > end; > end; Some other relevant pieces from tex.ch from web2c=20 > % Plus, it's nicer just to do an exit with the appropriate status code > % under Unix. We call it `uexit' because there's a WEB symbol called > % `exit' already. We use a C macro to change `uexit' back to `exit'. > @d do_final_end=3D=3Dbegin > update_terminal; > ready_already:=3D0; > if (history <> spotless) and (history <> warning_issued) then > uexit(1) > else > uexit(0); > end and from tex.web: > @d spotless=3D0 {|history| value when nothing has been amiss yet} > @d warning_issued=3D1 {|history| value when |begin_diagnostic| has = been called} > @d error_message_issued=3D2 {|history| value when |error| has been = called} > @d fatal_error_stop=3D3 {|history| value when termination was = premature} which is probably related to the exit status returned by binary in case \errmessage has been made used of Cheers, Jean-Fran=C3=A7ois From MAILER-DAEMON Thu Jun 23 06:24:15 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o4K0O-0007VI-7c for mharc-bug-auctex@gnu.org; Thu, 23 Jun 2022 06:24:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4K0I-0007St-Gm for bug-auctex@gnu.org; Thu, 23 Jun 2022 06:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4K0I-00054Y-8B for bug-auctex@gnu.org; Thu, 23 Jun 2022 06:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4K0I-00047P-5A for bug-auctex@gnu.org; Thu, 23 Jun 2022 06:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56160: 13.1.3; fill breaks verbatim macros not followed with spaces Resent-From: Thibaut Benjamin Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 23 Jun 2022 10:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56160 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 56160@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165597981715800 (code B ref -1); Thu, 23 Jun 2022 10:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jun 2022 10:23:37 +0000 Received: from localhost ([127.0.0.1]:37562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Jzp-00046j-T7 for submit@debbugs.gnu.org; Thu, 23 Jun 2022 06:23:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:36934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Ii4-0003po-4Y for submit@debbugs.gnu.org; Thu, 23 Jun 2022 05:01:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Ii1-0005HD-FH for bug-auctex@gnu.org; Thu, 23 Jun 2022 05:01:06 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:46964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4Ihr-0000kH-Jl for bug-auctex@gnu.org; Thu, 23 Jun 2022 05:01:01 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id i17so22340695qvo.13 for ; Thu, 23 Jun 2022 02:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=1IW0MIXYIFbwNgT4NOEGvARKFSP7A0EWM38BPYzj64c=; b=bjzldRLllhvLML6gVELxDi6GfgNynt8YexxTXJ5XeMP/f+YN6Tqal1G4nMVO5P4aFV AFMrWkyuB+SEys9WJMsI592X2kAAe+B48UyDrIP+neyXiq+5ibi8gZDO7LdlDje7rV2/ jBibmsKDhzxdq9bs6jwEdzz1azlHKOD83xtvCok5rGJH9Aw98sIpWhjb/YQfU48+GmiN YgHuWU251CoY1iHIZH6WBfarPkITPjNFwbsKQeVfqkigGq22wx//8IvD5ESpHW570nws YMRVxFqyl1OTvo+jbn1+aLOehMN41c9sxciqV7GIX5kHUO5KAkKLBpUug7K3pE9fuMpb gcsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1IW0MIXYIFbwNgT4NOEGvARKFSP7A0EWM38BPYzj64c=; b=XZUXB5VQ3yGj1wRxSGrRcrVD9zAdFm47COMnwRAE0Qcs8ORNuk6lMrbB17MM8Nz/U8 xPBDAYYfm77k1dHa6sRd6mePP674ldx1adKNxtC2kyPO8LXXCH+5gSfzH7CL1D7J3ZqP W+72N0d0FAs9b0bMqKVCQJXs0gn+6Xmx3ocPE9t3d/FjaNOKQlB+VMxQP0V2EQGYPoeG RaT4V7OG9dZGvtZ3DBwfGzmvvsLzJWhaU7idkF6amU+2DfVe4R4Qw3WmkcIc0/a82L0r n2ar9XLzFaKNQVr4OMeOwAYZSpDAWYCAdDo19v64Nijk8o7u36d9xi8Xlu0AQwbAYyNE KSfA== X-Gm-Message-State: AJIora/YO0R9HxoKcPNsb+CXNPgHsM8tW5g0nOxvKhGFw0d2zbuDujaf dZvdi0yb105KXqBFZH2oJxMM1c8yQjXyiw0jTYkPh0wFt/x7hQ== X-Google-Smtp-Source: AGRyM1trXqqf6t0heeG7WN6eo52hMfclsO/HK2Vb65kAkTU5qMcwh9vluSCfS7V2eGg8MNL0BouYcJDqd40MVFa9H/A= X-Received: by 2002:a05:6214:c83:b0:46e:27b5:fe19 with SMTP id r3-20020a0562140c8300b0046e27b5fe19mr31081113qvr.67.1655974854181; Thu, 23 Jun 2022 02:00:54 -0700 (PDT) MIME-Version: 1.0 From: Thibaut Benjamin Date: Thu, 23 Jun 2022 11:00:42 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000f0c74905e219b075" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=thibaut.benjamin@gmail.com; helo=mail-qv1-xf2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: Thu, 23 Jun 2022 06:23:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 10:24:03 -0000 --000000000000f0c74905e219b075 Content-Type: text/plain; charset="UTF-8" The behavior of LaTeX-fill-* seems to break when used with a verbatim macro which is not followed by a space. A minimal example is a TeX file containing only the following line > Lorem ipsum dolor sit amet, consectetur adipiscing elit, \verb|sed > do|eiusmod tempor > Running the LaTeX-fill-buffer command yields the following, which does not compile since a line break is inserted inside a verbatim macro. > Lorem ipsum dolor sit amet, consectetur adipiscing elit, \verb|sed > do|eiusmod tempor Adding a space after the macro solves the issue and the following file is filled properly. > Lorem ipsum dolor sit amet, consectetur adipiscing elit, \verb|sed do| > eiusmod tempor > My original use-case was with a piece of code of the following form, where adding the space is not really an option. > \lstinline|a <=|~$b$ > A possible workaround is to replace the space inside the verb macro with a no-break space (U+00A0) Many thanks, Thibaut --000000000000f0c74905e219b075 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

The behavior of LaTeX-fill-* seems to break when used = with a verbatim
macro which is not followed by a space.

A mi= nimal example is a TeX file containing only the following line
Lorem ipsum dolor sit amet,= consectetur adipiscing elit, \verb|sed do|eiusmod tempor
Running the LaTeX-fill-buffer command yields the following, which does not= compile since a line break is inserted inside a verbatim macro.
Lorem ipsum dolor sit amet, cons= ectetur adipiscing elit, \verb|sed
do|eiusmod tempor
Adding a space after the macro solves the issue and the follow= ing file is filled properly.
Lorem ipsum dolor sit amet, consectetur adipiscing e= lit, \verb|sed do| eiusmod tempor
=C2=A0
=
My original use-case was with a piece of code of the following form, w= here adding the space is not really an option.
\lstinline|a <=3D|~$b$
A possible workaround is to replace the space inside the ve= rb macro with a no-break space (U+00A0)

Many = thanks,
Thibaut
--000000000000f0c74905e219b075-- From MAILER-DAEMON Thu Jun 23 06:29:16 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o4K5M-0002KI-5p for mharc-bug-auctex@gnu.org; Thu, 23 Jun 2022 06:29:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4K59-0002HU-1u for bug-auctex@gnu.org; Thu, 23 Jun 2022 06:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4K58-00065y-PB for bug-auctex@gnu.org; Thu, 23 Jun 2022 06:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4K58-0004Ok-LY for bug-auctex@gnu.org; Thu, 23 Jun 2022 06:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading AucTeX Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 23 Jun 2022 10:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56162 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 56162@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165598011116867 (code B ref -1); Thu, 23 Jun 2022 10:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jun 2022 10:28:31 +0000 Received: from localhost ([127.0.0.1]:37575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4K4c-0004Nx-5h for submit@debbugs.gnu.org; Thu, 23 Jun 2022 06:28:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:49482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4K4a-0004Nq-Ff for submit@debbugs.gnu.org; Thu, 23 Jun 2022 06:28:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4K4a-0001SG-1v for bug-auctex@gnu.org; Thu, 23 Jun 2022 06:28:28 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59361) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4K4W-0005zP-Bq for bug-auctex@gnu.org; Thu, 23 Jun 2022 06:28:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 17D3C240026 for ; Thu, 23 Jun 2022 12:28:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1655980101; bh=kHV7E2vzm5seJ17N3LCsnTPBT85VYW/hHpsGPWQugfU=; h=From:To:Subject:Autocrypt:Date:From; b=a03oXNXezQGHATNOzKrv/3GGsB6JNnmmTGOq0ZRmHDMH2U7eI54pIdjaJt7YTYHch PcI16TyV5dH5GotHg/kZ1NqWbSPGvBGbqd0UrkV3ri1quEa6wX1DVzMhthBoMybMe5 VROyNe2g89+Ihv7Gvk3yKY3QnFFVOz1DgkCcpYFPz9lJkNjrJ5VdPL0IHQke8tBPZS 9S5wkRtgDTo9arIek8R2LjSiISFpC07SnFdB3aHoCQgUKIVOx9gOg2VzexPN1q3L3j FzepSsnCavfXBDfxTggU23ideBXBGnXTqMU9qdMtQbRzTYXH1aJxfasDexTaSGpIxu AjI2EnwL7BpCw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LTGg847rTz6tn3 for ; Thu, 23 Jun 2022 12:28:20 +0200 (CEST) From: Philip Kaludercic Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 23 Jun 2022 10:28:15 +0000 Message-ID: <87zgi3n074.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 10:29:03 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, while loading AucTeX I encounter the following issue: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.Servi= ceUnknown") signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown")) tramp-error((tramp-file-name "sftp" nil nil "uni" nil "/home/cip/2017/oj1= 4ozun/.links2" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown") tramp-gvfs-dbus-event-error((dbus-event :session 3 91 "org.freedesktop.DB= us" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-m= ethod-handler (:string "The name is not activatable")) (dbus-error "org.fre= edesktop.DBus.Error.ServiceUnknown" "The name is not activatable")) run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 91 = "org.freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceU= nknown" dbus-call-method-handler (:string "The name is not activatable")) (= dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not act= ivatable")) dbus-handle-event((dbus-event :session 3 91 "org.freedesktop.DBus" ":1.97= " nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-hand= ler (:string "The name is not activatable"))) funcall-interactively(dbus-handle-event (dbus-event :session 3 91 "org.fr= eedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown"= dbus-call-method-handler (:string "The name is not activatable"))) command-execute(dbus-handle-event nil [(dbus-event :session 3 91 "org.fre= edesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" = dbus-call-method-handler (:string "The name is not activatable"))] t) read-event(nil nil 0.001) dbus-call-method(:session "org.x.reader.Daemon" "/org/freedesktop/DBus" "= org.freedesktop.DBus.Peer" "Ping") dbus-ping(:session "org.x.reader.Daemon") (and (featurep 'dbusbind) (require 'dbus nil :no-error) (condition-case e= rr (progn (dbus-get-unique-name :session)) (dbus-error (if dbus-debug (prog= n (signal (car err) (cdr err)))))) (dbus-ping :session (format "org.%s.%s.D= aemon" de app)) (or (not (memq :forward options)) (let ((spec (dbus-introsp= ect-get-method :session (format "org.%s.%s.Daemon" de app) (format "/org/%s= /%s/Daemon" de app) (format "org.%s.%s.Daemon" de app) "FindDocument"))) (a= nd spec (equal '("s" "b" "s") (delq nil (mapcar #'... spec))))))) (let ((dbus-debug nil)) (and (featurep 'dbusbind) (require 'dbus nil :no-= error) (condition-case err (progn (dbus-get-unique-name :session)) (dbus-er= ror (if dbus-debug (progn (signal (car err) (cdr err)))))) (dbus-ping :sess= ion (format "org.%s.%s.Daemon" de app)) (or (not (memq :forward options)) (= let ((spec (dbus-introspect-get-method :session (format "org.%s.%s.Daemon" = de app) (format "/org/%s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de a= pp) "FindDocument"))) (and spec (equal '("s" "b" "s") (delq nil (mapcar ...= spec)))))))) TeX-evince-dbus-p("x" "reader" :forward) (if (TeX-evince-dbus-p de app :forward) (intern (format "TeX-%s-sync-view= " app)) (cons app (cons (list 'mode-io-correlate (let ((default-directory (= file-name-as-directory ...))) (if (string-match "--page-index" (shell-comma= nd-to-string ...)) " -i %(outpage)" " -p %(outpage)"))) '(" %o")))) TeX-view-program-select-evince("x" "reader") (cons (TeX-view-program-select-evince "x" "reader") '("xreader")) (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '("xr= eader"))) (cons (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader")= '("xreader"))) '(("Okular" ("okular --unique %o" (mode-io-correlate "#src:= %n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" TeX-pd= f-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-correlate " --synctex-= forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura"))) (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evinc= e") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-program-select-evin= ce "x" "reader") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-io-= correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("P= DF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-correl= ate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura")= ))) (cons '("xpdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpag= e)")) "xpdf") (cons (cons "Evince" (cons (TeX-view-program-select-evince "g= nome" "evince") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-program= -select-evince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique %= o" (mode-io-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xd= g-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (mo= de-io-correlate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...")= ) "zathura"))))) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %o" (m= ode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons (TeX-vi= ew-program-select-evince "gnome" "evince") '("evince"))) (cons (cons "Xread= er" (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))) '(("= Okular" ("okular --unique %o" ...) "okular") ("xdg-open" "xdg-open %o" "xdg= -open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" ...)= "zathura")))))) (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvips"= "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise = %o" (mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons (= TeX-view-program-select-evince "gnome" "evince") '("evince"))) (cons (cons = "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '...)) '(("Ok= ular" ... "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" TeX-= pdf-tools-sync-view) ("Zathura" ... "zathura"))))))) (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %b\= " -editor \"%cS\"") ((paper-a4 paper-portrait) " -paper a4") ((paper-a4 pap= er-landscape) " -paper a4r") ((paper-a5 paper-portrait) " -paper a5") ((pap= er-a5 paper-landscape) " -paper a5r") (paper-b5 " -paper b5") (paper-letter= " -paper us") (paper-legal " -paper legal") (paper-executive " -paper 7.25= x10.5in") " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -o = && gv %f" (list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpd= f" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpage)")) "xpdf") = (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evince"= ) '...)) (cons (cons "Xreader" (cons ... ...)) '(... ... ... ...))))))) (cons '("dvi2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi" (= mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") ((paper-a4 = paper-portrait) " -paper a4") ((paper-a4 paper-landscape) " -paper a4r") ((= paper-a5 paper-portrait) " -paper a5") ((paper-a5 paper-landscape) " -paper= a5r") (paper-b5 " -paper b5") (paper-letter " -paper us") (paper-legal " -= paper legal") (paper-executive " -paper 7.25x10.5in") " %d") "%(o?)xdvi") (= cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvips" "g= v")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %o"= ...) "xpdf") (cons (cons "Evince" (cons ... ...)) (cons (cons "Xreader" ..= .) '...))))))) (cond ((eq system-type 'windows-nt) '(("Yap" ("yap -1" (mode-io-correlate= " -s %n%b") " %o") "yap") ("dviout" ("dviout -1 " ((paper-a4 paper-portrai= t) "-y=3DA4 ") ((paper-a4 paper-landscape) "-y=3DA4L ") ((paper-a5 paper-po= rtrait) "-y=3DA5 ") ((paper-a5 paper-landscape) "-y=3DA5L ") ((paper-b5 pap= er-portrait) "-y=3DE5 ") ((paper-b5 paper-landscape) "-y=3DE5L ") ((paper-b= 4jis paper-portrait) "-y=3DB4 ") ((paper-b4jis paper-landscape) "-y=3DB4L "= ) ((paper-b5jis paper-portrait) "-y=3DB5 ") ((paper-b5jis paper-landscape) = "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper-letter "-y=3DLetter ") (pap= er-executive "-y=3DExecutive ") "%d" (mode-io-correlate " \"# %n '%b'\"")) = "dviout") ("PDF Tools" TeX-pdf-tools-sync-view) ("SumatraPDF" ("SumatraPDF = -reuse-instance" (mode-io-correlate " -forward-search \"%b\" %n") " %o") "S= umatraPDF") ("dvips and start" "dvips %d -o && start \"\" %f" "dvips") ("st= art" "start \"\" %o"))) ((eq system-type 'darwin) '(("Preview.app" "open -a= Preview.app %o" "open") ("Skim" "open -a Skim.app %o" "open") ("PDF Tools"= TeX-pdf-tools-sync-view) ("displayline" "displayline %n %o %b" "displaylin= e") ("open" "open %o" "open"))) (t (cons '("dvi2tty" ("dvi2tty -q -w 132 %o= ")) (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %= b\" -editor \"%cS\"") (... " -paper a4") (... " -paper a4r") (... " -paper = a5") (... " -paper a5r") (paper-b5 " -paper b5") (paper-letter " -paper us"= ) (paper-legal " -paper legal") (paper-executive " -paper 7.25x10.5in") " %= d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (li= st "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '... (cons ... ...)= ))))))) (defvar TeX-view-program-list-builtin (cond ((eq system-type 'windows-nt)= '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o") "yap") ("dviout" = ("dviout -1 " (... "-y=3DA4 ") (... "-y=3DA4L ") (... "-y=3DA5 ") (... "-y= =3DA5L ") (... "-y=3DE5 ") (... "-y=3DE5L ") (... "-y=3DB4 ") (... "-y=3DB4= L ") (... "-y=3DB5 ") (... "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper-= letter "-y=3DLetter ") (paper-executive "-y=3DExecutive ") "%d" (mode-io-co= rrelate " \"# %n '%b'\"")) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view) = ("SumatraPDF" ("SumatraPDF -reuse-instance" (mode-io-correlate " -forward-s= earch \"%b\" %n") " %o") "SumatraPDF") ("dvips and start" "dvips %d -o && s= tart \"\" %f" "dvips") ("start" "start \"\" %o"))) ((eq system-type 'darwin= ) '(("Preview.app" "open -a Preview.app %o" "open") ("Skim" "open -a Skim.a= pp %o" "open") ("PDF Tools" TeX-pdf-tools-sync-view) ("displayline" "displa= yline %n %o %b" "displayline") ("open" "open %o" "open"))) (t (cons '("dvi2= tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi" ... ... ... ... = ... ... ... ... ... " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dv= ips %d -o && gv %f" (list "%(o?)dvips" "gv")) (cons '... (cons ... ...)))))= )) "Alist of built-in viewer specifications.\nThis vari...") eval-buffer(# nil "/home/philip/.config/emacs/elpa/auctex= -13.1.3/tex...." nil t) ; Reading at buffer position 56145 load-with-code-conversion("/home/philip/.config/emacs/elpa/auctex-13.1.3/= tex...." "/home/philip/.config/emacs/elpa/auctex-13.1.3/tex...." nil t) command-execute(TeX-submit-bug-report record) execute-extended-command(nil "TeX-submit-bug-report" "TeX-bug") funcall-interactively(execute-extended-command nil "TeX-submit-bug-report= " "TeX-bug") command-execute(execute-extended-command) --8<---------------cut here---------------end--------------->8--- Apparently this is caused by `TeX-view-program-list-builtin' trying to evaluate (TeX-view-program-select-evince "mate" "atril") ; for Atril and (TeX-view-program-select-evince "x" "reader") ; for Xreader neither of which are installed on my system. I can solve this by either commenting the two entries out of the alist or by applying this patch --=-=-= Content-Type: text/plain Content-Disposition: inline diff -u --label /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el --label \#\ /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el /tmp/buffer-content-CKKwvw --- /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el +++ # @@ -1233,7 +1233,7 @@ DE is the name of the desktop environment, APP is the name of viewer." - (if (TeX-evince-dbus-p de app :forward) + (if (ignore-errors (TeX-evince-dbus-p de app :forward)) (intern (format "TeX-%s-sync-view" app)) `(,app (mode-io-correlate ;; When tex.el is loaded as response to opening a tex file Diff finished. Thu Jun 23 12:27:02 2022 --=-=-= Content-Type: text/plain Don't know if this breaks anything for Atril or Xrender users tough... Emacs : GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-06-19 Package: 13.1.3 current state: ============== (setq AUCTeX-date "2022-04-16" window-system 'pgtk LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/philip/.config/emacs/elpa/auctex-13.1.3/style" "/home/philip/.config/emacs/auctex/auto" "/home/philip/.config/emacs/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master 'dwim 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 MAILER-DAEMON Thu Jun 23 09:07:04 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o4MY4-0000af-60 for mharc-bug-auctex@gnu.org; Thu, 23 Jun 2022 09:07:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4MY2-0000Xi-3s for bug-auctex@gnu.org; Thu, 23 Jun 2022 09:07:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4MY1-0001dY-Ru for bug-auctex@gnu.org; Thu, 23 Jun 2022 09:07:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4MY1-0004SR-LJ for bug-auctex@gnu.org; Thu, 23 Jun 2022 09:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading AucTeX Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 23 Jun 2022 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56162 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 56162@debbugs.gnu.org, michael.albinus@gmx.de X-Debbugs-Original-Cc: bug-auctex@gnu.org, Michael Albinus , 56162@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165598957017063 (code B ref -1); Thu, 23 Jun 2022 13:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jun 2022 13:06:10 +0000 Received: from localhost ([127.0.0.1]:37744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4MXB-0004R7-FG for submit@debbugs.gnu.org; Thu, 23 Jun 2022 09:06:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:52756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4MX9-0004Qz-Cp for submit@debbugs.gnu.org; Thu, 23 Jun 2022 09:06:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4MX9-0008Dp-5v for bug-auctex@gnu.org; Thu, 23 Jun 2022 09:06:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4MX8-0001Tk-S4; Thu, 23 Jun 2022 09:06: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:In-reply-to:Date:Subject:To:From: References; bh=HkdANgQUHkGS5afxPR05kDTj9lY7Gc1I5u9HHAZHLVM=; b=RIlahe5pcmMjvc uOTBx8CoYQJru47QuJBT34eMq2CX+QE+xnB3xddH7FJ34Hzci4PGTUij2nwVVTnwzqjt/3PYmZN5a phRAvoDfr222Hvk4uA3MKg5GSbddD7mYurx7i/r5esZ//Rpyn/kI9AKV6wgKRLlhk6RzVl4NXy9/E comSCNszyIsYmD6y5lJpvBcft8D+cTu73hXq9+LoXRkFPyIXqmElMrCYXqRcjGEIRVIzDNOMJxMHY KPZG0EMx0Wmm0EJkqB73fyFkLdm6Brj2rVh679Ie1nMo6JtAoj31Oz/rz309K+G7dxoN3NPednHzg 8tKeGhOU0RZYm7DeV9pw==; Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:47885) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4MX8-0008Ve-I8; Thu, 23 Jun 2022 09:06:06 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 35B5E27C0054; Thu, 23 Jun 2022 09:06:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 23 Jun 2022 09:06:06 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefjedgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgfgsehtqhertddtredtnecuhfhrohhmpefvrghs shhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh epheeutdekhfettdfgudekkeevueduvdehveevjefhiefgudfhgeejjedtgfdtudejnecu ffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jun 2022 09:06:05 -0400 (EDT) References: <87zgi3n074.fsf@posteo.net> User-agent: mu4e 1.7.28; emacs 29.0.50 From: Tassilo Horn Date: Thu, 23 Jun 2022 14:14:14 +0200 In-reply-to: <87zgi3n074.fsf@posteo.net> Message-ID: <87czezh6mc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain 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 Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 13:07:02 -0000 Philip Kaludercic writes: Hi Philip & Michael, it looks more like a TRAMP issue to me, so I added Michael to the Cc. I think your patch might make sense and shouldn't affect users of Evince/Atril but I'd rather safeguard TeX-evince-dbus-p itself. However, I want to understand why you get the error. TeX-evince-dbus-p is defined starting with: --8<---------------cut here---------------start------------->8--- (defun TeX-evince-dbus-p (de app &rest options) "Return non-nil, if an evince-compatible reader is accessible via DBUS. Additional OPTIONS may be given to extend the check. If none are given, only the minimal requirements needed by backward search are checked. If OPTIONS include `:forward', which is currently the only option, then additional requirements needed by forward search are checked, too. DE is the name of the desktop environment, APP is the name of viewer." (let ((dbus-debug nil)) (and (featurep 'dbusbind) (require 'dbus nil :no-error) (dbus-ignore-errors (dbus-get-unique-name :session)) (dbus-ping :session (format "org.%s.%s.Daemon" de app)) --8<---------------cut here---------------end--------------->8--- So we can assume you have dbus and the session dbus is available. But why does the dbus-ping signal an error? I can do (TeX-evince-dbus-p "foo" "bar") just fine which simply returns nil. And how come there's tramp stuff in your backtrace and you get a file-error? And what is /home/cip/2017/oj14ozun/.links2 for a file and why is it accessed via sftp? Ah, it seems you have tramp-gvfs-dbus-event-error in dbus-event-error-functions which is simply added when tramp-gvfs.el is loaded. But when loading tramp-gvfs, I still cannot trigger the error because tramp-gvfs-dbus-event-vector is nil. Philip, you got that backtrace from M-x TeX-submit-bug-report. Where did that /home/cip/2017/oj14ozun/.links2 file come from in that context? And Michael, looking at the code I have the feeling that tramp-gvfs-dbus-event-vector should be buffer-local but it's set globally and then causes the issue... Bye, Tassilo > while loading AucTeX I encounter the following issue: > > Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.Ser= viceUnknown") > signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown")) > tramp-error((tramp-file-name "sftp" nil nil "uni" nil "/home/cip/2017/o= j14ozun/.links2" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown= ") > tramp-gvfs-dbus-event-error((dbus-event :session 3 91 "org.freedesktop.= DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call= -method-handler (:string "The name is not activatable")) (dbus-error "org.f= reedesktop.DBus.Error.ServiceUnknown" "The name is not activatable")) > run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 9= 1 "org.freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.Servic= eUnknown" dbus-call-method-handler (:string "The name is not activatable"))= (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not a= ctivatable")) > dbus-handle-event((dbus-event :session 3 91 "org.freedesktop.DBus" ":1.= 97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-ha= ndler (:string "The name is not activatable"))) > funcall-interactively(dbus-handle-event (dbus-event :session 3 91 "org.= freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknow= n" dbus-call-method-handler (:string "The name is not activatable"))) > command-execute(dbus-handle-event nil [(dbus-event :session 3 91 "org.f= reedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown= " dbus-call-method-handler (:string "The name is not activatable"))] t) > read-event(nil nil 0.001) > dbus-call-method(:session "org.x.reader.Daemon" "/org/freedesktop/DBus"= "org.freedesktop.DBus.Peer" "Ping") > dbus-ping(:session "org.x.reader.Daemon") > (and (featurep 'dbusbind) (require 'dbus nil :no-error) (condition-case= err (progn (dbus-get-unique-name :session)) (dbus-error (if dbus-debug (pr= ogn (signal (car err) (cdr err)))))) (dbus-ping :session (format "org.%s.%s= .Daemon" de app)) (or (not (memq :forward options)) (let ((spec (dbus-intro= spect-get-method :session (format "org.%s.%s.Daemon" de app) (format "/org/= %s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de app) "FindDocument"))) = (and spec (equal '("s" "b" "s") (delq nil (mapcar #'... spec))))))) > (let ((dbus-debug nil)) (and (featurep 'dbusbind) (require 'dbus nil :n= o-error) (condition-case err (progn (dbus-get-unique-name :session)) (dbus-= error (if dbus-debug (progn (signal (car err) (cdr err)))))) (dbus-ping :se= ssion (format "org.%s.%s.Daemon" de app)) (or (not (memq :forward options))= (let ((spec (dbus-introspect-get-method :session (format "org.%s.%s.Daemon= " de app) (format "/org/%s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de= app) "FindDocument"))) (and spec (equal '("s" "b" "s") (delq nil (mapcar .= .. spec)))))))) > TeX-evince-dbus-p("x" "reader" :forward) > (if (TeX-evince-dbus-p de app :forward) (intern (format "TeX-%s-sync-vi= ew" app)) (cons app (cons (list 'mode-io-correlate (let ((default-directory= (file-name-as-directory ...))) (if (string-match "--page-index" (shell-com= mand-to-string ...)) " -i %(outpage)" " -p %(outpage)"))) '(" %o")))) > TeX-view-program-select-evince("x" "reader") > (cons (TeX-view-program-select-evince "x" "reader") '("xreader")) > (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '("= xreader"))) > (cons (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader= ") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-io-correlate "#sr= c:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" TeX-= pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-correlate " --syncte= x-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura"))) > (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evi= nce") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-program-select-ev= ince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-i= o-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") (= "PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-corr= elate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura= ")))) > (cons '("xpdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outp= age)")) "xpdf") (cons (cons "Evince" (cons (TeX-view-program-select-evince = "gnome" "evince") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-progr= am-select-evince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique= %o" (mode-io-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "= xdg-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (= mode-io-correlate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...= ")) "zathura"))))) > (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %o" = (mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons (TeX-= view-program-select-evince "gnome" "evince") '("evince"))) (cons (cons "Xre= ader" (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))) '(= ("Okular" ("okular --unique %o" ...) "okular") ("xdg-open" "xdg-open %o" "x= dg-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" ..= .) "zathura")))))) > (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvip= s" "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -rais= e %o" (mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons= (TeX-view-program-select-evince "gnome" "evince") '("evince"))) (cons (con= s "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '...)) '(("= Okular" ... "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" Te= X-pdf-tools-sync-view) ("Zathura" ... "zathura"))))))) > (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %= b\" -editor \"%cS\"") ((paper-a4 paper-portrait) " -paper a4") ((paper-a4 p= aper-landscape) " -paper a4r") ((paper-a5 paper-portrait) " -paper a5") ((p= aper-a5 paper-landscape) " -paper a5r") (paper-b5 " -paper b5") (paper-lett= er " -paper us") (paper-legal " -paper legal") (paper-executive " -paper 7.= 25x10.5in") " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -= o && gv %f" (list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '("x= pdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpage)")) "xpdf"= ) (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evinc= e") '...)) (cons (cons "Xreader" (cons ... ...)) '(... ... ... ...))))))) > (cons '("dvi2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi"= (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") ((paper-a= 4 paper-portrait) " -paper a4") ((paper-a4 paper-landscape) " -paper a4r") = ((paper-a5 paper-portrait) " -paper a5") ((paper-a5 paper-landscape) " -pap= er a5r") (paper-b5 " -paper b5") (paper-letter " -paper us") (paper-legal "= -paper legal") (paper-executive " -paper 7.25x10.5in") " %d") "%(o?)xdvi")= (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvips" = "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %= o" ...) "xpdf") (cons (cons "Evince" (cons ... ...)) (cons (cons "Xreader" = ...) '...))))))) > (cond ((eq system-type 'windows-nt) '(("Yap" ("yap -1" (mode-io-correla= te " -s %n%b") " %o") "yap") ("dviout" ("dviout -1 " ((paper-a4 paper-portr= ait) "-y=3DA4 ") ((paper-a4 paper-landscape) "-y=3DA4L ") ((paper-a5 paper-= portrait) "-y=3DA5 ") ((paper-a5 paper-landscape) "-y=3DA5L ") ((paper-b5 p= aper-portrait) "-y=3DE5 ") ((paper-b5 paper-landscape) "-y=3DE5L ") ((paper= -b4jis paper-portrait) "-y=3DB4 ") ((paper-b4jis paper-landscape) "-y=3DB4L= ") ((paper-b5jis paper-portrait) "-y=3DB5 ") ((paper-b5jis paper-landscape= ) "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper-letter "-y=3DLetter ") (p= aper-executive "-y=3DExecutive ") "%d" (mode-io-correlate " \"# %n '%b'\"")= ) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view) ("SumatraPDF" ("SumatraPD= F -reuse-instance" (mode-io-correlate " -forward-search \"%b\" %n") " %o") = "SumatraPDF") ("dvips and start" "dvips %d -o && start \"\" %f" "dvips") ("= start" "start \"\" %o"))) ((eq system-type 'darwin) '(("Preview.app" "open = -a Preview.app %o" "open") ("Skim" "open -a Skim.app %o" "open") ("PDF Tool= s" TeX-pdf-tools-sync-view) ("displayline" "displayline %n %o %b" "displayl= ine") ("open" "open %o" "open"))) (t (cons '("dvi2tty" ("dvi2tty -q -w 132 = %o")) (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n= %b\" -editor \"%cS\"") (... " -paper a4") (... " -paper a4r") (... " -pape= r a5") (... " -paper a5r") (paper-b5 " -paper b5") (paper-letter " -paper u= s") (paper-legal " -paper legal") (paper-executive " -paper 7.25x10.5in") "= %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (= list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '... (cons ... ..= .)))))))) > (defvar TeX-view-program-list-builtin (cond ((eq system-type 'windows-n= t) '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o") "yap") ("dviout= " ("dviout -1 " (... "-y=3DA4 ") (... "-y=3DA4L ") (... "-y=3DA5 ") (... "-= y=3DA5L ") (... "-y=3DE5 ") (... "-y=3DE5L ") (... "-y=3DB4 ") (... "-y=3DB= 4L ") (... "-y=3DB5 ") (... "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper= -letter "-y=3DLetter ") (paper-executive "-y=3DExecutive ") "%d" (mode-io-c= orrelate " \"# %n '%b'\"")) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view)= ("SumatraPDF" ("SumatraPDF -reuse-instance" (mode-io-correlate " -forward-= search \"%b\" %n") " %o") "SumatraPDF") ("dvips and start" "dvips %d -o && = start \"\" %f" "dvips") ("start" "start \"\" %o"))) ((eq system-type 'darwi= n) '(("Preview.app" "open -a Preview.app %o" "open") ("Skim" "open -a Skim.= app %o" "open") ("PDF Tools" TeX-pdf-tools-sync-view) ("displayline" "displ= ayline %n %o %b" "displayline") ("open" "open %o" "open"))) (t (cons '("dvi= 2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi" ... ... ... ...= ... ... ... ... ... " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)d= vips %d -o && gv %f" (list "%(o?)dvips" "gv")) (cons '... (cons ... ...))))= ))) "Alist of built-in viewer specifications.\nThis vari...") > eval-buffer(# nil "/home/philip/.config/emacs/elpa/auct= ex-13.1.3/tex...." nil t) ; Reading at buffer position 56145 > load-with-code-conversion("/home/philip/.config/emacs/elpa/auctex-13.1.= 3/tex...." "/home/philip/.config/emacs/elpa/auctex-13.1.3/tex...." nil t) > command-execute(TeX-submit-bug-report record) > execute-extended-command(nil "TeX-submit-bug-report" "TeX-bug") > funcall-interactively(execute-extended-command nil "TeX-submit-bug-repo= rt" "TeX-bug") > command-execute(execute-extended-command) > > Apparently this is caused by `TeX-view-program-list-builtin' trying to > evaluate > > (TeX-view-program-select-evince "mate" "atril") ; for Atril > > and > > (TeX-view-program-select-evince "x" "reader") ; for Xreader > > neither of which are installed on my system. I can solve this by either > commenting the two entries out of the alist or by applying this patch > > diff -u --label /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el --la= bel \#\ /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.= el /tmp/buffer-content-CKKwvw > --- /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el > +++ # > @@ -1233,7 +1233,7 @@ >=20=20 > DE is the name of the desktop environment, APP is the name of > viewer." > - (if (TeX-evince-dbus-p de app :forward) > + (if (ignore-errors (TeX-evince-dbus-p de app :forward)) > (intern (format "TeX-%s-sync-view" app)) > `(,app (mode-io-correlate > ;; When tex.el is loaded as response to opening a tex file > > Diff finished. Thu Jun 23 12:27:02 2022 > > > Don't know if this breaks anything for Atril or Xrender users tough... > > Emacs : GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.= 24.34, cairo version 1.17.6) > of 2022-06-19 > Package: 13.1.3 > > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > AUCTeX-date "2022-04-16" > window-system 'pgtk > LaTeX-version "2e" > TeX-style-path '("~/.emacs.d/auctex" > "/home/philip/.config/emacs/elpa/auctex-13.1.3/style" > "/home/philip/.config/emacs/auctex/auto" > "/home/philip/.config/emacs/auctex/style" "auto" "style") > TeX-auto-save t > TeX-parse-self t > TeX-master 'dwim > 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") > ) > ) > > _______________________________________________ > bug-auctex mailing list > bug-auctex@gnu.org > https://lists.gnu.org/mailman/listinfo/bug-auctex From MAILER-DAEMON Thu Jun 23 09:07:04 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o4MY4-0000b3-Bg for mharc-bug-auctex@gnu.org; Thu, 23 Jun 2022 09:07:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4MY2-0000Xj-Cx for bug-auctex@gnu.org; Thu, 23 Jun 2022 09:07:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4MY2-0001do-51 for bug-auctex@gnu.org; Thu, 23 Jun 2022 09:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4MY2-0004SY-0o for bug-auctex@gnu.org; Thu, 23 Jun 2022 09:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading AucTeX Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 23 Jun 2022 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56162 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Philip Kaludercic Cc: 56162@debbugs.gnu.org, michael.albinus@gmx.de X-Debbugs-Original-Cc: bug-auctex@gnu.org, Michael Albinus , 56162@debbugs.gnu.org Received: via spool by 56162-submit@debbugs.gnu.org id=B56162.165598957517080 (code B ref 56162); Thu, 23 Jun 2022 13:07:01 +0000 Received: (at 56162) by debbugs.gnu.org; 23 Jun 2022 13:06:15 +0000 Received: from localhost ([127.0.0.1]:37748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4MXG-0004RP-GE for submit@debbugs.gnu.org; Thu, 23 Jun 2022 09:06:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4MXE-0004Qy-2i for 56162@debbugs.gnu.org; Thu, 23 Jun 2022 09:06:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4MX8-0001Tk-S4; Thu, 23 Jun 2022 09:06: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:In-reply-to:Date:Subject:To:From: References; bh=HkdANgQUHkGS5afxPR05kDTj9lY7Gc1I5u9HHAZHLVM=; b=RIlahe5pcmMjvc uOTBx8CoYQJru47QuJBT34eMq2CX+QE+xnB3xddH7FJ34Hzci4PGTUij2nwVVTnwzqjt/3PYmZN5a phRAvoDfr222Hvk4uA3MKg5GSbddD7mYurx7i/r5esZ//Rpyn/kI9AKV6wgKRLlhk6RzVl4NXy9/E comSCNszyIsYmD6y5lJpvBcft8D+cTu73hXq9+LoXRkFPyIXqmElMrCYXqRcjGEIRVIzDNOMJxMHY KPZG0EMx0Wmm0EJkqB73fyFkLdm6Brj2rVh679Ie1nMo6JtAoj31Oz/rz309K+G7dxoN3NPednHzg 8tKeGhOU0RZYm7DeV9pw==; Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:47885) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4MX8-0008Ve-I8; Thu, 23 Jun 2022 09:06:06 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 35B5E27C0054; Thu, 23 Jun 2022 09:06:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 23 Jun 2022 09:06:06 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefjedgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgfgsehtqhertddtredtnecuhfhrohhmpefvrghs shhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh epheeutdekhfettdfgudekkeevueduvdehveevjefhiefgudfhgeejjedtgfdtudejnecu ffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jun 2022 09:06:05 -0400 (EDT) References: <87zgi3n074.fsf@posteo.net> User-agent: mu4e 1.7.28; emacs 29.0.50 From: Tassilo Horn Date: Thu, 23 Jun 2022 14:14:14 +0200 In-reply-to: <87zgi3n074.fsf@posteo.net> Message-ID: <87czezh6mc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain 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 Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 13:07:02 -0000 Philip Kaludercic writes: Hi Philip & Michael, it looks more like a TRAMP issue to me, so I added Michael to the Cc. I think your patch might make sense and shouldn't affect users of Evince/Atril but I'd rather safeguard TeX-evince-dbus-p itself. However, I want to understand why you get the error. TeX-evince-dbus-p is defined starting with: --8<---------------cut here---------------start------------->8--- (defun TeX-evince-dbus-p (de app &rest options) "Return non-nil, if an evince-compatible reader is accessible via DBUS. Additional OPTIONS may be given to extend the check. If none are given, only the minimal requirements needed by backward search are checked. If OPTIONS include `:forward', which is currently the only option, then additional requirements needed by forward search are checked, too. DE is the name of the desktop environment, APP is the name of viewer." (let ((dbus-debug nil)) (and (featurep 'dbusbind) (require 'dbus nil :no-error) (dbus-ignore-errors (dbus-get-unique-name :session)) (dbus-ping :session (format "org.%s.%s.Daemon" de app)) --8<---------------cut here---------------end--------------->8--- So we can assume you have dbus and the session dbus is available. But why does the dbus-ping signal an error? I can do (TeX-evince-dbus-p "foo" "bar") just fine which simply returns nil. And how come there's tramp stuff in your backtrace and you get a file-error? And what is /home/cip/2017/oj14ozun/.links2 for a file and why is it accessed via sftp? Ah, it seems you have tramp-gvfs-dbus-event-error in dbus-event-error-functions which is simply added when tramp-gvfs.el is loaded. But when loading tramp-gvfs, I still cannot trigger the error because tramp-gvfs-dbus-event-vector is nil. Philip, you got that backtrace from M-x TeX-submit-bug-report. Where did that /home/cip/2017/oj14ozun/.links2 file come from in that context? And Michael, looking at the code I have the feeling that tramp-gvfs-dbus-event-vector should be buffer-local but it's set globally and then causes the issue... Bye, Tassilo > while loading AucTeX I encounter the following issue: > > Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.Ser= viceUnknown") > signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown")) > tramp-error((tramp-file-name "sftp" nil nil "uni" nil "/home/cip/2017/o= j14ozun/.links2" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown= ") > tramp-gvfs-dbus-event-error((dbus-event :session 3 91 "org.freedesktop.= DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call= -method-handler (:string "The name is not activatable")) (dbus-error "org.f= reedesktop.DBus.Error.ServiceUnknown" "The name is not activatable")) > run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 9= 1 "org.freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.Servic= eUnknown" dbus-call-method-handler (:string "The name is not activatable"))= (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not a= ctivatable")) > dbus-handle-event((dbus-event :session 3 91 "org.freedesktop.DBus" ":1.= 97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-ha= ndler (:string "The name is not activatable"))) > funcall-interactively(dbus-handle-event (dbus-event :session 3 91 "org.= freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknow= n" dbus-call-method-handler (:string "The name is not activatable"))) > command-execute(dbus-handle-event nil [(dbus-event :session 3 91 "org.f= reedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown= " dbus-call-method-handler (:string "The name is not activatable"))] t) > read-event(nil nil 0.001) > dbus-call-method(:session "org.x.reader.Daemon" "/org/freedesktop/DBus"= "org.freedesktop.DBus.Peer" "Ping") > dbus-ping(:session "org.x.reader.Daemon") > (and (featurep 'dbusbind) (require 'dbus nil :no-error) (condition-case= err (progn (dbus-get-unique-name :session)) (dbus-error (if dbus-debug (pr= ogn (signal (car err) (cdr err)))))) (dbus-ping :session (format "org.%s.%s= .Daemon" de app)) (or (not (memq :forward options)) (let ((spec (dbus-intro= spect-get-method :session (format "org.%s.%s.Daemon" de app) (format "/org/= %s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de app) "FindDocument"))) = (and spec (equal '("s" "b" "s") (delq nil (mapcar #'... spec))))))) > (let ((dbus-debug nil)) (and (featurep 'dbusbind) (require 'dbus nil :n= o-error) (condition-case err (progn (dbus-get-unique-name :session)) (dbus-= error (if dbus-debug (progn (signal (car err) (cdr err)))))) (dbus-ping :se= ssion (format "org.%s.%s.Daemon" de app)) (or (not (memq :forward options))= (let ((spec (dbus-introspect-get-method :session (format "org.%s.%s.Daemon= " de app) (format "/org/%s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de= app) "FindDocument"))) (and spec (equal '("s" "b" "s") (delq nil (mapcar .= .. spec)))))))) > TeX-evince-dbus-p("x" "reader" :forward) > (if (TeX-evince-dbus-p de app :forward) (intern (format "TeX-%s-sync-vi= ew" app)) (cons app (cons (list 'mode-io-correlate (let ((default-directory= (file-name-as-directory ...))) (if (string-match "--page-index" (shell-com= mand-to-string ...)) " -i %(outpage)" " -p %(outpage)"))) '(" %o")))) > TeX-view-program-select-evince("x" "reader") > (cons (TeX-view-program-select-evince "x" "reader") '("xreader")) > (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '("= xreader"))) > (cons (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader= ") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-io-correlate "#sr= c:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" TeX-= pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-correlate " --syncte= x-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura"))) > (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evi= nce") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-program-select-ev= ince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-i= o-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") (= "PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-corr= elate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura= ")))) > (cons '("xpdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outp= age)")) "xpdf") (cons (cons "Evince" (cons (TeX-view-program-select-evince = "gnome" "evince") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-progr= am-select-evince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique= %o" (mode-io-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "= xdg-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (= mode-io-correlate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...= ")) "zathura"))))) > (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %o" = (mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons (TeX-= view-program-select-evince "gnome" "evince") '("evince"))) (cons (cons "Xre= ader" (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))) '(= ("Okular" ("okular --unique %o" ...) "okular") ("xdg-open" "xdg-open %o" "x= dg-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" ..= .) "zathura")))))) > (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvip= s" "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -rais= e %o" (mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons= (TeX-view-program-select-evince "gnome" "evince") '("evince"))) (cons (con= s "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '...)) '(("= Okular" ... "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" Te= X-pdf-tools-sync-view) ("Zathura" ... "zathura"))))))) > (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %= b\" -editor \"%cS\"") ((paper-a4 paper-portrait) " -paper a4") ((paper-a4 p= aper-landscape) " -paper a4r") ((paper-a5 paper-portrait) " -paper a5") ((p= aper-a5 paper-landscape) " -paper a5r") (paper-b5 " -paper b5") (paper-lett= er " -paper us") (paper-legal " -paper legal") (paper-executive " -paper 7.= 25x10.5in") " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -= o && gv %f" (list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '("x= pdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpage)")) "xpdf"= ) (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evinc= e") '...)) (cons (cons "Xreader" (cons ... ...)) '(... ... ... ...))))))) > (cons '("dvi2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi"= (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") ((paper-a= 4 paper-portrait) " -paper a4") ((paper-a4 paper-landscape) " -paper a4r") = ((paper-a5 paper-portrait) " -paper a5") ((paper-a5 paper-landscape) " -pap= er a5r") (paper-b5 " -paper b5") (paper-letter " -paper us") (paper-legal "= -paper legal") (paper-executive " -paper 7.25x10.5in") " %d") "%(o?)xdvi")= (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvips" = "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %= o" ...) "xpdf") (cons (cons "Evince" (cons ... ...)) (cons (cons "Xreader" = ...) '...))))))) > (cond ((eq system-type 'windows-nt) '(("Yap" ("yap -1" (mode-io-correla= te " -s %n%b") " %o") "yap") ("dviout" ("dviout -1 " ((paper-a4 paper-portr= ait) "-y=3DA4 ") ((paper-a4 paper-landscape) "-y=3DA4L ") ((paper-a5 paper-= portrait) "-y=3DA5 ") ((paper-a5 paper-landscape) "-y=3DA5L ") ((paper-b5 p= aper-portrait) "-y=3DE5 ") ((paper-b5 paper-landscape) "-y=3DE5L ") ((paper= -b4jis paper-portrait) "-y=3DB4 ") ((paper-b4jis paper-landscape) "-y=3DB4L= ") ((paper-b5jis paper-portrait) "-y=3DB5 ") ((paper-b5jis paper-landscape= ) "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper-letter "-y=3DLetter ") (p= aper-executive "-y=3DExecutive ") "%d" (mode-io-correlate " \"# %n '%b'\"")= ) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view) ("SumatraPDF" ("SumatraPD= F -reuse-instance" (mode-io-correlate " -forward-search \"%b\" %n") " %o") = "SumatraPDF") ("dvips and start" "dvips %d -o && start \"\" %f" "dvips") ("= start" "start \"\" %o"))) ((eq system-type 'darwin) '(("Preview.app" "open = -a Preview.app %o" "open") ("Skim" "open -a Skim.app %o" "open") ("PDF Tool= s" TeX-pdf-tools-sync-view) ("displayline" "displayline %n %o %b" "displayl= ine") ("open" "open %o" "open"))) (t (cons '("dvi2tty" ("dvi2tty -q -w 132 = %o")) (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n= %b\" -editor \"%cS\"") (... " -paper a4") (... " -paper a4r") (... " -pape= r a5") (... " -paper a5r") (paper-b5 " -paper b5") (paper-letter " -paper u= s") (paper-legal " -paper legal") (paper-executive " -paper 7.25x10.5in") "= %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (= list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '... (cons ... ..= .)))))))) > (defvar TeX-view-program-list-builtin (cond ((eq system-type 'windows-n= t) '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o") "yap") ("dviout= " ("dviout -1 " (... "-y=3DA4 ") (... "-y=3DA4L ") (... "-y=3DA5 ") (... "-= y=3DA5L ") (... "-y=3DE5 ") (... "-y=3DE5L ") (... "-y=3DB4 ") (... "-y=3DB= 4L ") (... "-y=3DB5 ") (... "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper= -letter "-y=3DLetter ") (paper-executive "-y=3DExecutive ") "%d" (mode-io-c= orrelate " \"# %n '%b'\"")) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view)= ("SumatraPDF" ("SumatraPDF -reuse-instance" (mode-io-correlate " -forward-= search \"%b\" %n") " %o") "SumatraPDF") ("dvips and start" "dvips %d -o && = start \"\" %f" "dvips") ("start" "start \"\" %o"))) ((eq system-type 'darwi= n) '(("Preview.app" "open -a Preview.app %o" "open") ("Skim" "open -a Skim.= app %o" "open") ("PDF Tools" TeX-pdf-tools-sync-view) ("displayline" "displ= ayline %n %o %b" "displayline") ("open" "open %o" "open"))) (t (cons '("dvi= 2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi" ... ... ... ...= ... ... ... ... ... " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)d= vips %d -o && gv %f" (list "%(o?)dvips" "gv")) (cons '... (cons ... ...))))= ))) "Alist of built-in viewer specifications.\nThis vari...") > eval-buffer(# nil "/home/philip/.config/emacs/elpa/auct= ex-13.1.3/tex...." nil t) ; Reading at buffer position 56145 > load-with-code-conversion("/home/philip/.config/emacs/elpa/auctex-13.1.= 3/tex...." "/home/philip/.config/emacs/elpa/auctex-13.1.3/tex...." nil t) > command-execute(TeX-submit-bug-report record) > execute-extended-command(nil "TeX-submit-bug-report" "TeX-bug") > funcall-interactively(execute-extended-command nil "TeX-submit-bug-repo= rt" "TeX-bug") > command-execute(execute-extended-command) > > Apparently this is caused by `TeX-view-program-list-builtin' trying to > evaluate > > (TeX-view-program-select-evince "mate" "atril") ; for Atril > > and > > (TeX-view-program-select-evince "x" "reader") ; for Xreader > > neither of which are installed on my system. I can solve this by either > commenting the two entries out of the alist or by applying this patch > > diff -u --label /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el --la= bel \#\ /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.= el /tmp/buffer-content-CKKwvw > --- /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el > +++ # > @@ -1233,7 +1233,7 @@ >=20=20 > DE is the name of the desktop environment, APP is the name of > viewer." > - (if (TeX-evince-dbus-p de app :forward) > + (if (ignore-errors (TeX-evince-dbus-p de app :forward)) > (intern (format "TeX-%s-sync-view" app)) > `(,app (mode-io-correlate > ;; When tex.el is loaded as response to opening a tex file > > Diff finished. Thu Jun 23 12:27:02 2022 > > > Don't know if this breaks anything for Atril or Xrender users tough... > > Emacs : GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.= 24.34, cairo version 1.17.6) > of 2022-06-19 > Package: 13.1.3 > > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > AUCTeX-date "2022-04-16" > window-system 'pgtk > LaTeX-version "2e" > TeX-style-path '("~/.emacs.d/auctex" > "/home/philip/.config/emacs/elpa/auctex-13.1.3/style" > "/home/philip/.config/emacs/auctex/auto" > "/home/philip/.config/emacs/auctex/style" "auto" "style") > TeX-auto-save t > TeX-parse-self t > TeX-master 'dwim > 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") > ) > ) > > _______________________________________________ > bug-auctex mailing list > bug-auctex@gnu.org > https://lists.gnu.org/mailman/listinfo/bug-auctex From MAILER-DAEMON Thu Jun 23 13:33:04 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o4QhU-0007aE-4A for mharc-bug-auctex@gnu.org; Thu, 23 Jun 2022 13:33:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4QhS-0007ZY-Qa for bug-auctex@gnu.org; Thu, 23 Jun 2022 13:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4QhS-0003fK-I0 for bug-auctex@gnu.org; Thu, 23 Jun 2022 13:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4QhS-0005he-E7 for bug-auctex@gnu.org; Thu, 23 Jun 2022 13:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading AucTeX Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 23 Jun 2022 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56162 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: 56162@debbugs.gnu.org, philipk@posteo.net X-Debbugs-Original-Cc: bug-auctex@gnu.org, Philip Kaludercic , 56162@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165600554721648 (code B ref -1); Thu, 23 Jun 2022 17:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jun 2022 17:32:27 +0000 Received: from localhost ([127.0.0.1]:39785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Qgs-0005cf-5A for submit@debbugs.gnu.org; Thu, 23 Jun 2022 13:32:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:40460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Qgp-0005bP-VG for submit@debbugs.gnu.org; Thu, 23 Jun 2022 13:32:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Qgo-0007U8-Ly for bug-auctex@gnu.org; Thu, 23 Jun 2022 13:32:23 -0400 Received: from mout.gmx.net ([212.227.15.18]:56625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Qgl-0003cB-3R; Thu, 23 Jun 2022 13:32:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656005526; bh=Ta94lOXh8gilnw63Car50tQ9exsc86sg8sZVtRh0MNQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=dC26HA/R2LpwlVib3HMOrTepTmUqDiLb8Y0Xa1DsBrmayTIcbxCsZv7/FQBtjbScx DedB+rEetOADFBeN6h5gioh0yyNMTKlaWsZkQw4IgUZ515jd8/mtMRCyekgXoqJrys 3OMZoYjQbkKPwIE29l/78g+G73ziRfnUtCXg6/6g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.156.125]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Ml6qM-1nNNAw03Zc-00lW71; Thu, 23 Jun 2022 19:32:06 +0200 From: Michael Albinus References: <87zgi3n074.fsf@posteo.net> <87czezh6mc.fsf@gnu.org> Date: Thu, 23 Jun 2022 19:32:04 +0200 In-Reply-To: <87czezh6mc.fsf@gnu.org> (Tassilo Horn's message of "Thu, 23 Jun 2022 14:14:14 +0200") Message-ID: <87mte3nv57.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:BlVTlXHhRwELhDjb8D11xUFayA/TRUZX4qDkSfRfC7Ix0Qihbos +j94ofv4o/qVC2BzKQSik6xbga85o+tTFYCN06hif3hpQMvN4flQ+7U0Ugo21rPGf1+xunl L4Laa7Mzqg3DAXDM0dsA7JAjEUcOTEBL7sucpNyCfDkr1RWYQnpwNLshnfIYV8Kgu4NneKH FCUuztbZxS8u1OfNSacxA== X-UI-Out-Filterresults: notjunk:1;V03:K0:jpt1a7oQdiI=:Bb8wToN1tV673lBLEp75pw gPGaltBoqooSyG+ukTaCcB4eJganXracOf8CA+brO/VoMkZi5FFRc1NCXjt9plDXK74IqV7Un vO4OtbX9la496/QRYvAONqy2oeUEk1gPqSRek04xjNbuYT7PSuV9ZMN+lIkF/BipmFPe3dmcC TwCAvC4CMfkw+MKJ/4TPEt1DRLgcvhpLNPGPvaiWmd8SA4gZXccwH3RzqDRWuFyKJ74nSkD41 g5c+O+wybmoaSK1tn4zHrlfGCb8u8t1+KT5+oVBJf+JrkzD7H2X8hBtjSO+SHEFsxdWlxEd1L H6ksPhyQUhLvS03QOiej/5Bw0EmNlljPW9E/Yr99g4dcj1sLlVr8xaH3adz2QOSbnIiVWTxkn l8tKDDIRc1W37cFEfMDrgyqSrFIxK+sV0pr9W8i1CpS6mS1Ub+1qqQb+Wxaof5duxnemltqo+ NPffrV+kF32BYRD0ef7kh4JfFD3BMyW9XzuZHIfNaUvlnp4kIzkFaKwmUrrSR2SejKYpjx6vl udah4MNBtJNdrQlIiw6dilSYmNeJgoSkryqQsWsg73l6RVikXotnWF8xkb7Lcm0DCzXCBjCub Pa261Yf1IJfxZQdDZl4yqhDaHUGEzk28xBuYEBwA3WcDdrXsZMSR0YACQh3vZ8Fp3CRL4WrzA zAhyVpsv7Euzgg9tOjB9mAFU2ny79NstJ7MQyHCAXORu12nL78WUSLrJEHJ3cE2fU09aeGI4g 9eEBweZxLbC6Ba8x+wD9p5K5rdmOJj4QknJ1Ydoe121EFS9Y8+VPWvw2BkPsYxfIR/3pUItUa eB+n7NCLZUYZZpVmxx2wgrRGLbiYrjEqp8GP0ySyR/UeeQHI4yv3ZYltURUmvTNXqnZQBkFTs 6M2nWlg9Mssas+pJE+BFAyuBhCvYh55LDGqME7FlZ6/lAdce0KgG4TR9yNWZXtq9TrCfOAPC6 RGTB+5k4wDov3p7QL3x2PqHdNUdskGhW1DL4VWm9cUWh395XgHtUZYQJsJr+poeV34n3swrRk 18aB4ffr1zV+4fMJua7TBwMBG6taibnfQZ3eMT67SeWs9AT9B43n4IocYxzQXhulWHVUAEdiC VaY95TC3VbdTnOWnZu1rM810QcjGAvcmFKiyNNy4ABLtY4L4O4A3m2D8g== Received-SPF: pass client-ip=212.227.15.18; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 17:33:03 -0000 --=-=-= Content-Type: text/plain Tassilo Horn writes: > Hi Philip & Michael, Hi Tassilo & Philip, > it looks more like a TRAMP issue to me, so I added Michael to the Cc. Yes, it is Tramp. > So we can assume you have dbus and the session dbus is available. But > why does the dbus-ping signal an error? I can do > > (TeX-evince-dbus-p "foo" "bar") > > just fine which simply returns nil. And how come there's tramp stuff in > your backtrace and you get a file-error? And what is > /home/cip/2017/oj14ozun/.links2 for a file and why is it accessed via > sftp? > > Ah, it seems you have tramp-gvfs-dbus-event-error in > dbus-event-error-functions which is simply added when tramp-gvfs.el is > loaded. But when loading tramp-gvfs, I still cannot trigger the error > because tramp-gvfs-dbus-event-vector is nil. We don't need AucTeX and friends for this error :-) A simple scenario is --8<---------------cut here---------------start------------->8--- # emacs -Q ;; Activatel anything tramp-gvfs.el is responsible for, like (file-attributes "/sftp::") => (t 0 0 0 (25267 48739 0 0) (25259 16295 0 0) (0 0 0 0) 4096 "dr-xr-xr-x" nil 1 (-1 . 1)) (dbus-ping :session "foo.bar") => Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.ServiceUnknown") signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown")) tramp-error((tramp-file-name "sftp" nil nil #("gandalf" 0 7 (tramp-default t)) nil "/" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown") tramp-gvfs-dbus-event-error((dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable")) run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable")) dbus-handle-event((dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))) funcall-interactively(dbus-handle-event (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))) call-interactively(dbus-handle-event nil [(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))]) command-execute(dbus-handle-event nil [(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))] t) read-event(nil nil 0.001) dbus-call-method(:session "foo.bar" "/org/freedesktop/DBus" "org.freedesktop.DBus.Peer" "Ping") dbus-ping(:session "foo.bar") --8<---------------cut here---------------end--------------->8--- > Philip, you got that backtrace from M-x TeX-submit-bug-report. Where > did that /home/cip/2017/oj14ozun/.links2 file come from in that context? That is not relevant. > And Michael, looking at the code I have the feeling that > tramp-gvfs-dbus-event-vector should be buffer-local but it's set > globally and then causes the issue... Somehow. tramp-gvfs tries to catch *any* D-Bus error it sees, even if it isn't responsible for. And from the error itself it cannot determine whether it is meant for tramp-gvfs, the struct --8<---------------cut here---------------start------------->8--- (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) --8<---------------cut here---------------end--------------->8--- tells us that it is an error ("3") with the serial "48" (not relevant, D-Bus internal counter) from service "org.freedesktop.DBus" (the general purpose D-Bus service) sent to service ":1.220203" (that's us, Emacs). So there is no chance to filter tramp-gvfs events out. A buffer-local tramp-gvfs-dbus-event-vector doesn't help; the D-Bus event is received asynchronously, and it can happen any time Emacs reads incoming events. No guarantee that the respective buffer is current. The appended patch changes tramp-gvfs-dbus-event-vector being let-bound while tramp-gvfs is in action. There is the possible threat that a related D-Bus event arrives too late, due to time-outs or so, but let's see how it works. Could you pls check the patch? > Bye, > Tassilo Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index 3a5041c491..4adc35bcb6 100644 =2D-- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el @@ -841,6 +841,8 @@ tramp-gvfs-file-name-p (tramp-file-name-method (tramp-dissect-file-name filename)))) (and (stringp method) (member method tramp-gvfs-methods))))) +(defvar tramp-gvfs-dbus-event-vector) + ;;;###tramp-autoload (defun tramp-gvfs-file-name-handler (operation &rest args) "Invoke the GVFS related OPERATION and ARGS. @@ -848,7 +850,11 @@ tramp-gvfs-file-name-handler arguments to pass to the OPERATION." (unless tramp-gvfs-enabled (tramp-user-error nil "Package `tramp-gvfs' not supported")) - (if-let ((fn (assoc operation tramp-gvfs-file-name-handler-alist))) + (if-let ((filename (apply #'tramp-file-name-for-operation operation arg= s)) + (tramp-gvfs-dbus-event-vector + (and (tramp-tramp-file-p filename) + (tramp-dissect-file-name filename))) + (fn (assoc operation tramp-gvfs-file-name-handler-alist))) (save-match-data (apply (cdr fn) args)) (tramp-run-real-handler operation args))) @@ -942,7 +948,8 @@ with-tramp-dbus-get-all-properties (defvar tramp-gvfs-dbus-event-vector nil "Current Tramp file name to be used, as vector. It is needed when D-Bus signals or errors arrive, because there -is no information where to trace the message.") +is no information where to trace the message. +Globally, the value shall always be nil; it is bound where needed.") (defun tramp-gvfs-dbus-event-error (event err) "Called when a D-Bus error message arrives, see `dbus-event-error-funct= ions'." @@ -2121,10 +2128,6 @@ tramp-gvfs-maybe-open-connection (unless (tramp-connectable-p vec) (throw 'non-essential 'non-essential)) - ;; We set the file name, in case there are incoming D-Bus signals or - ;; D-Bus errors. - (setq tramp-gvfs-dbus-event-vector vec) - ;; For password handling, we need a process bound to the connection ;; buffer. Therefore, we create a dummy process. Maybe there is a ;; better solution? --=-=-=-- From MAILER-DAEMON Thu Jun 23 13:33:04 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o4QhU-0007aV-8y for mharc-bug-auctex@gnu.org; Thu, 23 Jun 2022 13:33:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4QhT-0007Zj-6s for bug-auctex@gnu.org; Thu, 23 Jun 2022 13:33:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45890) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4QhS-0003fS-Uw for bug-auctex@gnu.org; Thu, 23 Jun 2022 13:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4QhS-0005hl-Se for bug-auctex@gnu.org; Thu, 23 Jun 2022 13:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading AucTeX Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 23 Jun 2022 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56162 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: 56162@debbugs.gnu.org, philipk@posteo.net X-Debbugs-Original-Cc: bug-auctex@gnu.org, Philip Kaludercic , 56162@debbugs.gnu.org Received: via spool by 56162-submit@debbugs.gnu.org id=B56162.165600553821268 (code B ref 56162); Thu, 23 Jun 2022 17:33:02 +0000 Received: (at 56162) by debbugs.gnu.org; 23 Jun 2022 17:32:18 +0000 Received: from localhost ([127.0.0.1]:39782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Qgj-0005WP-7T for submit@debbugs.gnu.org; Thu, 23 Jun 2022 13:32:18 -0400 Received: from mout.gmx.net ([212.227.15.18]:38139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Qgf-0005Od-73 for 56162@debbugs.gnu.org; Thu, 23 Jun 2022 13:32:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656005526; bh=Ta94lOXh8gilnw63Car50tQ9exsc86sg8sZVtRh0MNQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=dC26HA/R2LpwlVib3HMOrTepTmUqDiLb8Y0Xa1DsBrmayTIcbxCsZv7/FQBtjbScx DedB+rEetOADFBeN6h5gioh0yyNMTKlaWsZkQw4IgUZ515jd8/mtMRCyekgXoqJrys 3OMZoYjQbkKPwIE29l/78g+G73ziRfnUtCXg6/6g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.156.125]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Ml6qM-1nNNAw03Zc-00lW71; Thu, 23 Jun 2022 19:32:06 +0200 From: Michael Albinus References: <87zgi3n074.fsf@posteo.net> <87czezh6mc.fsf@gnu.org> Date: Thu, 23 Jun 2022 19:32:04 +0200 In-Reply-To: <87czezh6mc.fsf@gnu.org> (Tassilo Horn's message of "Thu, 23 Jun 2022 14:14:14 +0200") Message-ID: <87mte3nv57.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:BlVTlXHhRwELhDjb8D11xUFayA/TRUZX4qDkSfRfC7Ix0Qihbos +j94ofv4o/qVC2BzKQSik6xbga85o+tTFYCN06hif3hpQMvN4flQ+7U0Ugo21rPGf1+xunl L4Laa7Mzqg3DAXDM0dsA7JAjEUcOTEBL7sucpNyCfDkr1RWYQnpwNLshnfIYV8Kgu4NneKH FCUuztbZxS8u1OfNSacxA== X-UI-Out-Filterresults: notjunk:1;V03:K0:jpt1a7oQdiI=:Bb8wToN1tV673lBLEp75pw gPGaltBoqooSyG+ukTaCcB4eJganXracOf8CA+brO/VoMkZi5FFRc1NCXjt9plDXK74IqV7Un vO4OtbX9la496/QRYvAONqy2oeUEk1gPqSRek04xjNbuYT7PSuV9ZMN+lIkF/BipmFPe3dmcC TwCAvC4CMfkw+MKJ/4TPEt1DRLgcvhpLNPGPvaiWmd8SA4gZXccwH3RzqDRWuFyKJ74nSkD41 g5c+O+wybmoaSK1tn4zHrlfGCb8u8t1+KT5+oVBJf+JrkzD7H2X8hBtjSO+SHEFsxdWlxEd1L H6ksPhyQUhLvS03QOiej/5Bw0EmNlljPW9E/Yr99g4dcj1sLlVr8xaH3adz2QOSbnIiVWTxkn l8tKDDIRc1W37cFEfMDrgyqSrFIxK+sV0pr9W8i1CpS6mS1Ub+1qqQb+Wxaof5duxnemltqo+ NPffrV+kF32BYRD0ef7kh4JfFD3BMyW9XzuZHIfNaUvlnp4kIzkFaKwmUrrSR2SejKYpjx6vl udah4MNBtJNdrQlIiw6dilSYmNeJgoSkryqQsWsg73l6RVikXotnWF8xkb7Lcm0DCzXCBjCub Pa261Yf1IJfxZQdDZl4yqhDaHUGEzk28xBuYEBwA3WcDdrXsZMSR0YACQh3vZ8Fp3CRL4WrzA zAhyVpsv7Euzgg9tOjB9mAFU2ny79NstJ7MQyHCAXORu12nL78WUSLrJEHJ3cE2fU09aeGI4g 9eEBweZxLbC6Ba8x+wD9p5K5rdmOJj4QknJ1Ydoe121EFS9Y8+VPWvw2BkPsYxfIR/3pUItUa eB+n7NCLZUYZZpVmxx2wgrRGLbiYrjEqp8GP0ySyR/UeeQHI4yv3ZYltURUmvTNXqnZQBkFTs 6M2nWlg9Mssas+pJE+BFAyuBhCvYh55LDGqME7FlZ6/lAdce0KgG4TR9yNWZXtq9TrCfOAPC6 RGTB+5k4wDov3p7QL3x2PqHdNUdskGhW1DL4VWm9cUWh395XgHtUZYQJsJr+poeV34n3swrRk 18aB4ffr1zV+4fMJua7TBwMBG6taibnfQZ3eMT67SeWs9AT9B43n4IocYxzQXhulWHVUAEdiC VaY95TC3VbdTnOWnZu1rM810QcjGAvcmFKiyNNy4ABLtY4L4O4A3m2D8g== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 17:33:03 -0000 --=-=-= Content-Type: text/plain Tassilo Horn writes: > Hi Philip & Michael, Hi Tassilo & Philip, > it looks more like a TRAMP issue to me, so I added Michael to the Cc. Yes, it is Tramp. > So we can assume you have dbus and the session dbus is available. But > why does the dbus-ping signal an error? I can do > > (TeX-evince-dbus-p "foo" "bar") > > just fine which simply returns nil. And how come there's tramp stuff in > your backtrace and you get a file-error? And what is > /home/cip/2017/oj14ozun/.links2 for a file and why is it accessed via > sftp? > > Ah, it seems you have tramp-gvfs-dbus-event-error in > dbus-event-error-functions which is simply added when tramp-gvfs.el is > loaded. But when loading tramp-gvfs, I still cannot trigger the error > because tramp-gvfs-dbus-event-vector is nil. We don't need AucTeX and friends for this error :-) A simple scenario is --8<---------------cut here---------------start------------->8--- # emacs -Q ;; Activatel anything tramp-gvfs.el is responsible for, like (file-attributes "/sftp::") => (t 0 0 0 (25267 48739 0 0) (25259 16295 0 0) (0 0 0 0) 4096 "dr-xr-xr-x" nil 1 (-1 . 1)) (dbus-ping :session "foo.bar") => Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.ServiceUnknown") signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown")) tramp-error((tramp-file-name "sftp" nil nil #("gandalf" 0 7 (tramp-default t)) nil "/" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown") tramp-gvfs-dbus-event-error((dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable")) run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable")) dbus-handle-event((dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))) funcall-interactively(dbus-handle-event (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))) call-interactively(dbus-handle-event nil [(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))]) command-execute(dbus-handle-event nil [(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))] t) read-event(nil nil 0.001) dbus-call-method(:session "foo.bar" "/org/freedesktop/DBus" "org.freedesktop.DBus.Peer" "Ping") dbus-ping(:session "foo.bar") --8<---------------cut here---------------end--------------->8--- > Philip, you got that backtrace from M-x TeX-submit-bug-report. Where > did that /home/cip/2017/oj14ozun/.links2 file come from in that context? That is not relevant. > And Michael, looking at the code I have the feeling that > tramp-gvfs-dbus-event-vector should be buffer-local but it's set > globally and then causes the issue... Somehow. tramp-gvfs tries to catch *any* D-Bus error it sees, even if it isn't responsible for. And from the error itself it cannot determine whether it is meant for tramp-gvfs, the struct --8<---------------cut here---------------start------------->8--- (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) --8<---------------cut here---------------end--------------->8--- tells us that it is an error ("3") with the serial "48" (not relevant, D-Bus internal counter) from service "org.freedesktop.DBus" (the general purpose D-Bus service) sent to service ":1.220203" (that's us, Emacs). So there is no chance to filter tramp-gvfs events out. A buffer-local tramp-gvfs-dbus-event-vector doesn't help; the D-Bus event is received asynchronously, and it can happen any time Emacs reads incoming events. No guarantee that the respective buffer is current. The appended patch changes tramp-gvfs-dbus-event-vector being let-bound while tramp-gvfs is in action. There is the possible threat that a related D-Bus event arrives too late, due to time-outs or so, but let's see how it works. Could you pls check the patch? > Bye, > Tassilo Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index 3a5041c491..4adc35bcb6 100644 =2D-- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el @@ -841,6 +841,8 @@ tramp-gvfs-file-name-p (tramp-file-name-method (tramp-dissect-file-name filename)))) (and (stringp method) (member method tramp-gvfs-methods))))) +(defvar tramp-gvfs-dbus-event-vector) + ;;;###tramp-autoload (defun tramp-gvfs-file-name-handler (operation &rest args) "Invoke the GVFS related OPERATION and ARGS. @@ -848,7 +850,11 @@ tramp-gvfs-file-name-handler arguments to pass to the OPERATION." (unless tramp-gvfs-enabled (tramp-user-error nil "Package `tramp-gvfs' not supported")) - (if-let ((fn (assoc operation tramp-gvfs-file-name-handler-alist))) + (if-let ((filename (apply #'tramp-file-name-for-operation operation arg= s)) + (tramp-gvfs-dbus-event-vector + (and (tramp-tramp-file-p filename) + (tramp-dissect-file-name filename))) + (fn (assoc operation tramp-gvfs-file-name-handler-alist))) (save-match-data (apply (cdr fn) args)) (tramp-run-real-handler operation args))) @@ -942,7 +948,8 @@ with-tramp-dbus-get-all-properties (defvar tramp-gvfs-dbus-event-vector nil "Current Tramp file name to be used, as vector. It is needed when D-Bus signals or errors arrive, because there -is no information where to trace the message.") +is no information where to trace the message. +Globally, the value shall always be nil; it is bound where needed.") (defun tramp-gvfs-dbus-event-error (event err) "Called when a D-Bus error message arrives, see `dbus-event-error-funct= ions'." @@ -2121,10 +2128,6 @@ tramp-gvfs-maybe-open-connection (unless (tramp-connectable-p vec) (throw 'non-essential 'non-essential)) - ;; We set the file name, in case there are incoming D-Bus signals or - ;; D-Bus errors. - (setq tramp-gvfs-dbus-event-vector vec) - ;; For password handling, we need a process bound to the connection ;; buffer. Therefore, we create a dummy process. Maybe there is a ;; better solution? --=-=-=-- From MAILER-DAEMON Tue Jun 28 10:26:03 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o6CAF-0005pj-7i for mharc-bug-auctex@gnu.org; Tue, 28 Jun 2022 10:26:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6CAE-0005pN-5z; Tue, 28 Jun 2022 10:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6CAD-0005Ah-Ti; Tue, 28 Jun 2022 10:26:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6CAD-0006Dd-Oa; Tue, 28 Jun 2022 10:26:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading AucTeX Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org, bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Jun 2022 14:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56162 X-GNU-PR-Package: auctex,emacs X-GNU-PR-Keywords: To: Tassilo Horn Cc: philipk@posteo.net, 56162@debbugs.gnu.org Received: via spool by 56162-submit@debbugs.gnu.org id=B56162.165642634923886 (code B ref 56162); Tue, 28 Jun 2022 14:26:01 +0000 Received: (at 56162) by debbugs.gnu.org; 28 Jun 2022 14:25:49 +0000 Received: from localhost ([127.0.0.1]:55923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6CA0-0006DC-Pb for submit@debbugs.gnu.org; Tue, 28 Jun 2022 10:25:49 -0400 Received: from mout.gmx.net ([212.227.15.19]:40847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6C9x-0006Cx-E7 for 56162@debbugs.gnu.org; Tue, 28 Jun 2022 10:25:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656426339; bh=vuSstRTBG+RTKBqIvyYeEVSf7RmDuLEPnrflIvRRnbQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=QGgam7c4j+S6DY2GKU9+BGUYoJ2/dDPtRwsB0oqTymjrY8ZVJvf0WMqG02Cmz5CHq yKmTPcK7jSu355MXf6q6hmEwcjmMpV4oWc1ilG9dhWoKYYkjxVe8SUVcAVXqA92CwL oHn9lKmcvVR1BfTAmoDt/stJVTqE/KecJhYm2dFs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([79.140.124.34]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MJVHe-1oLeby3N4C-00JqQl; Tue, 28 Jun 2022 16:25:38 +0200 From: Michael Albinus References: <87zgi3n074.fsf@posteo.net> <87czezh6mc.fsf@gnu.org> <87mte3nv57.fsf@gmx.de> Date: Tue, 28 Jun 2022 16:25:37 +0200 In-Reply-To: <87mte3nv57.fsf@gmx.de> (Michael Albinus's message of "Thu, 23 Jun 2022 19:32:04 +0200") Message-ID: <87y1xguaou.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:XCXVXR/SZk31GJBmU5zoGQUhV4MgMcdIDCvp1Pt/hOc9RDTLoDd eed4Ay3+gcEjcpqEydrLcaJ3INQAKAVEQuAi/yq4zzvd9QKEsZD3mCh1qnCaeTDjRm49CaM SAMzSKvF6NEuiNQybVds2JUkInS6Uvmcz0T9OPTJR47rNzDRVNeLWgbep9jSBWqdkt9iomZ SYUXXsr8Bj6RvARyBLXSA== X-UI-Out-Filterresults: notjunk:1;V03:K0:GSy04Ba3js8=:N4xrfvBjCI8bBlZnPA/0nd BNT0yEdk22/CQdunTcyu3F4umFMLRCJ9SJYIzBeqbEFhTd8qz8IWjCvonHqbkvQ/CL3m99249 DmYVwjr+0MVPPcp+LRceaY3uoUgdHS4P94h36h/BX2dKK56+347xT3fVhbjNS+VWSdHnforZ8 b7FXKmIGOGT8zhQGBqTr2j4jzv4p/rTSQyVwI6rLFhXqecIeVcNAMrlI7B5nuaiIkP8W0qkx/ 637/KPImIpQI34KoGShL6T4j0gPw8EBpWcSbs3sAuz4HcpdOaQauCE8HfSazO9CaRRSfjxs3U 5040zyXW4cTNg1sNtDa2siJ9PxfeS/pdTOsKpLzlgNBHinFyHOFJsw9oXjhr2qMO61E4yXiOm zD12uHoueF396H0KIpLXjEPndl6TxDJiiKdN/dGsNk//1vNJ/PVJkKqtGKMspi40OXU+T8BMt pB5sG35JQNfBZYssfecLFHDx80nKOnYn+8LVm/CwlN5O/fZ7CCL8fyZzyKNsp9Mof4rwhjcBQ 30ghak42ZVSEcyjYDVaJB4RjTJ0y6LFP5u9l5LXMhurMebT/wE8OddT5cg20j42i5YRV9EAmk FwujB4+rEwn9l0MZdb2PoCHtcJJdG+7fPRVpUw0K/YzwVJah6v40DtxXWxC9fpqp3e9NhuZnS PLY9vAksp3BQyGOEicNbv8yEhOdHuK8WYsYuNWm3jTZhqkgxPoCsEpolA3zFeQg5nS0XKMmpu YCRy/U4PjSCeNwAxqq1dm2nAY/9U63+EL3q8yYSSXyz2bHFsSg59H3WlQAVb4EvPLbBnW49ae imhQrauivVeIuD5R9U5AKlFjGStMl+fmiOEJACmGuh85hgdIZd067ss7qQkx8CJkNE+jT4q3k rhx06DF45ycRSvXzLxDxk4BDzCMsiuXfMWwU15/i3u6+lg58Mc6pvXIf/KnZjdJNmur+sbwqC WYmQGSvLig+gNNnePS1yTGQ2Ihe4p0aZfFMbRVCKo08rf5VtDGZbL/BJYdwp+c+IN6X+sipdV 97R2PmUFSAkOgS8nvdXEJy+exE3ZKLbWx0chtFpAdx9aSHljZ53BHURQESOeurRxU9jC+8y+I LPDZ+DZ1nj+XCzGLHIuaVpjmCQL6Ek6Yc9yNHTvoThJadQ79U5+XIO2JQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2022 14:26:02 -0000 Michael Albinus writes: Hi Tassilo & Philip, >> And Michael, looking at the code I have the feeling that >> tramp-gvfs-dbus-event-vector should be buffer-local but it's set >> globally and then causes the issue... > > Somehow. tramp-gvfs tries to catch *any* D-Bus error it sees, even if it > isn't responsible for. And from the error itself it cannot determine > whether it is meant for tramp-gvfs, the struct > > (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) > > tells us that it is an error ("3") with the serial "48" (not relevant, > D-Bus internal counter) from service "org.freedesktop.DBus" (the general > purpose D-Bus service) sent to service ":1.220203" (that's us, > Emacs). So there is no chance to filter tramp-gvfs events out. > > A buffer-local tramp-gvfs-dbus-event-vector doesn't help; the D-Bus > event is received asynchronously, and it can happen any time Emacs reads > incoming events. No guarantee that the respective buffer is current. > > The appended patch changes tramp-gvfs-dbus-event-vector being let-bound > while tramp-gvfs is in action. There is the possible threat that a > related D-Bus event arrives too late, due to time-outs or so, but let's > see how it works. > > Could you pls check the patch? No further comments, so I've pushed this to the emacs-28 branch. In a couple of days I'll close it, unless there are problems reported by you. >> Bye, >> Tassilo Best regards, Michael. From MAILER-DAEMON Tue Jun 28 10:29:06 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o6CDA-0001GL-H1 for mharc-bug-auctex@gnu.org; Tue, 28 Jun 2022 10:29:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6CD8-0001Eb-KI; Tue, 28 Jun 2022 10:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6CD8-0005Z4-7U; Tue, 28 Jun 2022 10:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6CD8-0006Hp-11; Tue, 28 Jun 2022 10:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading AucTeX Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org, bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Jun 2022 14:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56162 X-GNU-PR-Package: auctex,emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: philipk@posteo.net, 56162@debbugs.gnu.org Received: via spool by 56162-submit@debbugs.gnu.org id=B56162.165642649324108 (code B ref 56162); Tue, 28 Jun 2022 14:29:01 +0000 Received: (at 56162) by debbugs.gnu.org; 28 Jun 2022 14:28:13 +0000 Received: from localhost ([127.0.0.1]:55929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6CCL-0006Gm-8y for submit@debbugs.gnu.org; Tue, 28 Jun 2022 10:28:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6CCJ-0006GY-31 for 56162@debbugs.gnu.org; Tue, 28 Jun 2022 10:28:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6CCD-0005TG-RP; Tue, 28 Jun 2022 10:28:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=bkfnHTP+/CLDMqvPKk4qO7pKw8Xp1nX2fEQozpO5JLg=; b=XkqPaeKTD6mJ58 ySmHV43LTduUVQceOBrXQT9OwKIRtLpXbwBPBmW84IIOIQ0jcySOK8Qk5Y66GQoR4mAthu0IEfK+T kbxUYwsMpcehtFm27NlB3Ti29aLpXgXT5ohMwuImod/P49olIVIukhUozS8aTWXfXwfNJ3ltcsb1d 9w0rvcTZ3Y3zTLa+RxG4IfrjmB+JvwlOIU+cTBoXK4mb6mU6ibdK/UUgoXbjilCql3WkD3HMlEs21 jNbUiAmI6tVqgbu7qO+i29v3JX4zyljIi5ypIH8uoRjMT+iVdMjXC92MJ03mPi2KWWfVhpf8UJtEq zVv6W8G2EUJZ/bkeG9+Q==; Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:47171) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6CCC-0000Tw-BA; Tue, 28 Jun 2022 10:28:05 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 1FB6727C0054; Tue, 28 Jun 2022 10:28:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 28 Jun 2022 10:28:04 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegjedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dujedtheduvdelffejkeetgedvheelhedvueefhfeukeekkeehvdfggeegffevgfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Jun 2022 10:28:02 -0400 (EDT) References: <87zgi3n074.fsf@posteo.net> <87czezh6mc.fsf@gnu.org> <87mte3nv57.fsf@gmx.de> <87y1xguaou.fsf@gmx.de> User-agent: mu4e 1.7.28; emacs 29.0.50 From: Tassilo Horn Date: Tue, 28 Jun 2022 16:26:59 +0200 In-reply-to: <87y1xguaou.fsf@gmx.de> Message-ID: <8735fo9826.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2022 14:29:02 -0000 Michael Albinus writes: Hi Michael, >> Could you pls check the patch? Sorry, I didn't speak up because the patch looked reasonably to me. :-) > No further comments, so I've pushed this to the emacs-28 branch. In a > couple of days I'll close it, unless there are problems reported by you. Thank you! Bye, Tassilo From MAILER-DAEMON Wed Jun 29 02:29:08 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o6RCF-00020R-C8 for mharc-bug-auctex@gnu.org; Wed, 29 Jun 2022 02:29:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6RCA-0001yH-Uz for bug-auctex@gnu.org; Wed, 29 Jun 2022 02:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6RCA-0000fE-6J for bug-auctex@gnu.org; Wed, 29 Jun 2022 02:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6RCA-0007bf-2J for bug-auctex@gnu.org; Wed, 29 Jun 2022 02:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56160: 13.1.3; fill breaks verbatim macros not followed with spaces Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 29 Jun 2022 06:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56160 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Thibaut Benjamin Cc: 56160@debbugs.gnu.org Received: via spool by 56160-submit@debbugs.gnu.org id=B56160.165648409829180 (code B ref 56160); Wed, 29 Jun 2022 06:29:02 +0000 Received: (at 56160) by debbugs.gnu.org; 29 Jun 2022 06:28:18 +0000 Received: from localhost ([127.0.0.1]:57040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6RBS-0007aZ-6G for submit@debbugs.gnu.org; Wed, 29 Jun 2022 02:28:18 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:43722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6RBP-0007aO-Gn for 56160@debbugs.gnu.org; Wed, 29 Jun 2022 02:28:16 -0400 Received: from localhost (61-24-175-238.rev.home.ne.jp [61.24.175.238]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id D4C122D7; Wed, 29 Jun 2022 15:28:12 +0900 (JST) From: Ikumi Keita In-reply-to: References: Comments: In-reply-to Thibaut Benjamin message dated "Thu, 23 Jun 2022 11:00:42 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Wed, 29 Jun 2022 15:28:08 +0900 Message-ID: <47397.1656484088@localhost> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2022 06:29:05 -0000 --=-=-= Content-Type: text/plain Hi Thibaut, >>>>> Thibaut Benjamin writes: > The behavior of LaTeX-fill-* seems to break when used with a verbatim > macro which is not followed by a space. > A minimal example is a TeX file containing only the following line >> Lorem ipsum dolor sit amet, consectetur adipiscing elit, \verb|sed do|eiusmod tempor >> > Running the LaTeX-fill-buffer command yields the following, which does not > compile since a line break is inserted inside a verbatim macro. >> Lorem ipsum dolor sit amet, consectetur adipiscing elit, \verb|sed >> do|eiusmod tempor Thanks for your report. I can confirm it. (My `fill-column' is 75.) To developers: The reason for this behavior is that `LaTeX-fill-move-to-break-point' moves the point on the space inside "\verb|sed do|". The function tries to avoid line break inside \verb, but it doesn't work for this case: ,---- | (defun LaTeX-fill-move-to-break-point (linebeg) | "Move to the position where the line should be broken." | (fill-move-to-break-point linebeg) | [...] | ;; Cater for \verb|...| (and similar) contructs which should not be | ;; broken. (FIXME: Make it work with shortvrb.sty (also loaded by | ;; doc.sty) where |...| is allowed. Arbitrary delimiters may be | ;; chosen with \MakeShortVerb{}.) This could probably be | ;; handled with `fill-nobreak-predicate', but this is not available | ;; in XEmacs. | (let ((final-breakpoint (point)) | (verb-macros (regexp-opt (append (LaTeX-verbatim-macros-with-delims) | (LaTeX-verbatim-macros-with-braces))))) | (save-excursion | ;; Look for the start of a verbatim macro in the current line. | (when (re-search-backward (concat (regexp-quote TeX-esc) | "\\(?:" verb-macros "\\)\\([^a-z@*]\\)") | (line-beginning-position) t) | ;; Determine start and end of verbatim macro. | (let ((beg (point)) | (end (if (not (string-match "[ [{]" (match-string 1))) | (cdr (LaTeX-verbatim-macro-boundaries)) | (TeX-find-macro-end)))) | ;; Determine if macro end is behind fill column. | (when (and end | (> (- end (line-beginning-position)) | (current-fill-column)) | (> end final-breakpoint)) | ;; Search backwards for place to break before the macro. | (goto-char beg) | (skip-chars-backward "^ \n") | ;; Determine if point ended up at the beginning of the line. | (when (save-excursion (skip-chars-backward " \t%") (bolp)) | ;; Search forward for a place to break after the macro. | (goto-char end) | (skip-chars-forward "^ \n" (point-max))) | (setq final-breakpoint (point)))))) | (goto-char final-breakpoint)) `---- In this case, the end position of "\verb|sed do|" sits before fill column, so the conditional of `when' after the comment "Determine if macro end is behind fill column." evaluates to nil. I suppose that this code presumes that \verb|...| always has a space after it. I think it's a good chance to accomplish an idea suggested in the above comment, to make use of `fill-nobreak-predicate'; we no longer have to cater for XEmacs. How about the attached patch? This temporally adds `LaTeX-verbatim-p' to `fill-nobreak-predicate' to avoid space inside \verb|...| when `fill-move-to-break-point' is called. Note that it would fail when the user uses tex-font.el or disables font lock, because `LaTeX-verbatim-p' depends on the facilities of font-latex.el. What do you think about it? Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=tentative-patch Content-Description: Use fill-nobreak-predicate diff --git a/latex.el b/latex.el index c32c8ed5..e18b6f11 100644 --- a/latex.el +++ b/latex.el @@ -4752,8 +4752,15 @@ space does not end a sentence, so don't break a line there." fill-prefix))) (defun LaTeX-fill-move-to-break-point (linebeg) - "Move to the position where the line should be broken." - (fill-move-to-break-point linebeg) + "Move to the position where the line should be broken. +See `fill-move-to-break-point' for the meaning of LINEBEG." + ;; Cater for \verb|...| (and similar) contructs which should not be + ;; broken. (FIXME: Make it work with shortvrb.sty (also loaded by + ;; doc.sty) where |...| is allowed. Arbitrary delimiters may be + ;; chosen with \MakeShortVerb{}.) + (let ((fill-nobreak-predicate + (cons #'LaTeX-verbatim-p fill-nobreak-predicate))) + (fill-move-to-break-point linebeg)) ;; Prevent line break between 2-byte char and 1-byte char. (when (and (or (and (not (looking-at LaTeX-nospace-between-char-regexp)) (TeX-looking-at-backward @@ -4777,40 +4784,6 @@ space does not end a sentence, so don't break a line there." (1- (- (point) linebeg))) (not (TeX-escaped-p (match-beginning 0)))) (goto-char (match-beginning 0))) - ;; Cater for \verb|...| (and similar) contructs which should not be - ;; broken. (FIXME: Make it work with shortvrb.sty (also loaded by - ;; doc.sty) where |...| is allowed. Arbitrary delimiters may be - ;; chosen with \MakeShortVerb{}.) This could probably be - ;; handled with `fill-nobreak-predicate', but this is not available - ;; in XEmacs. - (let ((final-breakpoint (point)) - (verb-macros (regexp-opt (append (LaTeX-verbatim-macros-with-delims) - (LaTeX-verbatim-macros-with-braces))))) - (save-excursion - ;; Look for the start of a verbatim macro in the current line. - (when (re-search-backward (concat (regexp-quote TeX-esc) - "\\(?:" verb-macros "\\)\\([^a-z@*]\\)") - (line-beginning-position) t) - ;; Determine start and end of verbatim macro. - (let ((beg (point)) - (end (if (not (string-match "[ [{]" (match-string 1))) - (cdr (LaTeX-verbatim-macro-boundaries)) - (TeX-find-macro-end)))) - ;; Determine if macro end is behind fill column. - (when (and end - (> (- end (line-beginning-position)) - (current-fill-column)) - (> end final-breakpoint)) - ;; Search backwards for place to break before the macro. - (goto-char beg) - (skip-chars-backward "^ \n") - ;; Determine if point ended up at the beginning of the line. - (when (save-excursion (skip-chars-backward " \t%") (bolp)) - ;; Search forward for a place to break after the macro. - (goto-char end) - (skip-chars-forward "^ \n" (point-max))) - (setq final-breakpoint (point)))))) - (goto-char final-breakpoint)) (when LaTeX-fill-break-at-separators (let ((orig-breakpoint (point)) (final-breakpoint (point)) --=-=-=-- From MAILER-DAEMON Wed Jun 29 03:48:04 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o6SQe-0000xT-EW for mharc-bug-auctex@gnu.org; Wed, 29 Jun 2022 03:48:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6SQc-0000uW-C0 for bug-auctex@gnu.org; Wed, 29 Jun 2022 03:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6SQc-0000ud-3w for bug-auctex@gnu.org; Wed, 29 Jun 2022 03:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6SQc-00019z-0x for bug-auctex@gnu.org; Wed, 29 Jun 2022 03:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56160: 13.1.3; fill breaks verbatim macros not followed with spaces Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 29 Jun 2022 07:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56160 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: Thibaut Benjamin , 56160@debbugs.gnu.org Received: via spool by 56160-submit@debbugs.gnu.org id=B56160.16564888644356 (code B ref 56160); Wed, 29 Jun 2022 07:48:01 +0000 Received: (at 56160) by debbugs.gnu.org; 29 Jun 2022 07:47:44 +0000 Received: from localhost ([127.0.0.1]:57109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6SQK-00018B-Ho for submit@debbugs.gnu.org; Wed, 29 Jun 2022 03:47:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6SQG-00017I-Id for 56160@debbugs.gnu.org; Wed, 29 Jun 2022 03:47:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6SQ9-0000od-CY; Wed, 29 Jun 2022 03:47:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=lb4J09vZ4VN37PnwUZX3J3ZONAOYvQ3Kanu126cx98M=; b=f+Q0LFIvGbmxDbqLwLHT dxkT6ztaWf6DK9XIvX/MyQiMH3QVilS8cKHhPzceZmvRVcok8q8qEhuuNMklHA+afgi2tUGcFrEB6 HTLc3mhydJ6tqS23oJfIPbCyKtCQiDv0wULeEcLbiZWe0CdVsmlCOlGQifEVIfbQdTrYBE8UxFd3w HupiEbVG2PG3ecqE8HYCepHYtGchHTE2KcZwp1/TNEQIlNO2DiSRZ+F8MI7ozH22PCYAd9sGkoQ4D nyHEyS/CODgnWw0OQ0UBxPHeGDSKqFkZRU5DnfVudr9iv4op1O7C8Cr7NR45ZC43DfFH3CQH2B7SH 66fbpQNBOaYRGg==; Received: from p4fe3ee56.dip0.t-ipconnect.de ([79.227.238.86]:50675 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6SQ8-00048H-VJ; Wed, 29 Jun 2022 03:47:33 -0400 From: Arash Esbati References: <47397.1656484088@localhost> Date: Wed, 29 Jun 2022 09:46:59 +0200 In-Reply-To: <47397.1656484088@localhost> (Ikumi Keita's message of "Wed, 29 Jun 2022 15:28:08 +0900") Message-ID: <86pmirewss.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2022 07:48:02 -0000 Hi Keita, Ikumi Keita writes: > In this case, the end position of "\verb|sed do|" sits before fill > column, so the conditional of `when' after the comment "Determine if > macro end is behind fill column." evaluates to nil. I suppose that this > code presumes that \verb|...| always has a space after it. > > I think it's a good chance to accomplish an idea suggested in the above > comment, to make use of `fill-nobreak-predicate'; we no longer have to > cater for XEmacs. Thanks for looking into this. I agree, we should switch to `fill-nobreak-predicate'. But have a look at this example: --8<---------------cut here---------------start------------->8--- \documentclass{article} \begin{document} Move point to ! and do C-c RET verb RET RET write some text RET SPC Some text -! And it gives you: Some text -\verb|write more text| \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% fill-column: 25 %%% End: --8<---------------cut here---------------end--------------->8--- Emacs add a line-break inside \verb which is fixed when I hit 'M-q'. Maybe we should add this (add-to-list (make-local-variable 'fill-nobreak-predicate) #'LaTeX-verbatim-p t) to `LaTeX-common-initialization'? > How about the attached patch? This temporally adds `LaTeX-verbatim-p' to > `fill-nobreak-predicate' to avoid space inside \verb|...| when > `fill-move-to-break-point' is called. See above. > Note that it would fail when the user uses tex-font.el or disables > font lock, because `LaTeX-verbatim-p' depends on the facilities of > font-latex.el. Yes, but I think we can live with that :-) Best, Arash From MAILER-DAEMON Thu Jun 30 01:00:23 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o6mHm-0001AS-Oo for mharc-bug-auctex@gnu.org; Thu, 30 Jun 2022 01:00:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6mHc-00018x-5g for bug-auctex@gnu.org; Thu, 30 Jun 2022 01:00:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6mHb-0008BE-0P for bug-auctex@gnu.org; Thu, 30 Jun 2022 01:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6mHa-0001zQ-SM for bug-auctex@gnu.org; Thu, 30 Jun 2022 01:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56160: 13.1.3; fill breaks verbatim macros not followed with spaces Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 30 Jun 2022 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56160 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: Thibaut Benjamin , 56160@debbugs.gnu.org Received: via spool by 56160-submit@debbugs.gnu.org id=B56160.16565651717582 (code B ref 56160); Thu, 30 Jun 2022 05:00:02 +0000 Received: (at 56160) by debbugs.gnu.org; 30 Jun 2022 04:59:31 +0000 Received: from localhost ([127.0.0.1]:60590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6mH5-0001yD-BG for submit@debbugs.gnu.org; Thu, 30 Jun 2022 00:59:31 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:46540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6mH2-0001xz-IO for 56160@debbugs.gnu.org; Thu, 30 Jun 2022 00:59:29 -0400 Received: from localhost (61-24-175-238.rev.home.ne.jp [61.24.175.238]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 1851C2D7; Thu, 30 Jun 2022 13:59:26 +0900 (JST) From: Ikumi Keita In-reply-to: <86pmirewss.fsf@gnu.org> References: <47397.1656484088@localhost> <86pmirewss.fsf@gnu.org> Comments: In-reply-to Arash Esbati message dated "Wed, 29 Jun 2022 09:46:59 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Thu, 30 Jun 2022 13:59:25 +0900 Message-ID: <50719.1656565165@localhost> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2022 05:00:07 -0000 --=-=-= Content-Type: text/plain Hi Arash, >>>>> Arash Esbati writes: > Maybe we should add this > (add-to-list (make-local-variable 'fill-nobreak-predicate) > #'LaTeX-verbatim-p t) > to `LaTeX-common-initialization'? Thanks, that makes more sense. Common rule should apply for auto fill as well. Then the fix should look like the attached patch. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Don-t-break-line-inside-verb-like-macro-bug-56160.patch Content-Description: revised-patch >From fade32d56824f99363b8ab4f9cedce4518571dd4 Mon Sep 17 00:00:00 2001 From: Ikumi Keita Date: Wed, 29 Jun 2022 00:35:06 +0900 Subject: [PATCH] Don't break line inside \verb-like macro (bug#56160) * latex.el (LaTeX-common-initialization): Add `LaTeX-verbatim-p' to `fill-nobreak-predicate'. (LaTeX-fill-move-to-break-point): Drop incomplete code which is no longer needed with the above addition. Complement doc string. --- latex.el | 43 ++++++++----------------------------------- 1 file changed, 8 insertions(+), 35 deletions(-) diff --git a/latex.el b/latex.el index c32c8ed5..ac4b0c54 100644 --- a/latex.el +++ b/latex.el @@ -4752,7 +4752,8 @@ space does not end a sentence, so don't break a line there." fill-prefix))) (defun LaTeX-fill-move-to-break-point (linebeg) - "Move to the position where the line should be broken." + "Move to the position where the line should be broken. +See `fill-move-to-break-point' for the meaning of LINEBEG." (fill-move-to-break-point linebeg) ;; Prevent line break between 2-byte char and 1-byte char. (when (and (or (and (not (looking-at LaTeX-nospace-between-char-regexp)) @@ -4777,40 +4778,6 @@ space does not end a sentence, so don't break a line there." (1- (- (point) linebeg))) (not (TeX-escaped-p (match-beginning 0)))) (goto-char (match-beginning 0))) - ;; Cater for \verb|...| (and similar) contructs which should not be - ;; broken. (FIXME: Make it work with shortvrb.sty (also loaded by - ;; doc.sty) where |...| is allowed. Arbitrary delimiters may be - ;; chosen with \MakeShortVerb{}.) This could probably be - ;; handled with `fill-nobreak-predicate', but this is not available - ;; in XEmacs. - (let ((final-breakpoint (point)) - (verb-macros (regexp-opt (append (LaTeX-verbatim-macros-with-delims) - (LaTeX-verbatim-macros-with-braces))))) - (save-excursion - ;; Look for the start of a verbatim macro in the current line. - (when (re-search-backward (concat (regexp-quote TeX-esc) - "\\(?:" verb-macros "\\)\\([^a-z@*]\\)") - (line-beginning-position) t) - ;; Determine start and end of verbatim macro. - (let ((beg (point)) - (end (if (not (string-match "[ [{]" (match-string 1))) - (cdr (LaTeX-verbatim-macro-boundaries)) - (TeX-find-macro-end)))) - ;; Determine if macro end is behind fill column. - (when (and end - (> (- end (line-beginning-position)) - (current-fill-column)) - (> end final-breakpoint)) - ;; Search backwards for place to break before the macro. - (goto-char beg) - (skip-chars-backward "^ \n") - ;; Determine if point ended up at the beginning of the line. - (when (save-excursion (skip-chars-backward " \t%") (bolp)) - ;; Search forward for a place to break after the macro. - (goto-char end) - (skip-chars-forward "^ \n" (point-max))) - (setq final-breakpoint (point)))))) - (goto-char final-breakpoint)) (when LaTeX-fill-break-at-separators (let ((orig-breakpoint (point)) (final-breakpoint (point)) @@ -7385,6 +7352,12 @@ function would return non-nil and `(match-string 1)' would return (set (make-local-variable 'paragraph-ignore-fill-prefix) t) (set (make-local-variable 'fill-paragraph-function) #'LaTeX-fill-paragraph) (set (make-local-variable 'adaptive-fill-mode) nil) + ;; Cater for \verb|...| (and similar) contructs which should not be + ;; broken. (FIXME: Make it work with shortvrb.sty (also loaded by + ;; doc.sty) where |...| is allowed. Arbitrary delimiters may be + ;; chosen with \MakeShortVerb{}.) + (add-to-list (make-local-variable 'fill-nobreak-predicate) + #'LaTeX-verbatim-p t) (or LaTeX-largest-level (setq LaTeX-largest-level (LaTeX-section-level "section"))) -- 2.35.2 --=-=-=-- From MAILER-DAEMON Thu Jun 30 04:31:11 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o6pZu-0006dt-76 for mharc-bug-auctex@gnu.org; Thu, 30 Jun 2022 04:31:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6pZq-0006d0-JT for bug-auctex@gnu.org; Thu, 30 Jun 2022 04:31:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6pZm-0004pm-20 for bug-auctex@gnu.org; Thu, 30 Jun 2022 04:31:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6pZl-00045C-VO for bug-auctex@gnu.org; Thu, 30 Jun 2022 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56160: 13.1.3; fill breaks verbatim macros not followed with spaces Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 30 Jun 2022 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56160 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: Thibaut Benjamin , 56160@debbugs.gnu.org Received: via spool by 56160-submit@debbugs.gnu.org id=B56160.165657785615683 (code B ref 56160); Thu, 30 Jun 2022 08:31:01 +0000 Received: (at 56160) by debbugs.gnu.org; 30 Jun 2022 08:30:56 +0000 Received: from localhost ([127.0.0.1]:60962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6pZf-00044t-Mk for submit@debbugs.gnu.org; Thu, 30 Jun 2022 04:30:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6pZe-00044e-AX for 56160@debbugs.gnu.org; Thu, 30 Jun 2022 04:30:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6pZP-0004hF-6l; Thu, 30 Jun 2022 04:30:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Blnl7kORjGOKytVpqVsPPGIXSEA/kPhIzKgiVT/L36g=; b=HkqtAzsuCgVAB/TBshmN +a3UKuRuFJPDcUk58jKs57GjCKU/ZkwulIiYYp8jLxwX33vIXAZbJBFjSNQc3p6FMK7aF7XFjZQRv vDC9Zhlm1gws7+5iylAXxw4qHv8UqW/uDNBtpaiTPHM2kEZdM0x3YSNgIYaU3FQyQp74F2WOudc5S tGRMShQOIRPBEF8EgRqcr1XJjBKDHWycuAHN1wXzpVyAUViRTd6fo6AeQLFkdFlwuKNPKF1SI9r8c z3nAulA0qIFB+2naCRtUc6StBYkR0tdSGWWoqTELv/60tYV9/GluE8UL3EV2PtCoIz1IGzaQpVRnj rqny+OSRH8ax1A==; Received: from p4fe3ee56.dip0.t-ipconnect.de ([79.227.238.86]:49783 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6pZN-0005qz-QS; Thu, 30 Jun 2022 04:30:38 -0400 From: Arash Esbati References: <47397.1656484088@localhost> <86pmirewss.fsf@gnu.org> <50719.1656565165@localhost> Date: Thu, 30 Jun 2022 10:30:24 +0200 In-Reply-To: <50719.1656565165@localhost> (Ikumi Keita's message of "Thu, 30 Jun 2022 13:59:25 +0900") Message-ID: <865ykieeov.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2022 08:31:07 -0000 Hi Keita, Ikumi Keita writes: >>>>>> Arash Esbati writes: >> Maybe we should add this > >> (add-to-list (make-local-variable 'fill-nobreak-predicate) >> #'LaTeX-verbatim-p t) > >> to `LaTeX-common-initialization'? > > Thanks, that makes more sense. Common rule should apply for auto fill as > well. I'm not sure I understand the last sentence. Can you elaborate? > Then the fix should look like the attached patch. LGTM. Please go ahead and install it. > + ;; Cater for \verb|...| (and similar) contructs which should not be > + ;; broken. (FIXME: Make it work with shortvrb.sty (also loaded by > + ;; doc.sty) where |...| is allowed. Arbitrary delimiters may be > + ;; chosen with \MakeShortVerb{}.) > + (add-to-list (make-local-variable 'fill-nobreak-predicate) > + #'LaTeX-verbatim-p t) I think we can also adjust `LaTeX-verbatim-p' to handle the FIXME. AUCTeX doesn't parse files for \MakeShortVerb, it looks at the chars defined in `LaTeX-shortvrb-chars' for delimiters. We could do something like this in `LaTeX-verbatim-p' (addition starts with (when LaTeX-shortvrb-chars ...): --8<---------------cut here---------------start------------->8--- (defun LaTeX-verbatim-p (&optional pos) "Return non-nil if position POS is in a verbatim-like construct." (when pos (goto-char pos)) (save-match-data (or (when (fboundp 'font-latex-faces-present-p) (font-latex-faces-present-p 'font-latex-verbatim-face)) (member (LaTeX-current-verbatim-macro) (LaTeX-verbatim-macros-with-delims)) (member (TeX-current-macro) (LaTeX-verbatim-macros-with-braces)) (member (LaTeX-current-environment) (LaTeX-verbatim-environments)) (when LaTeX-shortvrb-chars (let* ((strings (mapcar #'string LaTeX-shortvrb-chars)) (regexp (concat "\\(" (mapconcat #'regexp-quote strings "\\|") "\\)"))) (and (save-excursion (re-search-backward regexp (line-beginning-position) t)) (save-excursion (re-search-forward (regexp-quote (match-string-no-properties 1)) (line-end-position) t)))))))) --8<---------------cut here---------------end--------------->8--- This is also a small test file if you like to play with it: --8<---------------cut here---------------start------------->8--- \documentclass{article} \usepackage{shortvrb} \begin{document} |foo| and "bar" \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% LaTeX-shortvrb-chars: (?|) %%% End: --8<---------------cut here---------------end--------------->8--- WDYT? Best, Arash From MAILER-DAEMON Thu Jun 30 11:42:04 2022 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1o6wIu-0000L6-0l for mharc-bug-auctex@gnu.org; Thu, 30 Jun 2022 11:42:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6wIs-0000Ku-NS for bug-auctex@gnu.org; Thu, 30 Jun 2022 11:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41491) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6wIs-0002zI-Ej for bug-auctex@gnu.org; Thu, 30 Jun 2022 11:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6wIs-0004oH-CG for bug-auctex@gnu.org; Thu, 30 Jun 2022 11:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56160: 13.1.3; fill breaks verbatim macros not followed with spaces Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 30 Jun 2022 15:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56160 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: Thibaut Benjamin , 56160@debbugs.gnu.org Received: via spool by 56160-submit@debbugs.gnu.org id=B56160.165660372018480 (code B ref 56160); Thu, 30 Jun 2022 15:42:02 +0000 Received: (at 56160) by debbugs.gnu.org; 30 Jun 2022 15:42:00 +0000 Received: from localhost ([127.0.0.1]:35388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6wIq-0004o0-La for submit@debbugs.gnu.org; Thu, 30 Jun 2022 11:42:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6wIo-0004nl-Ne for 56160@debbugs.gnu.org; Thu, 30 Jun 2022 11:41:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52086) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6wIh-0002tF-KB; Thu, 30 Jun 2022 11:41:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=EWlVHfTAijUvLzY+kYzPDQSsC6QJIXwOFZ0vDsq0jr4=; b=duQGcdLn+9L3DIr68myv reIvtIMKCl87y0A5jVLYiDqy0WC/zcT025IUU5ToLSv5tU6gTlsmVFfvTY58mzdXcLAtWZ+KvmROZ Zm4GLrrT1mG+lxnZRjIUzRKyOzK9P9Bew04P/gaYT6l5ayMKYQyh7SHusVstlTE+xstTRLVKXoCkG T64Pt33DkZ1g0NP3mSPP34rIFD1sZ2KylAK9jjS+QfTjyEY7BdK+stE+YXiWGqIdDJH1e7WpVVcO4 Y2TPTkIC3nqoq9+jo+3f+2WqftUPVgvYqHe7/zdm/Yjc43k5+BWCJWFBDJA4d246qAP922NMKr4XS ysBc3FapM/FAwA==; Received: from p4fe3ee56.dip0.t-ipconnect.de ([79.227.238.86]:55393 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6wIh-00026C-6n; Thu, 30 Jun 2022 11:41:51 -0400 From: Arash Esbati References: <47397.1656484088@localhost> <86pmirewss.fsf@gnu.org> <50719.1656565165@localhost> <865ykieeov.fsf@gnu.org> Date: Thu, 30 Jun 2022 17:41:21 +0200 In-Reply-To: <865ykieeov.fsf@gnu.org> (Arash Esbati's message of "Thu, 30 Jun 2022 10:30:24 +0200") Message-ID: <86v8signvi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) X-BeenThere: bug-auctex@gnu.org List-Id: Bug reporting list for AUCTeX List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2022 15:42:03 -0000 Arash Esbati writes: > I think we can also adjust `LaTeX-verbatim-p' to handle the FIXME. > AUCTeX doesn't parse files for \MakeShortVerb, it looks at the chars > defined in `LaTeX-shortvrb-chars' for delimiters. We could do something > like this in `LaTeX-verbatim-p' (addition starts with (when > LaTeX-shortvrb-chars ...): Sorry, there was a thinko in my last message, next try: --8<---------------cut here---------------start------------->8--- (defun LaTeX-verbatim-p (&optional pos) "Return non-nil if position POS is in a verbatim-like construct." (when pos (goto-char pos)) (save-match-data (or (when (fboundp 'font-latex-faces-present-p) (font-latex-faces-present-p 'font-latex-verbatim-face)) (member (LaTeX-current-verbatim-macro) (LaTeX-verbatim-macros-with-delims)) (member (TeX-current-macro) (LaTeX-verbatim-macros-with-braces)) (member (LaTeX-current-environment) (LaTeX-verbatim-environments)) (when LaTeX-shortvrb-chars (let* ((strings (mapcar #'string LaTeX-shortvrb-chars)) (regexp (mapconcat #'regexp-quote strings "\\|")) (p (point)) (match (save-excursion (re-search-forward regexp (line-end-position) t)))) (and match (save-excursion (cl-oddp (how-many regexp (line-beginning-position) p))) (save-excursion (cl-evenp (how-many regexp (line-beginning-position) match))))))))) --8<---------------cut here---------------end--------------->8--- Best, Arash