]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't display the warning buttons in bytecomp buffers
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 15 Oct 2020 16:36:26 +0000 (18:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 15 Oct 2020 16:36:26 +0000 (18:36 +0200)
* lisp/emacs-lisp/warnings.el (display-warning): Don't do the
buttons in bytecomp buffers.

lisp/emacs-lisp/warnings.el

index e10c149d89cc26db250df657073b8bee30d36503..6919edcc81813ef39d358f51983f3d5d7f3641bc 100644 (file)
@@ -294,7 +294,8 @@ entirely by setting `warning-suppress-types' or
                      message)
               ;; Don't output the buttons when doing batch compilation
               ;; and similar.
-              (unless noninteractive
+              (when (and (not noninteractive)
+                         (not (eq type 'bytecomp)))
                 (insert " ")
                 (insert-button "Disable showing"
                                'type 'warning-suppress-warning