* lisp/emacs-lisp/warnings.el (display-warning): Don't be so negative

This commit is contained in:
Stefan Monnier 2020-10-15 14:34:12 -04:00
parent ce09f19c28
commit f5c9d3f54e

View file

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