[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23859: 25.1.50; Inconsistent behavior of (format "%_width_s" string-
From: |
Eli Zaretskii |
Subject: |
bug#23859: 25.1.50; Inconsistent behavior of (format "%_width_s" string-has-text-property) |
Date: |
Tue, 28 Jun 2016 19:37:51 +0300 |
> From: Chunyang Xu <xuchunyang.me@gmail.com>
> Date: Wed, 29 Jun 2016 00:28:46 +0800
> Cc: 23859@debbugs.gnu.org
>
> > (format "%4s" (propertize "hi" 'face 'bold))
> > ⇒ #(" hi" 0 4 (face bold))
> >
> > If this still breaks your code, I'm sorry, but you will have to adapt.
> > The old behavior was buggy and inconsistent (see bug#23730), and the
> > only way to make the behavior consistent and easily predictable was to
> > copy the properties onto the entire text produced from a given
> > argument, including any padding. Which is what should be expected to
> > happen on master now.
>
>
> Thanks. It works as you described. My code now works as usual without
> any changes, since white spaces (with the text properties I want)
> still remains invisible.
Great, closing.
Thanks for reporting the bug.