Function: inhibit-message
inhibit-message is a byte-compiled function defined in
minibuffer.el.gz.
Signature
(inhibit-message MESSAGE)
Documentation
Don't display MESSAGE when it matches the regexp inhibit-message-regexps.
This function is intended to be added to set-message-functions(var)/set-message-functions(fun).
To suppress display of echo-area messages that match inhibit-message-regexps,
make this function be the first element of set-message-functions(var)/set-message-functions(fun).
Probably introduced at or before Emacs version 25.1.
Source Code
;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun inhibit-message (message)
"Don't display MESSAGE when it matches the regexp `inhibit-message-regexps'.
This function is intended to be added to `set-message-functions'.
To suppress display of echo-area messages that match `inhibit-message-regexps',
make this function be the first element of `set-message-functions'."
(or (and (consp inhibit-message-regexps)
(string-match-p (mapconcat #'identity inhibit-message-regexps "\\|")
message))
message))