(gnus-put-image): Mark the right text segment with
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 24 Jun 2003 13:21:25 +0000 (13:21 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 24 Jun 2003 13:21:25 +0000 (13:21 +0000)
gnus-image-category.

lisp/ChangeLog
lisp/gnus-ems.el

index fdb0a61..1426737 100644 (file)
@@ -1,5 +1,8 @@
 2003-06-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-ems.el (gnus-put-image): Mark the right text segment with
+       gnus-image-category. 
+
        * gnus-srvr.el (gnus-browse-unsubscribe-group): Strip prefix from
        native groups.
 
index 14d91b1..153a02b 100644 (file)
     (apply 'create-image file type data-p props)))
 
 (defun gnus-put-image (glyph &optional string category)
-  (insert-image glyph (or string " "))
-  (put-text-property (1- (point)) (point) 'gnus-image-category category)
-  (unless string
-    (put-text-property (1- (point)) (point)
-                      'gnus-image-text-deletable t))
-  glyph)
+  (let ((point (point)))
+    (insert-image glyph (or string " "))
+    (put-text-property point (point) 'gnus-image-category category)
+    (unless string
+      (put-text-property (1- (point)) (point)
+                        'gnus-image-text-deletable t))
+    glyph))
 
 (defun gnus-remove-image (image &optional category)
   (dolist (position (message-text-with-property 'display))