From 1104060048f1e2fae7e5ed19a00bbe1d738a5861 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 17 May 2018 14:04:15 +0100 Subject: [PATCH] Fix eglot--error and eglot--message helpers * eglot.el (eglot--error, eglot--message): Safely interpret %s. --- lisp/progmodes/eglot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 30d5b435bbf..01a6b5d47f1 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -721,11 +721,11 @@ DEFERRED is passed to `eglot--async-request', which see." ;;; (defun eglot--error (format &rest args) "Error out with FORMAT with ARGS." - (error (apply #'format format args))) + (error "[eglot] %s" (apply #'format format args))) (defun eglot--message (format &rest args) "Message out with FORMAT with ARGS." - (message (concat "[eglot] " (apply #'format format args)))) + (message "[eglot] %s" (apply #'format format args))) (defun eglot--warn (format &rest args) "Warning message with FORMAT and ARGS." -- 2.39.2