GNU bug report logs - #32404
Format fails to copy text properties from the format-string for adjacent %-sequences

Previous Next

Package: emacs;

Reported by: Andrea Cardaci <cyrus.and <at> gmail.com>

Date: Thu, 9 Aug 2018 00:32:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.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 32404 in the body.
You can then email your comments to 32404 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#32404; Package emacs. (Thu, 09 Aug 2018 00:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrea Cardaci <cyrus.and <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 09 Aug 2018 00:32:02 GMT) Full text and rfc822 format available.

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

From: Andrea Cardaci <cyrus.and <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Format fails to copy text properties from the format-string for
 adjacent %-sequences
Date: Thu, 9 Aug 2018 02:30:55 +0200
Basically what the title says, take a look at this example:

(format (concat (propertize "%s" 'face 'bold)
                "" ; any non-empty string works
                (propertize "%s" 'face 'error))
        "foo" "bar")
#("foobar" 0 6 (face bold))

This has also been described at https://emacs.stackexchange.com/q/43960/13744


Andrea




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32404; Package emacs. (Thu, 09 Aug 2018 15:11:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrea Cardaci <cyrus.and <at> gmail.com>
Cc: 32404 <at> debbugs.gnu.org
Subject: Re: bug#32404: Format fails to copy text properties from the
 format-string for adjacent %-sequences
Date: Thu, 09 Aug 2018 18:10:16 +0300
> From: Andrea Cardaci <cyrus.and <at> gmail.com>
> Date: Thu, 9 Aug 2018 02:30:55 +0200
> 
> Basically what the title says, take a look at this example:
> 
> (format (concat (propertize "%s" 'face 'bold)
>                 "" ; any non-empty string works
>                 (propertize "%s" 'face 'error))
>         "foo" "bar")
> #("foobar" 0 6 (face bold))
> 
> This has also been described at https://emacs.stackexchange.com/q/43960/13744

Thanks, I believe I fixed this on the emacs-26 branch.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32404; Package emacs. (Thu, 09 Aug 2018 20:26:01 GMT) Full text and rfc822 format available.

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

From: Andrea Cardaci <cyrus.and <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 32404 <at> debbugs.gnu.org
Subject: Re: bug#32404: Format fails to copy text properties from the
 format-string for adjacent %-sequences
Date: Thu, 9 Aug 2018 22:25:26 +0200
> Thanks, I believe I fixed this on the emacs-26 branch.

Yes, I just tried and it seems to work. Thank you so much for the
prompt response and fix.


Andrea




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 10 Aug 2018 05:40:02 GMT) Full text and rfc822 format available.

Notification sent to Andrea Cardaci <cyrus.and <at> gmail.com>:
bug acknowledged by developer. (Fri, 10 Aug 2018 05:40:04 GMT) Full text and rfc822 format available.

Message #16 received at 32404-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrea Cardaci <cyrus.and <at> gmail.com>
Cc: 32404-done <at> debbugs.gnu.org
Subject: Re: bug#32404: Format fails to copy text properties from the
 format-string for adjacent %-sequences
Date: Fri, 10 Aug 2018 08:39:10 +0300
> From: Andrea Cardaci <cyrus.and <at> gmail.com>
> Date: Thu, 9 Aug 2018 22:25:26 +0200
> Cc: 32404 <at> debbugs.gnu.org
> 
> > Thanks, I believe I fixed this on the emacs-26 branch.
> 
> Yes, I just tried and it seems to work. Thank you so much for the
> prompt response and fix.

Thanks for verifying, I'm therefore closing this bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 Sep 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 288 days ago.

Previous Next


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