]> git.eshelyaron.com Git - emacs.git/commit
Jsonrpc: rework implementation of continuations
authorJoão Távora <joaotavora@gmail.com>
Wed, 20 Dec 2023 16:28:52 +0000 (10:28 -0600)
committerJoão Távora <joaotavora@gmail.com>
Thu, 21 Dec 2023 00:57:18 +0000 (18:57 -0600)
commit222f563f136c5cb106df1fb94c177fe24c83683f
tree7d55173f99f0c55771ca6ed0cdfe0238d4861af7
parent018cf86605b0ab1976c01ed5f1b511280c31887d
Jsonrpc: rework implementation of continuations

Preparatory work for fix of bug#67945

* lisp/jsonrpc.el (jsonrpc-connection): Change slots.
(jsonrpc--remove): New helper
(jsonrpc-forget-pending-continuations)
(jsonrpc-connection-receive)
(jsonrpc-request)
(jsonrpc--process-sentinel)
(jsonrpc--async-request-1)
(jsonrpc--async-request-1): Rework.
(jsonrpc-continuation-count): New convenience helper.

* lisp/progmodes/eglot.el (eglot--mode-line-format): Stop using
jsonrpc--request-continuations.
lisp/jsonrpc.el
lisp/progmodes/eglot.el