Function: consult--lookup-prop

consult--lookup-prop is a natively compiled function defined in consult.el.

Signature

(consult--lookup-prop PROP SELECTED CANDIDATES &rest _)

Documentation

Lookup SELECTED in CANDIDATES list and return PROP value.

Source Code

;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--lookup-prop (prop selected candidates &rest _)
  "Lookup SELECTED in CANDIDATES list and return PROP value."
  (when-let* ((found (member selected candidates)))
    (get-text-property 0 prop (car found))))