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.

Probably introduced at or before Emacs version 20.1.

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))
  (let ((dired-marker-char ?\s))
    (dired-mark arg interactive)))