Function: Buffer-menu-unmark

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

Signature

(Buffer-menu-unmark &optional BACKUP)

Documentation

Cancel all requested operations on buffer on this line and move down.

Optional prefix arg means move up. When outline-minor-mode(var)/outline-minor-mode(fun) is enabled and point is on the outline heading line, this command will unmark all entries in the outline.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/buff-menu.el.gz
(defun Buffer-menu-unmark (&optional backup)
  "Cancel all requested operations on buffer on this line and move down.
Optional prefix arg means move up.
When `outline-minor-mode' is enabled and point is on the outline
heading line, this command will unmark all entries in the outline."
  (interactive "P" Buffer-menu-mode)
  (cond ((tabulated-list-get-id)
         (Buffer-menu--unmark)
         (forward-line (if backup -1 1)))
        ((and (bound-and-true-p outline-minor-mode) (outline-on-heading-p))
         (let ((old-pos (point))
               (limit (save-excursion (outline-end-of-subtree) (point)))
               ;; Skip outline subheadings on recursive calls
               (outline-minor-mode nil))
           (forward-line)
           (while (< (point) limit)
             (Buffer-menu-unmark))
           (when backup
             (goto-char old-pos)
             (outline-previous-heading))))
        (t (forward-line (if backup -1 1)))))