From afa46b0808384a90d760262bf8bf676a509aa194 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Mon, 7 Feb 2022 07:56:13 -0800 Subject: [PATCH] flymake: Ensure compatibility with older Emacsen * lisp/progmodes/flymake.el (flymake--log-1): Use replace-regexp-in-string instead of Emacs 28's string-replace. (bug#53853) --- lisp/progmodes/flymake.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 0c16ddedcb..e369cb1f21 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -267,8 +267,8 @@ If set to nil, don't suppress any zero counters." (format " [%s %s]" (or sublog 'flymake) ;; Handle file names with "%" correctly. (Bug#51549) - (string-replace "%" "%%" - (buffer-name (current-buffer)))))) + (replace-regexp-in-string "%" "%%" + (buffer-name (current-buffer)))))) (display-warning (list 'flymake sublog) (apply #'format-message msg args) (if (numberp level) -- 2.34.1