]> git.eshelyaron.com Git - emacs.git/commit
Jsonrpc: deal with nested synchronous jsonrpc-request
authorJoão Távora <joaotavora@gmail.com>
Wed, 20 Dec 2023 22:25:28 +0000 (16:25 -0600)
committerJoão Távora <joaotavora@gmail.com>
Thu, 21 Dec 2023 00:57:18 +0000 (18:57 -0600)
commit02b99db661861905162a6638349936e784df3189
treedb51f6d105a793900939b217d820f596cfd311b9
parent222f563f136c5cb106df1fb94c177fe24c83683f
Jsonrpc: deal with nested synchronous jsonrpc-request

See bug#67945

* lisp/jsonrpc.el (jsonrpc-connection): Add -sync-request-alist
(jsonrpc-connection-receive): Rework.
(jsonrpc-request): Rework.  Pass SYNC-REQUEST to
jsonrpc-async-request-1.
(jsonrpc--process-sentinel): Simplify.
(jsonrpc--schedule): New helper.
(jsonrpc--continue): New helper.
(jsonrpc--async-request-1): Rework.
(jsonrpc--process-sentinel): Also cancel deferred action timers.
(Version): Bump to 1.0.21
lisp/jsonrpc.el