[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/elpa 2775dea 003/139: Rename eglot--continuations eglot
From: |
João Távora |
Subject: |
[elpa] externals/elpa 2775dea 003/139: Rename eglot--continuations eglot--pending-continuations |
Date: |
Mon, 14 May 2018 09:53:24 -0400 (EDT) |
branch: externals/elpa
commit 2775deaf534eab2b919ef99fc7da957987a02092
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Rename eglot--continuations eglot--pending-continuations
---
eglot.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/eglot.el b/eglot.el
index f2ef418..166f23c 100644
--- a/eglot.el
+++ b/eglot.el
@@ -67,7 +67,7 @@
(eglot--define-process-var eglot--expected-bytes nil
"How many bytes declared by server")
-(eglot--define-process-var eglot--continuations (make-hash-table)
+(eglot--define-process-var eglot--pending-continuations (make-hash-table)
"A hash table of request ID to continuation lambdas")
(eglot--define-process-var eglot--events-buffer nil
@@ -264,12 +264,14 @@
(let* ((response-id (plist-get message :id))
(err (plist-get message :error))
(continuations (and response-id
- (gethash response-id (eglot--continuations)))))
+ (gethash response-id
(eglot--pending-continuations)))))
(cond ((and response-id
(not continuations))
(eglot--warn "Ooops no continuation for id %s" response-id))
(continuations
(cancel-timer (third continuations))
+ (remhash response-id
+ (eglot--pending-continuations))
(cond (err
(apply (second continuations) err))
(t
@@ -303,7 +305,7 @@
(timeout-fn (or timeout-fn
(lambda ()
(eglot--warn "Tired of waiting for reply to %s" id)
- (remhash id (eglot--continuations process)))))
+ (remhash id (eglot--pending-continuations
process)))))
(error-fn (or error-fn
(cl-function
(lambda (&key code message)
@@ -330,7 +332,7 @@
timeout-fn
(lambda ()
(throw catch-tag (apply
timeout-fn))))))
- (eglot--continuations process))
+ (eglot--pending-continuations process))
(unless async-p
(while t
(unless (eq (process-status process) 'open)
- [elpa] externals/elpa dfab9a0 011/139: Experimental diagnostic overlays, (continued)
- [elpa] externals/elpa dfab9a0 011/139: Experimental diagnostic overlays, João Távora, 2018/05/14
- [elpa] externals/elpa 22dc2f7 034/139: Ready to start fixing flymake integration, João Távora, 2018/05/14
- [elpa] externals/elpa 931093e 032/139: Don't clutter UI with warnings, João Távora, 2018/05/14
- [elpa] externals/elpa c948713 035/139: Auto-reconnect on unexpected connection loss, João Távora, 2018/05/14
- [elpa] externals/elpa 3489176 004/139: Add a mode-line construct and some minor fanciness, João Távora, 2018/05/14
- [elpa] externals/elpa bc011d0 010/139: Minor cleanup, João Távora, 2018/05/14
- [elpa] externals/elpa e1d36d2 014/139: Fix some byte-compilation warnings, João Távora, 2018/05/14
- [elpa] externals/elpa 1dc2a9f 021/139: Implement spinners and RLS's window/progress, João Távora, 2018/05/14
- [elpa] externals/elpa 95983c9 028/139: Change status to error everytime an error is found, João Távora, 2018/05/14
- [elpa] externals/elpa 328c7ae 025/139: Auto update mode-line after setting some process properties, João Távora, 2018/05/14
- [elpa] externals/elpa 2775dea 003/139: Rename eglot--continuations eglot--pending-continuations,
João Távora <=
- [elpa] externals/elpa 75495dc 033/139: Slightly more user friendly start, João Távora, 2018/05/14
- [elpa] externals/elpa 6f6f01d 018/139: Doc fixes, João Távora, 2018/05/14
- [elpa] externals/elpa 0ec7801 012/139: Simplify `eglot--protocol-initialize`, João Távora, 2018/05/14
- [elpa] externals/elpa 88e3655 040/139: Appease checkdoc.el, João Távora, 2018/05/14
- [elpa] externals/elpa f7f77e1 044/139: Make M-x eglot the main entry point, João Távora, 2018/05/14
- [elpa] externals/elpa 51ff863 046/139: Must re-announce didOpen after reconnect, João Távora, 2018/05/14
- [elpa] externals/elpa d2eca65 045/139: Fix another Flymake sync bug, João Távora, 2018/05/14
- [elpa] externals/elpa c95a0a4 041/139: Multiple servers per project are possible, João Távora, 2018/05/14
- [elpa] externals/elpa e60c7fc 013/139: Overhaul async mechanism safety, João Távora, 2018/05/14
- [elpa] externals/elpa a3545fb 050/139: Rename RPC methods for clarity, João Távora, 2018/05/14