]> git.eshelyaron.com Git - emacs.git/commit
Jrpc-connect is now passed a generic dispatching function
authorJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 20:49:58 +0000 (21:49 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 20:49:58 +0000 (21:49 +0100)
commitf529f554a38c1d6cfbf2ece60d18a4d0c0a21caa
tree115995c5c0ae6224d4ec118c444da40f21856b3d
parent10a19cb11ba7a83d12626d7da2467bd2356982c3
Jrpc-connect is now passed a generic dispatching function

* eglot.el (eglot--dispatch): New helper.
(eglot--connect): Use it.

* jrpc.el (jrpc--dispatcher, jrpc--request-continuations)
(jrpc--server-request-ids): New process-local var.
(jrpc--pending-continuations, jrpc--method-prefix): Remove.
(jrpc-connect): Take DISPATCHER instead of PREFIX.
(jrpc--process-receive): Use proc's dispatcher.
(jrpc--process-send): Make private.
(jrpc-forget-pending-continuations, jrpc-async-request)
(jrpc-reply, jrpc-notify): Use new function names.
lisp/progmodes/eglot.el