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.
This commit is contained in:
Lars Ingebrigtsen 2020-10-18 09:42:25 +02:00
parent 9907912624
commit d96734729d

View file

@ -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