Skip to content

Commit

Permalink
flymake: Ensure compatibility with older Emacsen
Browse files Browse the repository at this point in the history
* lisp/progmodes/flymake.el (flymake--log-1): Use
replace-regexp-in-string instead of Emacs 28's
string-replace (bug#53853).
  • Loading branch information
leungbk authored and larsmagne committed Feb 8, 2022
1 parent 0d46ee2 commit 82e74e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/progmodes/flymake.el
Expand Up @@ -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)
Expand Down

0 comments on commit 82e74e4

Please sign in to comment.