]> 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)
committerEshel Yaron <me@eshelyaron.com>
Thu, 21 Dec 2023 20:54:39 +0000 (21:54 +0100)
commit855af9957e7c2dc1587e5cb99848f3431de46334
treea4e1dcb5f5a1f909f37baccf2f6c32b31c408fc1
parentc22be53433cb0aedb4261a8eddfa5f07e018e96d
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.

(cherry picked from commit 222f563f136c5cb106df1fb94c177fe24c83683f)
lisp/jsonrpc.el
lisp/progmodes/eglot.el