emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f5c9d3f: * lisp/emacs-lisp/warnings.el (display-warning): Don't b


From: Stefan Monnier
Subject: master f5c9d3f: * lisp/emacs-lisp/warnings.el (display-warning): Don't be so negative
Date: Thu, 15 Oct 2020 14:34:44 -0400 (EDT)

branch: master
commit f5c9d3f54ec85a83bfe33d0171df2546e750ec0c
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/emacs-lisp/warnings.el (display-warning): Don't be so negative
---
 lisp/emacs-lisp/warnings.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el
index 6919edc..f525ea43 100644
--- a/lisp/emacs-lisp/warnings.el
+++ b/lisp/emacs-lisp/warnings.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]