* lisp/gnus/shr.el (shr-put-image): Use image-multi-frame-p if available.
authorGlenn Morris <rgm@gnu.org>
Sun, 17 Feb 2013 00:38:03 +0000 (16:38 -0800)
committerGlenn Morris <rgm@gnu.org>
Sun, 17 Feb 2013 00:38:03 +0000 (16:38 -0800)
lisp/gnus/ChangeLog
lisp/gnus/shr.el

index 5030da8..dd6d209 100644 (file)
@@ -1,3 +1,7 @@
+2013-02-17  Glenn Morris  <rgm@gnu.org>
+
+       * shr.el (shr-put-image): Use image-multi-frame-p if available.
+
 2013-02-16  Glenn Morris  <rgm@gnu.org>
 
        * shr.el (shr-put-image): Only animate images that specify a delay.
index 1294ca7..886f4da 100644 (file)
@@ -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)))
        image)
     (insert alt)))