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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#32404: closed (Format fails to copy text properties from the
 format-string for adjacent %-sequences)
Date: Fri, 10 Aug 2018 05:40:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 10 Aug 2018 08:39:10 +0300
with message-id <83k1oyok5d.fsf <at> gnu.org>
and subject line Re: bug#32404: Format fails to copy text properties from the format-string for adjacent %-sequences
has caused the debbugs.gnu.org bug report #32404,
regarding Format fails to copy text properties from the format-string for adjacent %-sequences
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
32404: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32404
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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


[Message part 3 (message/rfc822, inline)]
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.


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.