Variable: clear-message-function
clear-message-function is a variable defined in xdisp.c.
Value
clear-minibuffer-message
Documentation
If non-nil, function to clear echo-area messages.
Usually this function is called when the next input event arrives.
The function is called without arguments. It is expected to clear the
message displayed by its counterpart function specified by
set-message-function.
Probably introduced at or before Emacs version 27.1.
Source Code
// Defined in /usr/src/emacs/src/xdisp.c
DEFVAR_LISP ("clear-message-function", Vclear_message_function,
doc: /* If non-nil, function to clear echo-area messages.
Usually this function is called when the next input event arrives.
The function is called without arguments. It is expected to clear the
message displayed by its counterpart function specified by
`set-message-function'. */);