Variable: inhibit-message
inhibit-message is a variable defined in xdisp.c.
Value
t
Documentation
Non-nil means calls to message are not displayed.
They are still logged to the *Messages* buffer.
Do NOT set this globally to a non-nil value, as doing that will disable messages everywhere, including in I-search and other places where they are necessary. This variable is intended to be let-bound around code that needs to disable messages temporarily.
Probably introduced at or before Emacs version 25.1.
Source Code
// Defined in /usr/src/emacs/src/xdisp.c
DEFVAR_BOOL ("inhibit-message", inhibit_message,
doc: /* Non-nil means calls to `message' are not displayed.
They are still logged to the *Messages* buffer.
Do NOT set this globally to a non-nil value, as doing that will
disable messages everywhere, including in I-search and other
places where they are necessary. This variable is intended to
be let-bound around code that needs to disable messages temporarily. */);