Keep pre-existing highlighting in completion candidates.
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 5 Mar 2013 07:38:16 +0000 (11:38 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 5 Mar 2013 07:38:16 +0000 (11:38 +0400)
commitc7a409b6f98c2677e165381380f81c061e32086a
tree3c0cbf6f385a0fd81941d0cb0613e2c2cf72dc48
parenta2332e8da9cc241d84cc3e217a6b5fa3c5221f3a
Keep pre-existing highlighting in completion candidates.
* lisp/minibuffer.el (completions-first-difference): State that the
face is "added" in the docstring.
(completions-common-part): Same.  And don't inherit from default.
(completion-hilit-commonality): Prepend 'completions-common-part
and 'completion-first-difference faces to the 'face property,
instead of replacing the value(s).
(completion--insert-strings): Same with 'completions-annotations face.
(completion-hilit-commonality): Use 'face instead of
'font-lock-face, because it gets priority if the completion
strings already have 'face set.

Fixes: debbugs:13250
lisp/ChangeLog
lisp/minibuffer.el