changeset 110262:97a40b7935bd

gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and internal images as deletable by `W D D'.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Tue, 07 Sep 2010 06:23:16 +0000
parents 8a1ec5899552
children 280c5216180d 63c12314fbd0
files lisp/gnus/ChangeLog lisp/gnus/gnus-html.el
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Tue Sep 07 01:20:19 2010 +0000
+++ b/lisp/gnus/ChangeLog	Tue Sep 07 06:23:16 2010 +0000
@@ -1,5 +1,8 @@
 2010-09-07  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+	* gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and
+	internal images as deletable by `W D D'.
+
 	* gnus-async.el (gnus-html-prefetch-images): Autoload it when compiling.
 	(gnus-async-article-callback): Fix typo.
 
--- a/lisp/gnus/gnus-html.el	Tue Sep 07 01:20:19 2010 +0000
+++ b/lisp/gnus/gnus-html.el	Tue Sep 07 06:23:16 2010 +0000
@@ -150,7 +150,8 @@
 		(when image
 		  (let ((string (buffer-substring start end)))
 		    (delete-region start end)
-		    (gnus-put-image image (gnus-string-or string "*")))))
+		    (gnus-put-image image (gnus-string-or string "*") 'cid)
+		    (gnus-add-image 'cid image))))
 	    ;; Normal, external URL.
 	    (if (gnus-html-image-url-blocked-p
 		 url
@@ -309,9 +310,11 @@
 	      t)
 	  (insert string)
 	  (when (fboundp 'find-image)
-	    (gnus-put-image (find-image
-			     '((:type xpm :file "lock-broken.xpm")))
-			    (gnus-string-or string "*")))
+	    (setq image (find-image '((:type xpm :file "lock-broken.xpm"))))
+	    (gnus-put-image image
+			    (gnus-string-or string "*")
+			    'internal)
+	    (gnus-add-image 'internal image))
 	  nil)))))
 
 (defun gnus-html-rescale-image (image file size)