Don't put any non-blank text into the buffer when inserting images.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 25 Sep 2010 13:38:25 +0000 (15:38 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 25 Sep 2010 13:38:25 +0000 (15:38 +0200)
Inserting text into the headers, for instance, can make them invalid.

lisp/ChangeLog
lisp/gnus-ems.el

index c387844..dc5a1b0 100644 (file)
@@ -1,3 +1,9 @@
+2010-09-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-ems.el (gnus-put-image): Don't put any non-blank text into the
+       buffer when inserting images.  Inserting text into the headers, for
+       instance, can make them invalid.
+
 2010-09-25  Julien Danjou  <julien@danjou.info>
 
        * rfc1843.el: Remove useless rfc1843-old-gnus-decode-header-function
index 7bc59bf..9c395db 100644 (file)
 
 (defun gnus-put-image (glyph &optional string category)
   (let ((point (point)))
-    (insert-image glyph (or string "*"))
+    (insert-image glyph (or string " "))
     (put-text-property point (point) 'gnus-image-category category)
     (unless string
       (put-text-property (1- (point)) (point)