]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and internal images...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 7 Sep 2010 06:23:16 +0000 (06:23 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 7 Sep 2010 06:23:16 +0000 (06:23 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-html.el

index 3f115f1e3c9c21fa795df9197a89ca98277b970f..ba3f335e38156f8e724194777925ac9b71a53118 100644 (file)
@@ -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.
 
index 034d65ef1c27e22bd85f9d826f46dc8b3e3dacc4..bf9f0cd6b8d323546d2274bce40548f00853fb58 100644 (file)
@@ -150,7 +150,8 @@ fit these criteria."
                (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 @@ fit these criteria."
              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)