[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 2775dea 003/139: Rename eglot--continuations eglo
From: |
João Távora |
Subject: |
[elpa] externals/eglot 2775dea 003/139: Rename eglot--continuations eglot--pending-continuations |
Date: |
Mon, 14 May 2018 09:54:40 -0400 (EDT) |
branch: externals/eglot
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] branch externals/eglot created (now 4c0bfc3), João Távora, 2018/05/14
- [elpa] externals/eglot 3a8f9a1 002/139: Remove a couple of comments, João Távora, 2018/05/14
- [elpa] externals/eglot 72895ca 006/139: Handle notifications, João Távora, 2018/05/14
- [elpa] externals/eglot 0222e7e 007/139: Improve `eglot--current-process', João Távora, 2018/05/14
- [elpa] externals/eglot 2775dea 003/139: Rename eglot--continuations eglot--pending-continuations,
João Távora <=
- [elpa] externals/eglot c417eb4 009/139: Cancel timeouts when process dies unexpectedly, João Távora, 2018/05/14
- [elpa] externals/eglot 6f0a8df 008/139: Organize a bit, João Távora, 2018/05/14
- [elpa] externals/eglot c222c3b 019/139: Lay groundwork for uniform treatment of network connections, João Távora, 2018/05/14
- [elpa] externals/eglot 3489176 004/139: Add a mode-line construct and some minor fanciness, João Távora, 2018/05/14
- [elpa] externals/eglot dfab9a0 011/139: Experimental diagnostic overlays, João Távora, 2018/05/14
- [elpa] externals/eglot 16be2fc 020/139: Fix parser to accept multiple messages in one chunk, João Távora, 2018/05/14
- [elpa] externals/eglot 0ec7801 012/139: Simplify `eglot--protocol-initialize`, João Távora, 2018/05/14
- [elpa] externals/eglot 4f246b5 017/139: * eglot.el (eglot-mode-map): Move up before minor mode., João Távora, 2018/05/14
- [elpa] externals/eglot bc011d0 010/139: Minor cleanup, João Távora, 2018/05/14
- [elpa] externals/eglot e60c7fc 013/139: Overhaul async mechanism safety, João Távora, 2018/05/14