Function: Buffer-menu-unmark-all-buffers

Buffer-menu-unmark-all-buffers is an interactive and byte-compiled function defined in buff-menu.el.gz.

Signature

(Buffer-menu-unmark-all-buffers MARK)

Documentation

Cancel a requested operation on all buffers.

MARK is the character to flag the operation on the buffers.
When called interactively prompt for MARK; RET remove all marks.

View in manual

Probably introduced at or before Emacs version 26.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/buff-menu.el.gz
(defun Buffer-menu-unmark-all-buffers (mark)
  "Cancel a requested operation on all buffers.
MARK is the character to flag the operation on the buffers.
When called interactively prompt for MARK;  RET remove all marks."
  (interactive "cRemove marks (RET means all):" Buffer-menu-mode)
  (save-excursion
    (goto-char (point-min))
    (while (not (eobp))
      (when-let* ((entry (tabulated-list-get-entry)))
        (let ((xmarks (list (aref entry 0) (aref entry 2))))
          (when (or (char-equal mark ?\r)
                    (member (char-to-string mark) xmarks))
            (Buffer-menu--unmark))))
      (forward-line))))