From 9599b5923b2bc56fbf5e1fccee6a19643c75c984 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 13 Jan 2022 01:01:48 +0100 Subject: [PATCH] * lisp/jsonrpc.el (jsonrpc--debug): Use apply on format args list. --- lisp/jsonrpc.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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." -- 2.39.2