[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2454f98: Don't fill byte-compilation warnings in batch mode
From: |
Lars Ingebrigtsen |
Subject: |
master 2454f98: Don't fill byte-compilation warnings in batch mode |
Date: |
Sun, 5 Dec 2021 20:23:26 -0500 (EST) |
branch: master
commit 2454f9876d647453d5e0d8e4aa2260f9254978c8
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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).
---
lisp/emacs-lisp/warnings.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el
index 36b275e..1d06136 100644
--- a/lisp/emacs-lisp/warnings.el
+++ b/lisp/emacs-lisp/warnings.el
@@ -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))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2454f98: Don't fill byte-compilation warnings in batch mode,
Lars Ingebrigtsen <=