Escape '%' in filenames to fix flymake warnings
* lisp/progmodes/flymake.el (flymake--log-1): Escape '%' in filenames for 'warning-type-format' so they are not interpreted as a %-sequence by 'format' later. (Bug#51549)
This commit is contained in:
parent
6243a43ac2
commit
d85cf33e49
1 changed files with 3 additions and 1 deletions
|
@ -266,7 +266,9 @@ If set to nil, don't suppress any zero counters."
|
|||
(warning-type-format
|
||||
(format " [%s %s]"
|
||||
(or sublog 'flymake)
|
||||
(current-buffer))))
|
||||
;; Handle file names with "%" correctly. (Bug#51549)
|
||||
(string-replace "%" "%%"
|
||||
(buffer-name (current-buffer))))))
|
||||
(display-warning (list 'flymake sublog)
|
||||
(apply #'format-message msg args)
|
||||
(if (numberp level)
|
||||
|
|
Loading…
Add table
Reference in a new issue