]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't fill byte-compilation warnings in batch mode
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 6 Dec 2021 01:23:02 +0000 (02:23 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 6 Dec 2021 01:23:02 +0000 (02:23 +0100)
* 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

index 36b275e2d3cff51ada43425955f4545fb2e6370d..1d061364a0303d2b61f276022089de879fa407b6 100644 (file)
@@ -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))))