Function: image-show-frame
image-show-frame is a byte-compiled function defined in image.el.gz.
Signature
(image-show-frame IMAGE N &optional NOCHECK)
Documentation
Show frame N of IMAGE.
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.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/image.el.gz
(defun image-show-frame (image n &optional nocheck)
"Show frame N of IMAGE.
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 (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)))