summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/warnings.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/warnings.el')
-rw-r--r--lisp/emacs-lisp/warnings.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el
index 6c62a56e99c..8b43c6a8726 100644
--- a/lisp/emacs-lisp/warnings.el
+++ b/lisp/emacs-lisp/warnings.el
@@ -225,10 +225,14 @@ SUPPRESS-LIST is the list of kinds of warnings to suppress."
(?q "quit and do nothing"))))
(?y
(customize-save-variable 'warning-suppress-log-types
- (cons (list type) warning-suppress-log-types)))
+ (if (consp type)
+ (cons type warning-suppress-log-types)
+ (cons (list type) warning-suppress-log-types))))
(?n
(customize-save-variable 'warning-suppress-types
- (cons (list type) warning-suppress-types)))
+ (if (consp type)
+ (cons type warning-suppress-types)
+ (cons (list type) warning-suppress-types))))
(_ (message "Exiting"))))
;;;###autoload