Function: smart-buffer-menu
smart-buffer-menu is an interactive and byte-compiled function defined
in hui-mouse.el.
Signature
(smart-buffer-menu)
Documentation
Use a single key or mouse key to manipulate buffer-menu entries.
Invoked via a key press when in `Buffer-menu-mode. It assumes that its caller has already checked that the key was pressed in an appropriate buffer and has moved the cursor there.
If key is pressed:
(1) on the first column of an entry, the selected buffer is marked for
display;
(2) on the second column of an entry, the selected buffer is marked to be
saved;
(3) anywhere else within an entry line, all saves and deletes are done, and
selected buffers are displayed, including the one just clicked on (if
within the OO-Browser user interface, only the selected buffer is
displayed);
(4) on or after the last line in the buffer, all saves and deletes are done.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
(defun smart-buffer-menu ()
"Use a single key or mouse key to manipulate `buffer-menu' entries.
Invoked via a key press when in `Buffer-menu-mode. It assumes that its
caller has already checked that the key was pressed in an appropriate buffer
and has moved the cursor there.
If key is pressed:
(1) on the first column of an entry, the selected buffer is marked for
display;
(2) on the second column of an entry, the selected buffer is marked to be
saved;
(3) anywhere else within an entry line, all saves and deletes are done, and
selected buffers are displayed, including the one just clicked on (if
within the OO-Browser user interface, only the selected buffer is
displayed);
(4) on or after the last line in the buffer, all saves and deletes are done."
(interactive)
(cond ((last-line-p) (Buffer-menu-execute))
((bolp) (Buffer-menu-mark))
((save-excursion
(goto-char (1- (point)))
(bolp))
(Buffer-menu-save))
((br-in-browser) (br-buffer-menu-select))
((smart-buffer-menu-no-marks))
(t (Buffer-menu-select))))