GNU bug report logs - #23730
24.5; format removes text properties

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Wed, 8 Jun 2016 13:43:02 UTC

Severity: normal

Found in version 24.5

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: ynyaaa <at> gmail.com
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23730 <at> debbugs.gnu.org
Subject: Re: bug#23730: 24.5; format removes text properties
Date: Thu, 09 Jun 2016 11:07:01 +0900
Eli Zaretskii <eliz <at> gnu.org> writes:

>The documentation only promises that the characters
>_other_ than the format specifier are copied with their properties,

Text properties after the format spericifier are copied
with wrong positions.

(format (concat (propertize "%2d" 'x 'X)
                (propertize "a" 'a 'A)
                (propertize "b" 'b 'B))
        1)
=>#(" 1ab" 0 1 (a A) 1 2 (b B))




This bug report was last modified 8 years and 166 days ago.

Previous Next


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