[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))))
- [nongnu] elpa/xkcd 7ceb6cfb46 04/82: Update README.md, (continued)
- [nongnu] elpa/xkcd 7ceb6cfb46 04/82: Update README.md, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 3acd31542b 06/82: Fix up search in xkcd-get-json. Add new line to README.md., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 3a1d89e234 07/82: Add screenshot, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd ef2ae149e6 10/82: Add TODO to docs., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 637f3d546e 15/82: Merge pull request #1 from oylenshpeegul/patch-1, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 51a00504a1 19/82: Release Version 1.0, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd b409d07459 24/82: Add travis support., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd b88b3df8b2 27/82: Update to reflect rename., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd a565d632fd 41/82: Support gif and jpg image extensions., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 11c428c1b7 17/82: Fix xkcd-rand., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 26954c3cfc 48/82: Use image-animated-p instead of image-multi-frame-p for Emacs < 24.4,
ELPA Syncer <=
- [nongnu] elpa/xkcd 311abf717c 20/82: Add autoload cookie for main entry point, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 746acbab54 23/82: Add .travis.yml., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 775a194d77 26/82: Screenshot should show the alt-text capabilities., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 0911bd3f5c 32/82: json 1.4 not strictly required. Fixes #5., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 86acb5dcb2 55/82: Fix typo in variable name., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 502a36d15e 38/82: Add `xkcd' as an alias for `xkcd-get-latest', ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 6338b49627 40/82: Use major mode instead of minor mode, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd c13dacaf70 56/82: Correct table., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd e5d4ab24f6 18/82: Add xkcd-kill-buffer and a keybinding to the function., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 2923195a57 53/82: Add customization option for handling links., ELPA Syncer, 2022/12/12