emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 82e74e4559: flymake: Ensure compatibility with older Emacsen


From: Lars Ingebrigtsen
Subject: emacs-28 82e74e4559: flymake: Ensure compatibility with older Emacsen
Date: Tue, 8 Feb 2022 01:17:01 -0500 (EST)

branch: emacs-28
commit 82e74e4559b8becd44f3e7ac0134e2baddd69921
Author: Brian Leung <leungbk@posteo.net>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]