[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))))))
- [elpa] externals/eglot updated (2fbcab2 -> fc221c8), Stefan Monnier, 2021/04/14
- [elpa] externals/eglot f930a09 1/8: Fix #596: generalize eglot-flymake-backend, Stefan Monnier, 2021/04/14
- [elpa] externals/eglot c65a032 5/8: Close #652: add :company-kind to eglot-completion-at-point, Stefan Monnier, 2021/04/14
- [elpa] externals/eglot c34ec42 2/8: Per #645: Attempt to speed up initial directory/glob correspondence, Stefan Monnier, 2021/04/14
- [elpa] externals/eglot 05fe647 7/8: Per #667: add a passing test demonstrating clangd + TRAMP works, Stefan Monnier, 2021/04/14
- [elpa] externals/eglot fc221c8 8/8: Overhaul bug reporting template, Stefan Monnier, 2021/04/14
- [elpa] externals/eglot 8a5598d 3/8: Fix #650: Highlight relevant part of xref hits using xref-match face,
Stefan Monnier <=
- [elpa] externals/eglot a79bb5f 4/8: Overhaul bug-reporting template, Stefan Monnier, 2021/04/14
- [elpa] externals/eglot dd51bf2 6/8: Merge pull request #656 from mohkale/company-kind, Stefan Monnier, 2021/04/14