[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 7769c07 16/69: Send message, then establish conti
From: |
João Távora |
Subject: |
[elpa] externals/eglot 7769c07 16/69: Send message, then establish continuations |
Date: |
Fri, 22 Jun 2018 11:54:56 -0400 (EDT) |
branch: externals/eglot
commit 7769c07cba9d66522e6cc45f93ea15215f96ae5f
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Send message, then establish continuations
This way, if serializing fails, or something else, we won't be
bothered by the failing timeout.
* jrpc.el (jrpc-async-request): Send, then establish continuations.
---
jrpc.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/jrpc.el b/jrpc.el
index 7303414..bb4fe28 100644
--- a/jrpc.el
+++ b/jrpc.el
@@ -558,8 +558,12 @@ Return the request ID, or nil, in case the request was
deferred."
(puthash (list deferred buf) (list later (funcall make-timeout))
(jrpc--deferred-actions proc))
(cl-return-from jrpc-async-request nil)))))
- ;; Really run it
+ ;; Really send it
;;
+ (jrpc--process-send proc (jrpc-obj :jsonrpc "2.0"
+ :id id
+ :method method
+ :params params))
(puthash id
(list (or success-fn
(jrpc-lambda (&rest _ignored)
@@ -573,10 +577,6 @@ Return the request ID, or nil, in case the request was
deferred."
:id id :error code))))
(funcall make-timeout))
(jrpc--request-continuations proc))
- (jrpc--process-send proc (jrpc-obj :jsonrpc "2.0"
- :id id
- :method method
- :params params))
id))
(cl-defun jrpc-request (proc method params &key deferred)
- [elpa] externals/eglot updated (0176264 -> f385d9c), João Távora, 2018/06/22
- [elpa] externals/eglot f4de5d7 01/69: Fix copyright header. Obviously not since 2003, João Távora, 2018/06/22
- [elpa] externals/eglot 5cda0ec 06/69: Fix a ridiculous bug when generating transient projects, João Távora, 2018/06/22
- [elpa] externals/eglot e5120aa 08/69: Add jrpc.el to Makefile, João Távora, 2018/06/22
- [elpa] externals/eglot 07359a2 15/69: Allow null timeouts and set default to 3 seconds, João Távora, 2018/06/22
- [elpa] externals/eglot 67d8335 17/69: jrpc.el should know nothing of mode-line updates, João Távora, 2018/06/22
- [elpa] externals/eglot 0e1a5f0 05/69: jrpc-connect is now passed a generic dispatching function, João Távora, 2018/06/22
- [elpa] externals/eglot 078a1a6 13/69: Add full "Commentary" section to jrpc.el, João Távora, 2018/06/22
- [elpa] externals/eglot 2f1d76d 03/69: Proper server shutdown when jrpc.el is used, João Távora, 2018/06/22
- [elpa] externals/eglot a2aa1ed 19/69: Robustify timer handling for jrpc-async-request, João Távora, 2018/06/22
- [elpa] externals/eglot 7769c07 16/69: Send message, then establish continuations,
João Távora <=
- [elpa] externals/eglot 7f2e894 11/69: Merge branch 'master' into jsonrpc-refactor (using good ol' git merge), João Távora, 2018/06/22
- [elpa] externals/eglot e5ba4f6 18/69: Automatically reply with error if dispatcher doesn't, João Távora, 2018/06/22
- [elpa] externals/eglot 33ae871 09/69: More flexible jrpc.el and improve eglot.el's doc, João Távora, 2018/06/22
- [elpa] externals/eglot 3265c1d 10/69: Simpler callback protocol for JSONRPC parameters and results, João Távora, 2018/06/22
- [elpa] externals/eglot e906d25 14/69: Overhaul JSON and JSRONRPC error handling, João Távora, 2018/06/22
- [elpa] externals/eglot 7cd94b9 12/69: Improve jrpc.el's doc (and change jrpc-request's protocol a tiny bit), João Távora, 2018/06/22
- [elpa] externals/eglot 489182d 24/69: New jsonrpc-error error type, João Távora, 2018/06/22
- [elpa] externals/eglot 5cea412 20/69: Fix typos and phrasing in commentary and docstrings, João Távora, 2018/06/22
- [elpa] externals/eglot c30f0f3 23/69: Get rid of jsonrpc.el customization group and timeout, João Távora, 2018/06/22
- [elpa] externals/eglot 5e8fe4c 26/69: Add jsonrpc-tests.el, João Távora, 2018/06/22