emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 8a5598d 3/8: Fix #650: Highlight relevant part of


From: Stefan Monnier
Subject: [elpa] externals/eglot 8a5598d 3/8: Fix #650: Highlight relevant part of xref hits using xref-match face
Date: Wed, 14 Apr 2021 18:53:07 -0400 (EDT)

branch: externals/eglot
commit 8a5598d06a0539492ec30fc90201a263ea6a03e6
Author: Mohsin Kaleem <mohkale@kisara.moe>
Commit: João Távora <joaotavora@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))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]