Function: consult-imenu--switch-buffer

consult-imenu--switch-buffer is a byte-compiled function defined in consult-imenu.el.

Signature

(consult-imenu--switch-buffer NAME POS BUF FN &rest ARGS)

Documentation

Switch buffer before invoking special menu items.

NAME is the item name. POS is the position. BUF is the buffer. FN is the original special item function. ARGS are the arguments to the special item function.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult-imenu.el
(defun consult-imenu--switch-buffer (name pos buf fn &rest args)
  "Switch buffer before invoking special menu items.
NAME is the item name.
POS is the position.
BUF is the buffer.
FN is the original special item function.
ARGS are the arguments to the special item function."
  (funcall consult--buffer-display buf)
  (apply fn name pos args))