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


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.




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

Previous Next


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