]> git.eshelyaron.com Git - emacs.git/commitdiff
Have pcm styles apply faces to face prop, not font-lock-face
authorJoão Távora <joaotavora@gmail.com>
Thu, 7 Nov 2019 23:54:21 +0000 (23:54 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 8 Nov 2019 10:18:33 +0000 (10:18 +0000)
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.

lisp/minibuffer.el

index 43dd277a2e4884560ae59324107a23115cf0a95a..cc113b926f3a889b895aea18b1370ecf75308254 100644 (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