From unknown Thu Aug 21 12:10:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36186 <36186@debbugs.gnu.org> To: bug#36186 <36186@debbugs.gnu.org> Subject: Status: 26.2.90; texinfmt: @uref{can't use @@ in its operand} Reply-To: bug#36186 <36186@debbugs.gnu.org> Date: Thu, 21 Aug 2025 19:10:58 +0000 retitle 36186 26.2.90; texinfmt: @uref{can't use @@ in its operand} reassign 36186 emacs submitter 36186 Katsumi Yamaoka severity 36186 normal tag 36186 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 12 19:28:12 2019 Received: (at submit) by debbugs.gnu.org; 12 Jun 2019 23:28:12 +0000 Received: from localhost ([127.0.0.1]:34267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbCf6-0005Yk-35 for submit@debbugs.gnu.org; Wed, 12 Jun 2019 19:28:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:60490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbCf4-0005Yb-28 for submit@debbugs.gnu.org; Wed, 12 Jun 2019 19:28:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35473) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbCf2-00031W-Sl for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 19:28:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, T_TVD_MIME_NO_HEADERS autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbCVp-00030w-IV for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 19:18:40 -0400 Received: from brown.birch.relay.mailchannels.net ([23.83.209.23]:61351) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbCVn-0002AJ-CT for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 19:18:35 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7C95E1A2212 for ; Wed, 12 Jun 2019 23:17:52 +0000 (UTC) Received: from hampton.hostforweb.net (100-96-14-97.trex.outbound.svc.cluster.local [100.96.14.97]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 5E2121A1F79 for ; Wed, 12 Jun 2019 23:17:51 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Wed, 12 Jun 2019 23:17:52 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Madly-Robust: 32bf82592e9841e8_1560381472107_4049866801 X-MC-Loop-Signature: 1560381472107:467115018 X-MC-Ingress-Time: 1560381472107 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hbCUx-003r9Y-2h for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2019 18:17:44 -0500 Date: Thu, 13 Jun 2019 08:17:38 +0900 Message-ID: From: Katsumi Yamaoka To: bug-gnu-emacs@gnu.org Subject: 26.2.90; texinfmt: @uref{can't use @@ in its operand} Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (x86_64-unknown-cygwin) Cancel-Lock: sha1:GO6DpdnoxEDUKnooYj9QtdhzNt8= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.23 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Hi, Here are two recipes: (with-temp-buffer (insert "@setfilename test.info\n" "@uref{https://www.example.com/, @@home page}\n") (texinfo-format-buffer)) (with-temp-buffer (insert "@setfilename test.info\n" "@uref{mailto:foo@@example.com}") (texinfo-format-buffer)) The cause of both the errors is that the `texinfo-format-uref' function moves point to the beginning of its formatted text, texinfmt tries to format it again, and "@" (formatted "@@") is treated as a command. I'm not quite sure if there are things that should be formatted again, but if it is not, it is unnecessary to go to the beginning (a patch below). Otherwise, the function must not format "@@" to "@". Thanks. Regards, --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- texinfmt.el~ 2019-04-05 04:42:06.053686300 +0000 +++ texinfmt.el 2019-06-12 23:13:53.063255400 +0000 @@ -1294,4 +1294,3 @@ (insert (nth 1 args) " (" (nth 0 args) ")") - (insert "`" (nth 0 args) "'")) - (goto-char texinfo-command-start))) + (insert "`" (nth 0 args) "'")))) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 08 22:03:11 2019 Received: (at 36186) by debbugs.gnu.org; 9 Jul 2019 02:03:11 +0000 Received: from localhost ([127.0.0.1]:60087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkfTL-0007Rq-8i for submit@debbugs.gnu.org; Mon, 08 Jul 2019 22:03:11 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkfTJ-0007Ri-6p for 36186@debbugs.gnu.org; Mon, 08 Jul 2019 22:03:09 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkfTF-0007tr-G2; Tue, 09 Jul 2019 04:03:08 +0200 From: Lars Ingebrigtsen To: Katsumi Yamaoka Subject: Re: bug#36186: 26.2.90; texinfmt: @uref{can't use @@ in its operand} References: Date: Tue, 09 Jul 2019 04:03:05 +0200 In-Reply-To: (Katsumi Yamaoka's message of "Thu, 13 Jun 2019 08:17:38 +0900") Message-ID: <87imscezhi.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Katsumi Yamaoka writes: > (with-temp-buffer > (insert "@setfilename test.info\n" > "@uref{mailto:foo@@example.com}") > (texinfo-format-buffer)) > > The cause of both the errors is that the `texinfo-format-uref' > function mo [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36186 Cc: 36186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Katsumi Yamaoka writes: > (with-temp-buffer > (insert "@setfilename test.info\n" > "@uref{mailto:foo@@example.com}") > (texinfo-format-buffer)) > > The cause of both the errors is that the `texinfo-format-uref' > function moves point to the beginning of its formatted text, > texinfmt tries to format it again, and "@" (formatted "@@") is > treated as a command. Makes sense. I've now applied your patch to the trunk and checked that the .info files are generated without any warnings. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 08 22:03:19 2019 Received: (at control) by debbugs.gnu.org; 9 Jul 2019 02:03:19 +0000 Received: from localhost ([127.0.0.1]:60090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkfTT-0007SG-Gt for submit@debbugs.gnu.org; Mon, 08 Jul 2019 22:03:19 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkfTQ-0007S6-Qp for control@debbugs.gnu.org; Mon, 08 Jul 2019 22:03:18 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkfTO-0007ty-8o for control@debbugs.gnu.org; Tue, 09 Jul 2019 04:03:16 +0200 Date: Tue, 09 Jul 2019 04:03:13 +0200 Message-Id: <87h87wezha.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36186 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 36186 fixed close 36186 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36186 fixed close 36186 27.1 quit From unknown Thu Aug 21 12:10:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Aug 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator