]> git.eshelyaron.com Git - emacs.git/commitdiff
Highlight relevant part of xref hits using xref-match face
authorMohsin Kaleem <mohkale@kisara.moe>
Mon, 29 Mar 2021 21:17:07 +0000 (22:17 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 10 Apr 2021 19:42:00 +0000 (20:42 +0100)
Also close https://github.com/joaotavora/eglot/issues/657.

(eglot--xref-make-match): Use face 'xref-match instead of 'highlight.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/650

lisp/progmodes/eglot.el

index 59804da9e4d1358b945852ce098e516675211ecb..57c065273b73b9509ad8c603436f45053f8526c2 100644 (file)
@@ -2020,7 +2020,7 @@ Try to visit the target file for a richer summary line."
                                 (substring (buffer-substring bol (point-at-eol)))
                                 (hi-beg (- beg bol))
                                 (hi-end (- (min (point-at-eol) end) bol)))
-                     (add-face-text-property hi-beg hi-end 'highlight
+                     (add-face-text-property hi-beg hi-end 'xref-match
                                              t substring)
                      (list substring (1+ (current-line)) (eglot-current-column)
                            (- end beg))))))