From 14d9da6d7751dd605f0d31e26e224fe0ef58c537 Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Wed, 10 Dec 2025 06:29:39 -0800 Subject: [PATCH] Fix line containing format placeholders If the line reported by Elsa contains format string placeholders, the call to format in eask-error|warn will panic about missing arguments. --- lisp/lint/elsa.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/lint/elsa.el b/lisp/lint/elsa.el index 69b0e107..644e41fa 100644 --- a/lisp/lint/elsa.el +++ b/lisp/lint/elsa.el @@ -54,10 +54,10 @@ (--each (reverse errors) (let ((line (string-trim (concat file ":" (elsa-message-format it))))) (cond ((string-match-p "[: ][Ee]rror:" line) - (eask-error line)) + (eask-error "%s" line)) ((string-match-p "[: ][Ww]arning:" line) - (eask-warn line)) - (t (eask-log line))))) + (eask-warn "%s" line)) + (t (eask-log "%s" line))))) (eask-msg "No issues found")))) (eask-start