]> git.eshelyaron.com Git - emacs.git/commit
Request dispatcher's return value determines response
authorJoão Távora <joaotavora@gmail.com>
Sat, 9 Jun 2018 20:19:13 +0000 (21:19 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 9 Jun 2018 20:19:13 +0000 (21:19 +0100)
commitce96614d8acd0c12b8d209678bbcc2af5b95d1c6
tree183a857423418393ca5cef21e984d07e29fb3dbd
parentdbf42e651aff5a1b5bd19faa7cde5e43e3967901
Request dispatcher's return value determines response

No more jsonrpc-reply.

* eglot.el (eglot-handle-request window/showMessageRequest):
Simplify.
(eglot--register-unregister): Simplify.
(eglot-handle-request workspace/applyEdit): Simplify.
(eglot--apply-text-edits): Signal a jsonrpc-error.
(eglot--apply-workspace-edit): Simplify.

* jsonrpc-tests.el (jsonrpc--with-emacsrpc-fixture): Don't
jsonrpc--reply.

* jsonrpc.el (jsonrpc-error, jsonrpc-connection, jsonrpc-request):
Improve docstring.
(jsonrpc-error): Polymorphic args.
(jsonrpc--unanswered-request-id): Remove.
(jsonrpc--connection-receive): Rework and simplify.
(jsonrpc-reply): Simplify.
lisp/progmodes/eglot.el