]> git.eshelyaron.com Git - emacs.git/commitdiff
Slight shr-put-image clean up
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 Sep 2019 17:38:16 +0000 (19:38 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 Sep 2019 17:38:21 +0000 (19:38 +0200)
* lisp/net/shr.el (shr-put-image): Use image-multi-frame-p
directly, and remove outdated comments (image-multi-frame-p
returns the delay).

lisp/net/shr.el

index 63988d01c882541d6a2d44a2935e8ad4e0a53a22..0cd15dcfe07bd9ffbcc9e5db80a3aa6bc3bc0468 100644 (file)
@@ -1088,13 +1088,7 @@ element is the data blob and the second element is the content-type."
            (insert-image image (or alt "*")))
          (put-text-property start (point) 'image-size size)
          (when (and shr-image-animate
-                     (cond ((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)))
-                           ((fboundp 'image-animated-p)
-                            (image-animated-p image))))
+                     (cdr (image-multi-frame-p image)))
             (image-animate image nil 60)))
        image)
     (insert (or alt ""))))