]> git.eshelyaron.com Git - emacs.git/commit
Jsonrpc: add new jsonrpc-autoport-bootstrap helper
authorJoão Távora <joaotavora@gmail.com>
Thu, 14 Dec 2023 22:56:33 +0000 (22:56 +0000)
committerJoão Távora <joaotavora@gmail.com>
Thu, 14 Dec 2023 23:53:13 +0000 (23:53 +0000)
commit9e24cde227a1bf2e1f0c005ca16b2a70e704ff5c
tree2644a1f92e40333d0c9e67b713c855fdfb1547dd
parentaf1fe69f05d803a6958f9d8a045d1013e2ce785c
Jsonrpc: add new jsonrpc-autoport-bootstrap helper

This will help Eglot and some other extensions connect to network
servers that are started with a call to a local program.

* lisp/jsonrpc.el (jsonrpc--process-sentinel): Also delete inferior.
(jsonrpc-process-connection): Add -autoport-inferior slot.
(initialize-instance jsonrpc-process-connection): Check
process-creating function arity.  Use jsonrpc-forwarding-buffer
(jsonrpc-autoport-bootstrap): New helper.
(Version): Bump to 1.0.20.
lisp/jsonrpc.el