Merge from origin/emacs-28

82e74e4559 flymake: Ensure compatibility with older Emacsen
This commit is contained in:
Stefan Kangas 2022-02-09 06:30:54 +01:00
commit 9459399d58

View file

@ -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)