Function: image-dired-forward-image

image-dired-forward-image is an interactive and byte-compiled function defined in image-dired.el.gz.

Signature

(image-dired-forward-image &optional ARG)

Documentation

Move to next image and display properties.

Optional prefix ARG says how many images to move; default is one image.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/image-dired.el.gz
(defun image-dired-forward-image (&optional arg)
  "Move to next image and display properties.
Optional prefix ARG says how many images to move; default is one
image."
  (interactive "p")
  (let (pos (steps (or arg 1)))
    (dotimes (_ steps)
      (if (and (not (eobp))
               (save-excursion
                 (forward-char)
                 (while (and (not (eobp))
                             (not (image-dired-image-at-point-p)))
                   (forward-char))
                 (setq pos (point))
                 (image-dired-image-at-point-p)))
          (goto-char pos)
        (error "At last image"))))
  (when image-dired-track-movement
    (image-dired-track-original-file))
  (image-dired-display-thumb-properties))