Function: smart-ibuffer-menu-assist

smart-ibuffer-menu-assist is an interactive and byte-compiled function defined in hui-mouse.el.

Signature

(smart-ibuffer-menu-assist)

Documentation

Use assist key or mouse assist key to manipulate buffer-menu entries.

Invoked via an assist key press when in ibuffer-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 or deletion;
 (2) anywhere else within an entry line, the selected buffer is marked for
     deletion;
 (3) on the first or 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-ibuffer-menu-assist ()
  "Use assist key or mouse assist key to manipulate `buffer-menu' entries.

Invoked via an assist key press when in ibuffer-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 or deletion;
 (2) anywhere else within an entry line, the selected buffer is marked for
     deletion;
 (3) on the first or last line in the buffer, all display, save, and delete
     marks on all entries are undone."

  (interactive)
  (cond ((or (first-line-p) (last-line-p))
	 (if (fboundp 'ibuffer-unmark-all-marks)
	     (ibuffer-unmark-all-marks)
	   (ibuffer-unmark-all 0)))
	((or (bolp) (save-excursion
		      (goto-char (1- (point)))
		      (bolp)))
	 (ibuffer-unmark-forward nil nil 1))
	(t (ibuffer-mark-for-delete nil nil 1))))