[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 335a5a9e0f: Make the `f' command work in image-mode again
From: |
Lars Ingebrigtsen |
Subject: |
emacs-28 335a5a9e0f: Make the `f' command work in image-mode again |
Date: |
Mon, 24 Jan 2022 05:23:04 -0500 (EST) |
branch: emacs-28
commit 335a5a9e0f956d466305c73b6257a6caaefa3533
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Make the `f' command work in image-mode again
* lisp/image.el (image-show-frame): Protect against not having
computed the animation data yed (bug#53489).
---
lisp/image.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/image.el b/lisp/image.el
index af30353b95..ea1a22698c 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -872,8 +872,9 @@ Frames are indexed from 0. Optional argument NOCHECK
non-nil means
do not check N is within the range of frames present in the image."
(unless nocheck
(if (< n 0) (setq n 0)
- (setq n (min n (1- (car (plist-get (cdr image)
- :animate-multi-frame-data)))))))
+ (setq n (min n (1- (car (or (plist-get (cdr image)
+ :animate-multi-frame-data)
+ (image-multi-frame-p image))))))))
(plist-put (cdr image) :index n)
(force-window-update (plist-get (cdr image) :animate-buffer)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 335a5a9e0f: Make the `f' command work in image-mode again,
Lars Ingebrigtsen <=