mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Don't fill byte-compilation warnings in batch mode
* lisp/emacs-lisp/warnings.el (display-warning): Don't break up byte-compilation into several lines when in batch mode, because that makes it difficult for some tools to parse them (bug#52281).
This commit is contained in:
parent
77de40aed3
commit
2454f9876d
1 changed files with 3 additions and 1 deletions
|
|
@ -307,7 +307,9 @@ entirely by setting `warning-suppress-types' or
|
|||
'type 'warning-suppress-log-warning
|
||||
'warning-type type))
|
||||
(funcall newline)
|
||||
(when (and warning-fill-prefix (not (string-search "\n" message)))
|
||||
(when (and warning-fill-prefix
|
||||
(not (string-search "\n" message))
|
||||
(not noninteractive))
|
||||
(let ((fill-prefix warning-fill-prefix)
|
||||
(fill-column warning-fill-column))
|
||||
(fill-region start (point))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue