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

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

bug#65105: closed (Reusing the same string as 'display on consecutive ch


From: GNU bug Tracking System
Subject: bug#65105: closed (Reusing the same string as 'display on consecutive characters evades display)
Date: Sun, 06 Aug 2023 04:56:01 +0000

Your message dated Sun, 06 Aug 2023 07:55:25 +0300
with message-id <83pm40rcqq.fsf@gnu.org>
and subject line Re: bug#65105: Reusing the same string as 'display on 
consecutive characters evades display
has caused the debbugs.gnu.org bug report #65105,
regarding Reusing the same string as 'display on consecutive characters evades 
display
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
65105: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65105
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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 ---

reply via email to

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