]> 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)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Dec 2023 20:04:50 +0000 (21:04 +0100)
commite51048687d3d67a34186b0b62f1e113ce7294490
tree1b08c9f05e2bd4029b726390d908492fe2e84b82
parenta945c971a39cf5dcb818fd6bd21db490586c966e
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.

(cherry picked from commit 9e24cde227a1bf2e1f0c005ca16b2a70e704ff5c)
lisp/jsonrpc.el