aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2022-05-18 12:39:30 -0700
committerPaul Eggert2022-05-18 12:40:01 -0700
commitec7567f02cc1a1a86ab56abbd6347c86ee41e13a (patch)
tree53527fc4e5decb347c85341b3a9452b1cd0c4f99
parente55b4074af27ff0840a90baea6fc9aecd28fbbc8 (diff)
downloademacs-ec7567f02cc1a1a86ab56abbd6347c86ee41e13a.tar.gz
emacs-ec7567f02cc1a1a86ab56abbd6347c86ee41e13a.zip
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.
-rw-r--r--lisp/progmodes/flymake.el2
1 files changed, 1 insertions, 1 deletions
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."
303(defun flymake-error (text &rest args) 303(defun flymake-error (text &rest args)
304 "Format TEXT with ARGS and signal an error for Flymake." 304 "Format TEXT with ARGS and signal an error for Flymake."
305 (let ((msg (apply #'format-message text args))) 305 (let ((msg (apply #'format-message text args)))
306 (flymake-log :error msg) 306 (flymake-log :error "%s" msg)
307 (error (concat "[Flymake] " msg)))) 307 (error (concat "[Flymake] " msg))))
308 308
309(cl-defstruct (flymake--diag 309(cl-defstruct (flymake--diag