emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/xkcd 26954c3cfc 48/82: Use image-animated-p instead of ima


From: ELPA Syncer
Subject: [nongnu] elpa/xkcd 26954c3cfc 48/82: Use image-animated-p instead of image-multi-frame-p for Emacs < 24.4
Date: Mon, 12 Dec 2022 21:59:53 -0500 (EST)

branch: elpa/xkcd
commit 26954c3cfc096b3e565c26e293d4035dfe517992
Author: Raphaël Cauderlier <cauderlier@crans.org>
Commit: Raphaël Cauderlier <cauderlier@crans.org>

    Use image-animated-p instead of image-multi-frame-p for Emacs < 24.4
---
 xkcd.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/xkcd.el b/xkcd.el
index 21bebb0eaf..b7c8eff16c 100644
--- a/xkcd.el
+++ b/xkcd.el
@@ -129,7 +129,11 @@ and animate if FILENAME is a gif"
                             (xkcd-get-image-type file)))
        (start (point)))
     (insert-image image)
-    (if (image-multi-frame-p image)
+    (if (or
+         (and (fboundp 'image-multi-frame-p)
+              (image-multi-frame-p image))
+         (and (fboundp 'image-animated-p)
+              (image-animated-p image)))
        (image-animate image 0 t))
     (add-text-properties start (point) '(help-echo xkcd-alt))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]