[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 39473f7 45/49: Fix #626: remove highlight overlay
From: |
Stefan Monnier |
Subject: |
[elpa] externals/eglot 39473f7 45/49: Fix #626: remove highlight overlays immediately when symbol edited |
Date: |
Wed, 17 Mar 2021 18:41:51 -0400 (EDT) |
branch: externals/eglot
commit 39473f7f134df47afee4e4334ae9909c7a535306
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Fix #626: remove highlight overlays immediately when symbol edited
* eglot.el (eglot--highlight-piggyback): Add modification-hooks
property to the created overlays.
Co-authored-by: João Távora <joaotavora@gmail.com>
---
eglot.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index d4300e1..964658a 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2421,7 +2421,8 @@ is not active."
(eglot--range-region range)))
(let ((ov (make-overlay beg end)))
(overlay-put ov 'face 'eglot-highlight-symbol-face)
- (overlay-put ov 'evaporate t)
+ (overlay-put ov 'modification-hooks
+ `(,(lambda (o &rest _) (delete-overlay
o))))
ov)))
highlights))))
:deferred :textDocument/documentHighlight)
- [elpa] externals/eglot 8d00f8b 32/49: Per #602: speed up glob matching 2x, (continued)
- [elpa] externals/eglot 8d00f8b 32/49: Per #602: speed up glob matching 2x, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot e57be55 36/49: Fix #502: silence messages while formatting markup, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 398b81e 35/49: Per #602: simplify dir-watching strategy of w/didChangeWatchedFiles, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot a2d1fc9 37/49: Fix #625: handle null reply for textDocument/definition, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 92b0c5d 41/49: Fix #610: protect against empty URIs on windows, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot ee980cf 39/49: Fixup last commit to fix #627, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 47f8581 47/49: Per #605: indicate support for activeParameter, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot f0c770c 48/49: Fix #555: autoload eglot-workspace-configuration's safe-l-v spec, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot f63abe8 30/49: Fix #418: support phps-mode, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot d784d60 42/49: Fix #635: Correctly protect against zero-length completion items, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 39473f7 45/49: Fix #626: remove highlight overlays immediately when symbol edited,
Stefan Monnier <=