Function: consult--read-affixate
consult--read-affixate is a natively compiled function defined in
consult.el.
Signature
(consult--read-affixate FUN CANDS)
Documentation
Affixate CANDS with annotation function FUN.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--read-affixate (fun cands)
"Affixate CANDS with annotation function FUN."
(mapcar (lambda (cand)
(let ((ann (funcall fun cand)))
(if (consp ann)
ann
(setq ann (or ann ""))
(list cand ""
;; The default completion UI adds the
;; `completions-annotations' face if no other faces are
;; present.
(if (text-property-not-all 0 (length ann) 'face nil ann)
ann
(propertize ann 'face 'completions-annotations))))))
cands))