Function: consult--lookup-location
consult--lookup-location is a natively compiled function defined in
consult.el.
Signature
(consult--lookup-location SELECTED CANDIDATES &rest _)
Documentation
Lookup SELECTED in CANDIDATES list of consult-location category.
Return the location marker.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--lookup-location (selected candidates &rest _)
"Lookup SELECTED in CANDIDATES list of `consult-location' category.
Return the location marker."
(when-let* ((found (member selected candidates)))
(setq found (car (consult--get-location (car found))))
;; Check that marker is alive
(and (or (not (markerp found)) (marker-buffer found)) found)))