From: Stefan Kangas Date: Thu, 13 Jan 2022 00:01:48 +0000 (+0100) Subject: * lisp/jsonrpc.el (jsonrpc--debug): Use apply on format args list. X-Git-Tag: emacs-29.0.90~3106 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9599b5923b2bc56fbf5e1fccee6a19643c75c984;p=emacs.git * lisp/jsonrpc.el (jsonrpc--debug): Use apply on format args list. --- 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."