From: Paul Eggert Date: Wed, 18 May 2022 19:39:30 +0000 (-0700) Subject: Avoid formatting twice in flymake X-Git-Tag: emacs-29.0.90~1910^2~597 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec7567f02cc1a1a86ab56abbd6347c86ee41e13a;p=emacs.git 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. --- 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