[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d967347 2/3: Fix up smiley emoji application to make it reversibl
From: |
Lars Ingebrigtsen |
Subject: |
master d967347 2/3: Fix up smiley emoji application to make it reversible |
Date: |
Sun, 18 Oct 2020 03:45:18 -0400 (EDT) |
branch: master
commit d96734729d0ed1fb854231c1ede3895c04c5b8ea
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix up smiley emoji application to make it reversible
* lisp/gnus/smiley.el (smiley-region): Use text properties for the
emojis instead of rewriting the message.
---
lisp/gnus/smiley.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/gnus/smiley.el b/lisp/gnus/smiley.el
index 7d6efac..3edae04 100644
--- a/lisp/gnus/smiley.el
+++ b/lisp/gnus/smiley.el
@@ -227,7 +227,11 @@ A list of images is returned."
(progn
(gnus-add-image 'smiley image)
(gnus-put-image image string 'smiley))
- (insert image)))))
+ ;; This is a string, but mark the property for
+ ;; deletion if the washing method is switched off.
+ (insert (propertize string
+ 'display image
+ 'gnus-image-category 'smiley))))))
images))))
;;;###autoload