Function: warnings-suppress
warnings-suppress is a byte-compiled function defined in
warnings.el.gz.
Signature
(warnings-suppress TYPE)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/warnings.el.gz
(defun warnings-suppress (type)
(pcase (car
(read-multiple-choice
(format "Suppress `%s' warnings? " type)
`((?y ,(format "yes, ignore `%s' warnings completely" type))
(?n "no, just disable showing them")
(?q "quit and do nothing"))))
(?y
(customize-save-variable '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
(if (consp type)
(cons type warning-suppress-types)
(cons (list type) warning-suppress-types))))
(_ (message "Exiting"))))