Function: message-or-box

message-or-box is a function defined in editfns.c.

Signature

(message-or-box FORMAT-STRING &rest ARGS)

Documentation

Display a message in a dialog box or in the echo area.

If this command was invoked with the mouse, use a dialog box if use-dialog-box is non-nil. Otherwise, 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.

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
      && use_dialog_box)
    return Fmessage_box (nargs, args);
  return Fmessage (nargs, args);
}