summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/warnings.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-09-10 10:45:02 +0200
committerAndrea Corallo <akrl@sdf.org>2020-09-10 10:45:02 +0200
commita26b14733bba6659548f00db634bc45ccd222447 (patch)
tree4b0e1d39334c03a90ce718a3e051be60ca28822b /lisp/emacs-lisp/warnings.el
parent107514a6e21f2c434cdae0eca76fe0a60e287ac8 (diff)
parent931b9f5953013c1e8844d0c723411b87ccfedb1a (diff)
downloademacs-a26b14733bba6659548f00db634bc45ccd222447.tar.gz
emacs-a26b14733bba6659548f00db634bc45ccd222447.tar.bz2
emacs-a26b14733bba6659548f00db634bc45ccd222447.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/emacs-lisp/warnings.el')
-rw-r--r--lisp/emacs-lisp/warnings.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el
index 3a568cb834c..e10c149d89c 100644
--- a/lisp/emacs-lisp/warnings.el
+++ b/lisp/emacs-lisp/warnings.el
@@ -292,14 +292,17 @@ entirely by setting `warning-suppress-types' or
(insert (format (nth 1 level-info)
(format warning-type-format typename))
message)
- (insert " ")
- (insert-button "Disable showing"
- 'type 'warning-suppress-warning
- 'warning-type type)
- (insert " ")
- (insert-button "Disable logging"
- 'type 'warning-suppress-log-warning
- 'warning-type type)
+ ;; Don't output the buttons when doing batch compilation
+ ;; and similar.
+ (unless noninteractive
+ (insert " ")
+ (insert-button "Disable showing"
+ 'type 'warning-suppress-warning
+ 'warning-type type)
+ (insert " ")
+ (insert-button "Disable logging"
+ 'type 'warning-suppress-log-warning
+ 'warning-type type))
(funcall newline)
(when (and warning-fill-prefix (not (string-match "\n" message)))
(let ((fill-prefix warning-fill-prefix)