all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#38191: incorrect text properties in result of `format' with multibyte(?) characters
@ 2019-11-13  0:31 Paul Pogonyshev
  2019-11-14  5:30 ` Lars Ingebrigtsen
  2019-11-14 22:46 ` Paul Eggert
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Pogonyshev @ 2019-11-13  0:31 UTC (permalink / raw
  To: 38191

"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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-14 22:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-13  0:31 bug#38191: incorrect text properties in result of `format' with multibyte(?) characters Paul Pogonyshev
2019-11-14  5:30 ` Lars Ingebrigtsen
2019-11-14 22:46 ` Paul Eggert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.