Function: image-goto-frame
image-goto-frame is an interactive and byte-compiled function defined
in image-mode.el.gz.
Signature
(image-goto-frame N &optional RELATIVE)
Documentation
Show frame N of a multi-frame image.
Optional argument OFFSET non-nil means interpret N as relative to the current frame. Frames are indexed from 1.
Probably introduced at or before Emacs version 24.4.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image-mode.el.gz
(defun image-goto-frame (n &optional relative)
"Show frame N of a multi-frame image.
Optional argument OFFSET non-nil means interpret N as relative to the
current frame. Frames are indexed from 1."
(interactive
(list (or current-prefix-arg
(read-number "Show frame number: "))))
(let ((image (image-get-display-property)))
(cond
((null image)
(error "No image is present"))
((null image-multi-frame)
(message "No image animation."))
(t
(image-show-frame image
(if relative
(+ n (image-current-frame image))
(1- n)))))))