branch: elpa/xkcd commit 26954c3cfc096b3e565c26e293d4035dfe517992 Author: Raphaël Cauderlier <cauderl...@crans.org> Commit: Raphaël Cauderlier <cauderl...@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))))