emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/htmlize 355349d4a9 5/8: Properly propertize a constant str


From: ELPA Syncer
Subject: [nongnu] elpa/htmlize 355349d4a9 5/8: Properly propertize a constant string
Date: Mon, 12 Feb 2024 07:00:12 -0500 (EST)

branch: elpa/htmlize
commit 355349d4a91aca335c59726a4eb9c25b0b1356bf
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Hrvoje Nikšić <hniksic@gmail.com>

    Properly propertize a constant string
---
 htmlize.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/htmlize.el b/htmlize.el
index 96a354e091..b1da2fe0a0 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -594,8 +594,7 @@ list."
                    (base64-encode-string (plist-get imgprops :data))
                    alt-attr)))))
 
-(defconst htmlize-ellipsis "...")
-(put-text-property 0 (length htmlize-ellipsis) 'htmlize-ellipsis t 
htmlize-ellipsis)
+(defconst htmlize-ellipsis (propertize "..." 'htmlize-ellipsis t))
 
 (defun htmlize-match-inv-spec (inv)
   (cl-member inv buffer-invisibility-spec



reply via email to

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