Function: markdown-ts--inhibit-messages-and-warnings
markdown-ts--inhibit-messages-and-warnings is a macro defined in
markdown-ts-mode.el.gz.
Signature
(markdown-ts--inhibit-messages-and-warnings VAR &rest BODY)
Documentation
Execute BODY with messages and warnings inhibited.
VAR is a variable's symbol; e.g.,
'markdown-ts-inhibit-code-block-mode-warnings. If the symbol's value
is non-nil, do what it says on the tin.
Inhibit messages in the echo area.
Inhibit messages in the log.
Inhibit warnings with level < :error.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defmacro markdown-ts--inhibit-messages-and-warnings (var &rest body)
"Execute BODY with messages and warnings inhibited.
VAR is a variable's symbol; e.g.,
\\='markdown-ts-inhibit-code-block-mode-warnings. If the symbol's value
is non-nil, do what it says on the tin.
Inhibit messages in the echo area.
Inhibit messages in the log.
Inhibit warnings with level < :error."
(declare (indent defun))
`(let* ((val (symbol-value ,var))
(inhibit-message val)
;; Also inhibit logging to *Messages*
(message-log-max (if val nil message-log-max))
(warning-minimum-level
(if val :error warning-minimum-level)))
(progn ,@body)))