GNU bug report logs - #36186
26.2.90; texinfmt: @uref{can't use @@ in its operand}

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Wed, 12 Jun 2019 23:29:01 UTC

Severity: normal

Tags: fixed

Found in version 26.2.90

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36186 in the body.
You can then email your comments to 36186 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36186; Package emacs. (Wed, 12 Jun 2019 23:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 12 Jun 2019 23:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.2.90; texinfmt: @uref{can't use @@ in its operand}
Date: Thu, 13 Jun 2019 08:17:38 +0900
[Message part 1 (text/plain, inline)]
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,

[Message part 2 (text/x-patch, 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) "'"))))
 

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36186; Package emacs. (Tue, 09 Jul 2019 02:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 36186 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 36186 <at> debbugs.gnu.org
Subject: Re: bug#36186: 26.2.90; texinfmt: @uref{can't use @@ in its operand}
Date: Tue, 09 Jul 2019 04:03:05 +0200
Katsumi Yamaoka <yamaoka <at> jpl.org> 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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 02:04:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 36186 <at> debbugs.gnu.org and Katsumi Yamaoka <yamaoka <at> jpl.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 02:04:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 06 Aug 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.