diff options
| author | Katsumi Yamaoka | 2010-09-07 06:23:16 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-07 06:23:16 +0000 |
| commit | ecc74b38f3bd7dc0d22bd808e07a63373f196424 (patch) | |
| tree | aa42785ef08e226bc60f02d5114266506bf44716 | |
| parent | 16ec6ca43473d99fbcb02c17bc37a3c02ed5891d (diff) | |
| download | emacs-ecc74b38f3bd7dc0d22bd808e07a63373f196424.tar.gz emacs-ecc74b38f3bd7dc0d22bd808e07a63373f196424.zip | |
gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and internal images as deletable by `W D D'.
| -rw-r--r-- | lisp/gnus/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 11 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 3f115f1e3c9..ba3f335e381 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-09-07 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2010-09-07 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 2 | ||
| 3 | * gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and | ||
| 4 | internal images as deletable by `W D D'. | ||
| 5 | |||
| 3 | * gnus-async.el (gnus-html-prefetch-images): Autoload it when compiling. | 6 | * gnus-async.el (gnus-html-prefetch-images): Autoload it when compiling. |
| 4 | (gnus-async-article-callback): Fix typo. | 7 | (gnus-async-article-callback): Fix typo. |
| 5 | 8 | ||
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index 034d65ef1c2..bf9f0cd6b8d 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -150,7 +150,8 @@ fit these criteria." | |||
| 150 | (when image | 150 | (when image |
| 151 | (let ((string (buffer-substring start end))) | 151 | (let ((string (buffer-substring start end))) |
| 152 | (delete-region start end) | 152 | (delete-region start end) |
| 153 | (gnus-put-image image (gnus-string-or string "*"))))) | 153 | (gnus-put-image image (gnus-string-or string "*") 'cid) |
| 154 | (gnus-add-image 'cid image)))) | ||
| 154 | ;; Normal, external URL. | 155 | ;; Normal, external URL. |
| 155 | (if (gnus-html-image-url-blocked-p | 156 | (if (gnus-html-image-url-blocked-p |
| 156 | url | 157 | url |
| @@ -309,9 +310,11 @@ fit these criteria." | |||
| 309 | t) | 310 | t) |
| 310 | (insert string) | 311 | (insert string) |
| 311 | (when (fboundp 'find-image) | 312 | (when (fboundp 'find-image) |
| 312 | (gnus-put-image (find-image | 313 | (setq image (find-image '((:type xpm :file "lock-broken.xpm")))) |
| 313 | '((:type xpm :file "lock-broken.xpm"))) | 314 | (gnus-put-image image |
| 314 | (gnus-string-or string "*"))) | 315 | (gnus-string-or string "*") |
| 316 | 'internal) | ||
| 317 | (gnus-add-image 'internal image)) | ||
| 315 | nil))))) | 318 | nil))))) |
| 316 | 319 | ||
| 317 | (defun gnus-html-rescale-image (image file size) | 320 | (defun gnus-html-rescale-image (image file size) |