[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/elpa 6689a15 026/139: Add eglot-clear-status interactiv
From: |
João Távora |
Subject: |
[elpa] externals/elpa 6689a15 026/139: Add eglot-clear-status interactive command |
Date: |
Mon, 14 May 2018 09:53:28 -0400 (EDT) |
branch: externals/elpa
commit 6689a1588366a5d461207b11130b167e14a1dcf4
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Add eglot-clear-status interactive command
* eglot.el (eglot-clear-status): New
(eglot-forget-pending-continuations): Fix bug.
(eglot--mode-line-format): Add link to eglot-clear-status.
---
eglot.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/eglot.el b/eglot.el
index 1a82cc5..db594f4 100644
--- a/eglot.el
+++ b/eglot.el
@@ -361,9 +361,14 @@ identifier. ERROR is non-nil if this is an error."
(defun eglot-forget-pending-continuations (process)
"Stop waiting for responses from the current LSP PROCESS."
- (interactive (eglot--current-process-or-lose))
+ (interactive (list (eglot--current-process-or-lose)))
(clrhash (eglot--pending-continuations process)))
+(defun eglot-clear-status (process)
+ "Clear most recent error message from PROCESS."
+ (interactive (list (eglot--current-process-or-lose)))
+ (setf (eglot--status process) nil))
+
(cl-defun eglot--request (process
method
params
@@ -668,12 +673,15 @@ running. INTERACTIVE is t if called interactively."
`("/"
(:propertize
,status
- help-echo ,(concat "mouse-1: go to events buffer")
+ help-echo ,(concat "mouse-1: go to events buffer\n"
+ "mouse-3: clear this status")
mouse-face mode-line-highlight
face compilation-mode-line-fail
keymap ,(let ((map (make-sparse-keymap)))
(define-key map [mode-line mouse-1]
'eglot-events-buffer)
+ (define-key map [mode-line mouse-3]
+ 'eglot-clear-status)
map))))
,@(when (and doing (not done-p))
`("/"
- [elpa] externals/elpa b1554fc 055/139: * eglot.el (eglot--process-receive): Skip null method notifs., (continued)
- [elpa] externals/elpa b1554fc 055/139: * eglot.el (eglot--process-receive): Skip null method notifs., João Távora, 2018/05/14
- [elpa] externals/elpa 9882bf2 072/139: Cleanup mistake with TextDocumentItem and TextDocumentIdentifier, João Távora, 2018/05/14
- [elpa] externals/elpa fc6879f 084/139: Explain why didOpen on after-revert-hook is a bad idea, João Távora, 2018/05/14
- [elpa] externals/elpa fdb4de1 039/139: Simplify flymake integration, João Távora, 2018/05/14
- [elpa] externals/elpa 39e8b9e 081/139: Add (dummy) tests and Travis CI integration, João Távora, 2018/05/14
- [elpa] externals/elpa 1356844 097/139: Fix odd bugs, João Távora, 2018/05/14
- [elpa] externals/elpa 889ef20 085/139: Tweak the async request engine., João Távora, 2018/05/14
- [elpa] externals/elpa 1add335 078/139: Workaround two suspected Emacs bugs, João Távora, 2018/05/14
- [elpa] externals/elpa 9d404c9 054/139: Update README.md, João Távora, 2018/05/14
- [elpa] externals/elpa c417eb4 009/139: Cancel timeouts when process dies unexpectedly, João Távora, 2018/05/14
- [elpa] externals/elpa 6689a15 026/139: Add eglot-clear-status interactive command,
João Távora <=
- [elpa] externals/elpa 63f2208 030/139: Less obstrusive flymake stuff for now, João Távora, 2018/05/14
- [elpa] externals/elpa 3403f86 027/139: Correctly report what we currently are capable of, João Távora, 2018/05/14
- [elpa] externals/elpa 92bf3a0 038/139: Signal textDocument/didClose, João Távora, 2018/05/14
- [elpa] externals/elpa 7ec0dcf 029/139: Events buffer uses eglot-mode, source buffers use eglot-editing-mode, João Távora, 2018/05/14
- [elpa] externals/elpa 17e0ca4 047/139: Fix Flymake diagnostic positions, João Távora, 2018/05/14
- [elpa] externals/elpa 0e95167 042/139: Watch for files opened under umbrella of existing process, João Távora, 2018/05/14
- [elpa] externals/elpa 9665a3e 051/139: Fix textDocument/didChange, João Távora, 2018/05/14
- [elpa] externals/elpa 1514e0f 052/139: Fix a couple of Rust-related edge cases, João Távora, 2018/05/14
- [elpa] externals/elpa d90efdf 001/139: Initial commit, João Távora, 2018/05/14
- [elpa] externals/elpa 29d4103 056/139: Fix mode-line mouse-clicks from outside selected window, João Távora, 2018/05/14