emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38191: closed (incorrect text properties in result of `format' with


From: GNU bug Tracking System
Subject: bug#38191: closed (incorrect text properties in result of `format' with multibyte(?) characters)
Date: Thu, 14 Nov 2019 22:48:01 +0000

Your message dated Thu, 14 Nov 2019 14:46:49 -0800
with message-id <address@hidden>
and subject line Re: incorrect text properties in result of `format' with 
multibyte(?) characters
has caused the debbugs.gnu.org bug report #38191,
regarding incorrect text properties in result of `format' with multibyte(?) 
characters
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
38191: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38191
GNU Bug Tracking System
Contact address@hidden with problems
--- 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.

Attachment: 0001-Fix-byte-counting-error-in-format.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]