Function: smart-buffer-menu-assist
smart-buffer-menu-assist is an interactive and byte-compiled function
defined in hui-mouse.el.
Signature
(smart-buffer-menu-assist)
Documentation
Use assist key or mouse assist key to manipulate buffer-menu entries.
Invoked via an assist key press when in Buffer-menu-mode. It assumes that its
caller has already checked that the assist key was pressed in an appropriate
buffer and has moved the cursor there.
If assist key is pressed:
(1) on the first or second column of an entry, the selected buffer is unmarked
for display and for saving or deletion;
(2) anywhere else within an entry line, the selected buffer is marked for
deletion;
(3) on or after the last line in the buffer, all display, save, and delete
marks on all entries are undone.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
(defun smart-buffer-menu-assist ()
"Use assist key or mouse assist key to manipulate `buffer-menu' entries.
Invoked via an assist key press when in `Buffer-menu-mode'. It assumes that its
caller has already checked that the assist key was pressed in an appropriate
buffer and has moved the cursor there.
If assist key is pressed:
(1) on the first or second column of an entry, the selected buffer is unmarked
for display and for saving or deletion;
(2) anywhere else within an entry line, the selected buffer is marked for
deletion;
(3) on or after the last line in the buffer, all display, save, and delete
marks on all entries are undone."
(interactive)
(cond ((last-line-p) (progn (list-buffers) (forward-line 3)))
((bolp) (Buffer-menu-unmark))
((save-excursion
(goto-char (1- (point)))
(bolp))
(Buffer-menu-unmark))
(t (Buffer-menu-delete))))