Function: dired-unmark

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

Signature

(dired-unmark ARG &optional INTERACTIVE)

Documentation

Unmark the file at point in the Dired buffer.

If the region is active, unmark all files in the region. Otherwise, with a prefix arg, unmark files on the next ARG lines.

If looking at a subdir, unmark all its files except . and ... If the region is active in Transient Mark mode, unmark all files in the active region.

View in manual

Probably introduced at or before Emacs version 24.3.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired-unmark (arg &optional interactive)
  "Unmark the file at point in the Dired buffer.
If the region is active, unmark all files in the region.
Otherwise, with a prefix arg, unmark files on the next ARG lines.

If looking at a subdir, unmark all its files except `.' and `..'.
If the region is active in Transient Mark mode, unmark all files
in the active region."
  (interactive (list current-prefix-arg t) dired-mode)
  (let ((dired-marker-char ?\s))
    (dired-mark arg interactive)))