Function: image-dired--do-mark-command

image-dired--do-mark-command is a macro defined in image-dired.el.gz.

Signature

(image-dired--do-mark-command MAYBE-NEXT UPDATE-MARK &rest BODY)

Documentation

Run BODY in Dired buffer.

Helper macro for the mark, unmark and flag commands.

If MAYBE-NEXT is non-nil, show next image according to image-dired-marking-shows-next.

If UPDATE-MARK is non-nil, also update the mark in the thumbnail buffer with image-dired--thumb-update-mark-at-point.

Source Code

;; Defined in /usr/src/emacs/lisp/image/image-dired.el.gz
(defmacro image-dired--do-mark-command (maybe-next update-mark &rest body)
  "Run BODY in Dired buffer.
Helper macro for the mark, unmark and flag commands.

If MAYBE-NEXT is non-nil, show next image according to
`image-dired-marking-shows-next'.

If UPDATE-MARK is non-nil, also update the mark in the thumbnail
buffer with `image-dired--thumb-update-mark-at-point'."
  (declare (indent defun) (debug t))
  `(image-dired--with-thumbnail-buffer
     (image-dired--on-file-in-dired-buffer
       ,@body)
     ,(when update-mark
        '(image-dired--thumb-update-mark-at-point))
     ,(when maybe-next
        '(if image-dired-marking-shows-next
             (image-dired-display-next)
           (image-dired-forward-image)))))