Function: Buffer-menu-save
Buffer-menu-save is an interactive and byte-compiled function defined
in buff-menu.el.gz.
Signature
(Buffer-menu-save)
Documentation
Mark the buffer on this Buffer Menu line for saving.
A subsequent x (Buffer-menu-execute) command will save it.
When outline-minor-mode(var)/outline-minor-mode(fun) is enabled and point is on the outline
heading line, this command will mark all entries in the outline.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/buff-menu.el.gz
(defun Buffer-menu-save ()
"Mark the buffer on this Buffer Menu line for saving.
A subsequent \\<Buffer-menu-mode-map>\\[Buffer-menu-execute] \
command will save it.
When `outline-minor-mode' is enabled and point is on the outline
heading line, this command will mark all entries in the outline."
(interactive nil Buffer-menu-mode)
(cond ((tabulated-list-get-id)
(when (Buffer-menu-buffer)
(tabulated-list-set-col 2 "S" t))
(forward-line))
((and (bound-and-true-p outline-minor-mode) (outline-on-heading-p))
(let ((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-save))))
(t (forward-line))))