]> git.eshelyaron.com Git - emacs.git/commitdiff
(gnus-html-show-images): If there are no images to show, then say so instead of buggi...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 4 Sep 2010 15:28:57 +0000 (15:28 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 4 Sep 2010 15:28:57 +0000 (15:28 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-html.el

index d5cdb241bec088cfa4edd7fbaa87714a8c22ee57..c4a451248f6bde94e8130ace4eb8e41505a80ce3 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 f7eb05bf8b7f95e4d6b0b0940dc90502911ff2e3..a298fa0b63ac46a8f1c83617b779b885d1ff964d 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)