Function: replace-preview-propertize

replace-preview-propertize is a byte-compiled function defined in replace.el.gz.

Signature

(replace-preview-propertize TEXT FACE)

Documentation

Return a copy of TEXT with FACE merged into its own faces.

Its display and invisible properties are dropped, because inside an overlay string they would show something other than the preview.

Source Code

;; Defined in /usr/src/emacs/lisp/replace.el.gz
(defun replace-preview-propertize (text face)
  "Return a copy of TEXT with FACE merged into its own faces.
Its `display' and `invisible' properties are dropped, because inside an
overlay string they would show something other than the preview."
  (setq text (copy-sequence text))
  (remove-list-of-text-properties 0 (length text) '(display invisible) text)
  (add-face-text-property 0 (length text) face nil text)
  text)