aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2018-08-11 14:19:10 +0100
committerJoão Távora2018-08-11 14:57:01 +0100
commitd7b9737e69e44e90c45fab19255a0737c8f854ac (patch)
treeaec6ef7a9a28fb97e5291fe1ca6d2827e475a440
parentc580443325a3d071625185876a8f28e04793c625 (diff)
downloademacs-d7b9737e69e44e90c45fab19255a0737c8f854ac.tar.gz
emacs-d7b9737e69e44e90c45fab19255a0737c8f854ac.zip
* lisp/jsonrpc.el (jsonrpc-request): Clarify comment.
-rw-r--r--lisp/jsonrpc.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/jsonrpc.el b/lisp/jsonrpc.el
index b41c30c5162..691e7b2830d 100644
--- a/lisp/jsonrpc.el
+++ b/lisp/jsonrpc.el
@@ -283,7 +283,7 @@ ignored."
283 (let* ((tag (cl-gensym "jsonrpc-request-catch-tag")) id-and-timer 283 (let* ((tag (cl-gensym "jsonrpc-request-catch-tag")) id-and-timer
284 cancelled 284 cancelled
285 (retval 285 (retval
286 (unwind-protect ; protect against user-quit, for example 286 (unwind-protect
287 (catch tag 287 (catch tag
288 (setq 288 (setq
289 id-and-timer 289 id-and-timer
@@ -310,6 +310,10 @@ ignored."
310 (setq cancelled t) 310 (setq cancelled t)
311 `(cancelled ,cancel-on-input-retval)) 311 `(cancelled ,cancel-on-input-retval))
312 (t (while t (accept-process-output nil 30))))) 312 (t (while t (accept-process-output nil 30)))))
313 ;; In normal operation, cancellation is handled by the
314 ;; timeout function and response filter, but we still have
315 ;; to protect against user-quit (C-g) or the
316 ;; `cancel-on-input' case.
313 (pcase-let* ((`(,id ,timer) id-and-timer)) 317 (pcase-let* ((`(,id ,timer) id-and-timer))
314 (remhash id (jsonrpc--request-continuations connection)) 318 (remhash id (jsonrpc--request-continuations connection))
315 (remhash (list deferred (current-buffer)) 319 (remhash (list deferred (current-buffer))