--- Begin Message ---
Subject: |
Reusing the same string as 'display on consecutive characters evades display |
Date: |
Sat, 5 Aug 2023 14:35:23 -0400 |
Evaluate:
(let ((s1 "test1")
(s2 "test2"))
(insert "\n"
(propertize " " 'display s1)
(propertize " " 'display s1)
(propertize " " 'display s2)
(propertize " " 'display s1)))
The first space display does not take effect, since the s1 string is used for
two consecutive characters. This has a practical impact for font-lock backends
that use the ‘display text-property and would like to minimize string
allocation.
Tested Emacs 27/28/29.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#65105: Reusing the same string as 'display on consecutive characters evades display |
Date: |
Sun, 06 Aug 2023 07:55:25 +0300 |
> From: JD Smith <jdtsmith@gmail.com>
> Date: Sat, 5 Aug 2023 18:49:11 -0400
> Cc: Eli Zaretskii <eliz@gnu.org>,
> 65105@debbugs.gnu.org
>
> That’s probably the right approach. Or even simpler, allocate two identical
> strings and alternate. Thanks.
And with that, I'm closing this bug.
--- End Message ---