Function: completion-lazy-hilit

completion-lazy-hilit is a byte-compiled function defined in minibuffer.el.gz.

Signature

(completion-lazy-hilit STR)

Documentation

Return a copy of completion candidate STR that is face-propertized.

Apply completion-lazy-hilit-fn if it is set and the frontend supports lazy highlighting (see completion-lazy-hilit-p), otherwise return STR as is.

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun completion-lazy-hilit (str)
  "Return a copy of completion candidate STR that is `face'-propertized.
Apply `completion-lazy-hilit-fn' if it is set and the frontend supports
lazy highlighting (see `completion-lazy-hilit-p'), otherwise return STR
as is."
  (if (and (completion-lazy-hilit-p) completion-lazy-hilit-fn)
      (funcall completion-lazy-hilit-fn (copy-sequence str))
    str))