Commit bfc58a84 authored by Glenn Morris's avatar Glenn Morris
Browse files

* lisp/gnus/shr.el (shr-put-image): Use image-multi-frame-p if available.

parent ed8d7fca
2013-02-17 Glenn Morris <>
* shr.el (shr-put-image): Use image-multi-frame-p if available.
2013-02-16 Glenn Morris <>
* shr.el (shr-put-image): Only animate images that specify a delay.
......@@ -615,8 +615,12 @@ size, and full-buffer size."
(overlay-put overlay 'face 'default)))
(insert-image image (or alt "*")))
(put-text-property start (point) 'image-size size)
;; Only animate multi-frame things that specify a delay. FIXME?
(when (cdr (image-animated-p image))
(when (if (fboundp 'image-multi-frame-p)
;; Only animate multi-frame things that specify a
;; delay; eg animated gifs as opposed to
;; multi-page tiffs. FIXME?
(cdr (image-multi-frame-p image))
(image-animated-p image))
(image-animate image nil 60)))
(insert alt)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment