Function: message-box
message-box is a function defined in editfns.c.
Signature
(message-box FORMAT-STRING &rest ARGS)
Documentation
Display a message, in a dialog box if possible.
If a dialog box is not available, use the echo area.
The first argument is a format control string, and the rest are data
to be formatted under control of the string. See format-message for
details.
If the first argument is nil or the empty string, clear any existing message; let the minibuffer contents show.
Probably introduced at or before Emacs version 24.4.
Aliases
flymake-display-warning (obsolete since 26.1)
Source Code
// Defined in /usr/src/emacs/src/editfns.c
{
if (NILP (args[0]))
{
message1 (0);
return Qnil;
}
else
{
Lisp_Object val = Fformat_message (nargs, args);
Lisp_Object pane, menu;
pane = list1 (Fcons (build_string ("OK"), Qt));
menu = Fcons (val, pane);
Fx_popup_dialog (Qt, menu, Qt);
return val;
}
}