From ce09f19c2849c6c13520cc1d8351974c8bee9640 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 15 Oct 2020 18:36:26 +0200 Subject: Don't display the warning buttons in bytecomp buffers * lisp/emacs-lisp/warnings.el (display-warning): Don't do the buttons in bytecomp buffers. --- lisp/emacs-lisp/warnings.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp/warnings.el') diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el index e10c149d89c..6919edcc818 100644 --- a/lisp/emacs-lisp/warnings.el +++ b/lisp/emacs-lisp/warnings.el @@ -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 -- cgit v1.2.3