branch: externals/eglot commit 8a5598d06a0539492ec30fc90201a263ea6a03e6 Author: Mohsin Kaleem <mohk...@kisara.moe> Commit: João Távora <joaotav...@gmail.com>
Fix #650: Highlight relevant part of xref hits using xref-match face Also close #657. (eglot--xref-make-match): Use face 'xref-match instead of 'highlight. --- eglot-tests.el | 1 - eglot.el | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/eglot-tests.el b/eglot-tests.el index b76fe16..dac953b 100644 --- a/eglot-tests.el +++ b/eglot-tests.el @@ -1130,4 +1130,3 @@ will assume it exists." ;; Local Variables: ;; checkdoc-force-docstrings-flag: nil ;; End: - diff --git a/eglot.el b/eglot.el index 59804da..57c0652 100644 --- a/eglot.el +++ b/eglot.el @@ -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))))))