comparison lisp/gnus/gnus-html.el @ 110179:b801b7109176

(gnus-html-show-images): If there are no images to show, then say so instead of bugging out.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Sat, 04 Sep 2010 15:28:57 +0000
parents 0d6f1624cdf7
children f0d95837f863
comparison
equal deleted inserted replaced
110178:0d6f1624cdf7 110179:b801b7109176
370 (let ((overlays (overlays-in (point-min) (point-max))) 370 (let ((overlays (overlays-in (point-min) (point-max)))
371 overlay images) 371 overlay images)
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)
379 (let (blocked-images urls) 381 (let (blocked-images urls)
380 (when (buffer-live-p summary) 382 (when (buffer-live-p summary)