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.
(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
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)