(gnus-html-show-images): If there are no images to show, then say so instead of buggi...
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 4 Sep 2010 12:43:30 +0000 (14:43 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 4 Sep 2010 12:43:30 +0000 (14:43 +0200)
lisp/ChangeLog
lisp/gnus-html.el

index f8e4902..187f5fb 100644 (file)
@@ -1,5 +1,8 @@
 2010-09-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-html.el (gnus-html-show-images): If there are no images to show,
+       then say so instead of bugging out.
+
        * gnus-agent.el (gnus-agent-load-alist): Check whether the agentview
        files exist before trying to read them.
 
index f7eb05b..a298fa0 100644 (file)
@@ -372,7 +372,9 @@ This only works if the article in question is HTML."
       (while (setq overlay (pop overlays))
        (when (overlay-get overlay 'gnus-image)
          (push (overlay-get overlay 'gnus-image) images)))
-      (gnus-html-schedule-image-fetching (current-buffer) images))))
+      (if (not images)
+         (message "No images to show")
+       (gnus-html-schedule-image-fetching (current-buffer) images)))))
 
 ;;;###autoload
 (defun gnus-html-prefetch-images (summary)