From 9a4b54dbe6b0b363a7cbd1d09d864ccaf208d9f3 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Thu, 2 Sep 2010 01:14:38 +0000 Subject: [PATCH] gnus-html.el (gnus-html-wash-tags): Check the value ofgnus-blocked-images in the summary buffer. --- lisp/gnus/ChangeLog | 5 +++++ lisp/gnus/gnus-html.el | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 322408852c2..43a8195623c 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2010-09-01 Lars Magne Ingebrigtsen + + * gnus-html.el (gnus-html-wash-tags): Check the value of + gnus-blocked-images in the summary buffer. + 2010-09-01 Teodor Zlatanov * gnus-html.el (gnus-html-image-url-blocked-p): Doc fix. diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index d2d8989223a..00454665cad 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el @@ -136,7 +136,12 @@ fit these criteria." (delete-region start end) (gnus-put-image image (gnus-string-or string "*"))))) ;; Normal, external URL. - (unless (gnus-html-image-url-blocked-p url gnus-blocked-images) + (unless (gnus-html-image-url-blocked-p + url + (if (buffer-live-p gnus-summary-buffer) + (with-current-buffer gnus-summary-buffer + gnus-blocked-images) + gnus-blocked-images)) (let ((file (gnus-html-image-id url))) (if (file-exists-p file) ;; It's already cached, so just insert it. -- 2.39.2