aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-24 19:38:16 +0200
committerLars Ingebrigtsen2019-09-24 19:38:21 +0200
commit7823dcf2fb0ac2bd1d0349be683a618d332758ff (patch)
tree39c6ee44e76ce49064912a983f6868607bd9c7c5 /lisp/net
parentef0fc0bed1c97a1c803fa83bee438ca9cfd238b0 (diff)
downloademacs-7823dcf2fb0ac2bd1d0349be683a618d332758ff.tar.gz
emacs-7823dcf2fb0ac2bd1d0349be683a618d332758ff.zip
Slight shr-put-image clean up
* lisp/net/shr.el (shr-put-image): Use image-multi-frame-p directly, and remove outdated comments (image-multi-frame-p returns the delay).
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/shr.el8
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 63988d01c88..0cd15dcfe07 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1088,13 +1088,7 @@ element is the data blob and the second element is the content-type."
1088 (insert-image image (or alt "*"))) 1088 (insert-image image (or alt "*")))
1089 (put-text-property start (point) 'image-size size) 1089 (put-text-property start (point) 'image-size size)
1090 (when (and shr-image-animate 1090 (when (and shr-image-animate
1091 (cond ((fboundp 'image-multi-frame-p) 1091 (cdr (image-multi-frame-p image)))
1092 ;; Only animate multi-frame things that specify a
1093 ;; delay; eg animated gifs as opposed to
1094 ;; multi-page tiffs. FIXME?
1095 (cdr (image-multi-frame-p image)))
1096 ((fboundp 'image-animated-p)
1097 (image-animated-p image))))
1098 (image-animate image nil 60))) 1092 (image-animate image nil 60)))
1099 image) 1093 image)
1100 (insert (or alt "")))) 1094 (insert (or alt ""))))