--- Begin Message ---
Subject: |
incorrect text properties in result of `format' with multibyte(?) characters |
Date: |
Wed, 13 Nov 2019 01:31:25 +0100 |
"Multibyte" is a guess, I don't really know the underlying reason.
Examples:
(format (propertize "`foo' %s bar" 'face 'bold) "xxx")
=> #("`foo' xxx bar" 0 13 (face bold))
(format (propertize "‘foo’ %s bar" 'face 'bold) "xxx")
=> #("‘foo’ xxx bar" 0 10 (face bold))
Length of the string is the same in both cases. In the first example
the face is correctly applied to the whole string, in the second
example 3 last characters incorrectly lack a face.
This is a regression, it used to work correctly before, but I don't
know when it became broken.
Tested on: GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, GTK+
Version 2.24.32) of 2019-11-13
Paul
--- End Message ---
--- Begin Message ---
Subject: |
Re: incorrect text properties in result of `format' with multibyte(?) characters |
Date: |
Thu, 14 Nov 2019 14:46:49 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 |
Thanks for reporting that. I installed the attached patch to fix it.
0001-Fix-byte-counting-error-in-format.patch
Description: Text Data
--- End Message ---