changeset 110273:63c12314fbd0

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Tue, 07 Sep 2010 07:46:00 +0000
parents 1e4996f96b0b (current diff) 97a40b7935bd (diff)
children ae3d040bbdc9
files
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Tue Sep 07 01:25:00 2010 +0000
+++ b/lisp/gnus/ChangeLog	Tue Sep 07 07:46:00 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:25:00 2010 +0000
+++ b/lisp/gnus/gnus-html.el	Tue Sep 07 07:46:00 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)