summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorBrian Leung <leungbk@posteo.net>2022-02-08 07:16:25 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-02-08 07:16:55 +0100
commit82e74e4559b8becd44f3e7ac0134e2baddd69921 (patch)
tree943d6a6763221e1e445f110ccecec324df88a25d /lisp
parent0d46ee2ddebb74a5a6e1d55da3641d1cd2ba5beb (diff)
downloademacs-82e74e4559b8becd44f3e7ac0134e2baddd69921.tar.gz
emacs-82e74e4559b8becd44f3e7ac0134e2baddd69921.tar.bz2
emacs-82e74e4559b8becd44f3e7ac0134e2baddd69921.zip
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).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/flymake.el4
1 files changed, 2 insertions, 2 deletions
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)