1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 12:41:56 +00:00

Have pcm styles apply faces to face prop, not font-lock-face

This is the way the basic completion styles work.  This fixes
candidate highlighting in icomplete.

* lisp/minibuffer.el (completion-pcm--hilit-commonality): Apply
faces to 'face property, not font-lock-face.
This commit is contained in:
João Távora 2019-11-07 23:54:21 +00:00
parent 42eaac3134
commit d558d9fa1e

View File

@ -3145,16 +3145,16 @@ one-letter-long matches).")
(while md
(funcall update-score start (car md))
(put-text-property start (pop md)
'font-lock-face 'completions-common-part
'face 'completions-common-part
str)
(setq start (pop md)))
(funcall update-score len len)
(put-text-property start end
'font-lock-face 'completions-common-part
'face 'completions-common-part
str)
(if (> (length str) pos)
(put-text-property pos (1+ pos)
'font-lock-face 'completions-first-difference
'face 'completions-first-difference
str))
(unless (zerop (length str))
(put-text-property