changeset 110566:4f369250ec80

gnus-ems.el (gnus-put-image):Don't put any non-blank text into the buffer when inserting images.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Sat, 25 Sep 2010 13:43:27 +0000
parents f567b340d004
children 20537dcb489d
files lisp/gnus/ChangeLog lisp/gnus/gnus-ems.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Sat Sep 25 13:28:07 2010 +0000
+++ b/lisp/gnus/ChangeLog	Sat Sep 25 13:43:27 2010 +0000
@@ -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
--- a/lisp/gnus/gnus-ems.el	Sat Sep 25 13:28:07 2010 +0000
+++ b/lisp/gnus/gnus-ems.el	Sat Sep 25 13:43:27 2010 +0000
@@ -276,7 +276,7 @@
 
 (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)