[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot bf9c850 52/69: Get rid of jsonrpc-obj
From: |
Jo�o T�vora |
Subject: |
[elpa] externals/eglot bf9c850 52/69: Get rid of jsonrpc-obj |
Date: |
Fri, 22 Jun 2018 11:55:03 -0400 (EDT) |
branch: externals/eglot
commit bf9c850404a7b6a644c497d4c558ce6ee9801da9
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Get rid of jsonrpc-obj
* jsonrpc.el (jsonrpc-obj): Remove this.
(jsonrpc--async-request-1): Don't jsonrpc-obj.
---
jsonrpc.el | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/jsonrpc.el b/jsonrpc.el
index 41044e3..868233a 100644
--- a/jsonrpc.el
+++ b/jsonrpc.el
@@ -238,13 +238,6 @@ connection object, called when the process dies .")
(let ((inhibit-read-only t)) (erase-buffer) (read-only-mode t) proc))
(process-put proc 'jsonrpc-connection conn)))
-(defmacro jsonrpc-obj (&rest what)
- "Make WHAT a suitable argument for `json-encode'."
- (declare (debug (&rest form)))
- ;; FIXME: maybe later actually do something, for now this just fixes
- ;; the indenting of literal plists, i.e. is basically `list'
- `(list ,@what))
-
(defun jsonrpc--json-read ()
"Read JSON object in buffer, move point to end of buffer."
;; TODO: I guess we can make these macros if/when jsonrpc.el
@@ -608,12 +601,12 @@ TIMEOUT is nil)."
(list (or success-fn
(jsonrpc-lambda (&rest _ignored)
(jsonrpc--debug
- connection (jsonrpc-obj :message "success ignored"
- :id id))))
+ connection (list :message "success ignored"
+ :id id))))
(or error-fn
(jsonrpc-lambda (&key code message &allow-other-keys)
(jsonrpc--debug
- connection (jsonrpc-obj
+ connection (list
:message
(format "error ignored, status set (%s)"
message)
- [elpa] externals/eglot c43dff4 35/69: On request timeout, clear it from the deferred actions, (continued)
- [elpa] externals/eglot c43dff4 35/69: On request timeout, clear it from the deferred actions, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 870c60a 04/69: Merge master into jsonrpc-refactor (using imerge), Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 980f3e7 34/69: Fix another merge-related bug in eglot-eldoc-function, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot fab7f8b 44/69: Improve Makefile test targets, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot d7e1b92 42/69: * jsonrpc.el (jsonrpc-message): Fix formatting bug., Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 0ba7964 40/69: * jsonrpc.el (jsonrpc-log-event): Log time of event., Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot f594dd7 36/69: jsonrpc-request also calls for deferred action cleanup, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot dae1de1 41/69: Tweak Makefile to run both tests in a row, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot c790274 39/69: jsonrpc--next-request-id is a connection slot, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 68c266e 45/69: Avoid more catastrophes, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot bf9c850 52/69: Get rid of jsonrpc-obj,
Jo�o T�vora <=
- [elpa] externals/eglot 0b474ec 63/69: Fix use of jsonrpc-message in tests, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 44e9647 46/69: Simplify JSONRPC connection shutdown, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 47b957d 65/69: Let's not send Content-type for now., Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 61d1276 66/69: Fix another bug in jsonrpc-connection-send, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 2917214 47/69: Merge master into jsonrpc-refactor, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot f730fff 48/69: Merge branch 'master' into jsonrpc-refactor, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot aaca7de 60/69: Fix ridiculous bug, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot d87f4bf 55/69: jsonrpc--log-event should also be private, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot a65d3f4 53/69: Make message and warning helpers private, Jo�o T�vora, 2018/06/22
- [elpa] externals/eglot 9e9dc57 30/69: Merge branch 'master' into jsonrpc-refactor (using regular merge), Jo�o T�vora, 2018/06/22