From ec7567f02cc1a1a86ab56abbd6347c86ee41e13a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 18 May 2022 12:39:30 -0700 Subject: [PATCH] Avoid formatting twice in flymake * lisp/progmodes/flymake.el (flymake-error): Don't format a message twice, as that can translate quotes we don't want translated. --- lisp/progmodes/flymake.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index fbbfacfcfed..0b7958e52fb 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -303,7 +303,7 @@ generated it." (defun flymake-error (text &rest args) "Format TEXT with ARGS and signal an error for Flymake." (let ((msg (apply #'format-message text args))) - (flymake-log :error msg) + (flymake-log :error "%s" msg) (error (concat "[Flymake] " msg)))) (cl-defstruct (flymake--diag -- 2.39.2