aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2010-09-04 15:28:57 +0000
committerKatsumi Yamaoka2010-09-04 15:28:57 +0000
commitf790bb74d833f87554db22aff11e566b41746f94 (patch)
tree7d9e1a2dc4d2e555a27edcab478581433c499429
parentc25d60ab3b8dc9f5741fc8868fe03e55828ae0f1 (diff)
downloademacs-f790bb74d833f87554db22aff11e566b41746f94.tar.gz
emacs-f790bb74d833f87554db22aff11e566b41746f94.zip
(gnus-html-show-images): If there are no images to show, then say so instead of bugging out.
-rw-r--r--lisp/gnus/ChangeLog3
-rw-r--r--lisp/gnus/gnus-html.el4
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index d5cdb241bec..c4a451248f6 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,8 @@
12010-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org> 12010-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * gnus-html.el (gnus-html-show-images): If there are no images to show,
4 then say so instead of bugging out.
5
3 * gnus-agent.el (gnus-agent-load-alist): Check whether the agentview 6 * gnus-agent.el (gnus-agent-load-alist): Check whether the agentview
4 files exist before trying to read them. 7 files exist before trying to read them.
5 8
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index f7eb05bf8b7..a298fa0b63a 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -372,7 +372,9 @@ This only works if the article in question is HTML."
372 (while (setq overlay (pop overlays)) 372 (while (setq overlay (pop overlays))
373 (when (overlay-get overlay 'gnus-image) 373 (when (overlay-get overlay 'gnus-image)
374 (push (overlay-get overlay 'gnus-image) images))) 374 (push (overlay-get overlay 'gnus-image) images)))
375 (gnus-html-schedule-image-fetching (current-buffer) images)))) 375 (if (not images)
376 (message "No images to show")
377 (gnus-html-schedule-image-fetching (current-buffer) images)))))
376 378
377;;;###autoload 379;;;###autoload
378(defun gnus-html-prefetch-images (summary) 380(defun gnus-html-prefetch-images (summary)