summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-01-13 01:01:48 +0100
committerStefan Kangas <stefan@marxist.se>2022-01-13 01:02:22 +0100
commit9599b5923b2bc56fbf5e1fccee6a19643c75c984 (patch)
treed3188c219745914a21ce616bc51a21765c45c492
parent097e0ee4a20f09d7d1262ddb56ca1a0e5ed1e156 (diff)
downloademacs-9599b5923b2bc56fbf5e1fccee6a19643c75c984.tar.gz
* lisp/jsonrpc.el (jsonrpc--debug): Use apply on format args list.
-rw-r--r--lisp/jsonrpc.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/jsonrpc.el b/lisp/jsonrpc.el
index 84d0ef9179b..ee88a28b37e 100644
--- a/lisp/jsonrpc.el
+++ b/lisp/jsonrpc.el
@@ -698,7 +698,9 @@ TIMEOUT is nil)."
(defun jsonrpc--debug (server format &rest args)
"Debug message for SERVER with FORMAT and ARGS."
(jsonrpc--log-event
- server (if (stringp format)`(:message ,(format format args)) format)))
+ server (if (stringp format)
+ `(:message ,(apply #'format format args))
+ format)))
(defun jsonrpc--warn (format &rest args)
"Warning message with FORMAT and ARGS."