From: Brian Leung Date: Tue, 8 Feb 2022 06:16:25 +0000 (+0100) Subject: flymake: Ensure compatibility with older Emacsen X-Git-Tag: emacs-28.0.92~60 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=82e74e4559b8becd44f3e7ac0134e2baddd69921;p=emacs.git 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). --- diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 0c16ddedcbe..e369cb1f21e 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)