Function: consult--jump-ensure-buffer
consult--jump-ensure-buffer is a natively compiled function defined in
consult.el.
Signature
(consult--jump-ensure-buffer POS)
Documentation
Ensure that buffer of marker POS is displayed, return t if successful.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--jump-ensure-buffer (pos)
"Ensure that buffer of marker POS is displayed, return t if successful."
(or (not (markerp pos))
;; Switch to buffer if it is not visible
(when-let* ((buf (marker-buffer pos)))
(or (and (eq (current-buffer) buf) (eq (window-buffer) buf))
(if-let* ((win (get-buffer-window buf)))
(select-window win 'norecord)
(consult--buffer-action buf 'norecord))
t))))