comparison lispref/display.texi @ 22843:63f6e25f0cbd

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Wed, 29 Jul 1998 03:01:39 +0000
parents dfac7398266b
children 7451b1458af1
comparison
equal deleted inserted replaced
22842:2398b380208e 22843:63f6e25f0cbd
177 ---------- Echo Area ---------- 177 ---------- Echo Area ----------
178 @end group 178 @end group
179 @end example 179 @end example
180 @end defun 180 @end defun
181 181
182 @defun message-or-box string &rest arguments
183 This function displays a message like @code{message}, but may display it
184 in a dialog box instead of the echo area. If this function is called in
185 a command that was invoked using the mouse---more precisely, if
186 @code{last-nonmenu-event} (@pxref{Command Loop Info}) is either
187 @code{nil} or a list---then it uses a dialog box or pop-up menu to
188 display the message. Otherwise, it uses the echo area. (This is the
189 same criterion that @code{y-or-n-p} uses to make a similar decision; see
190 @ref{Yes-or-No Queries}.)
191
192 You can force use of the mouse or of the echo area by binding
193 @code{last-nonmenu-event} to a suitable value around the call.
194 @end defun
195
196 @defun message-box string &rest arguments
197 This function displays a message like @code{message}, but uses a dialog
198 box (or a pop-up menu) whenever that is possible. If it is impossible
199 to use a dialog box or pop-up menu, because the terminal does not
200 support them, then @code{message-box} uses the echo area, like
201 @code{message}.
202 @end defun
203
182 @defun current-message 204 @defun current-message
183 @tindex current-message 205 @tindex current-message
184 This function returns the message currently being displayed in the 206 This function returns the message currently being displayed in the
185 echo area, or @code{nil} if there is none. 207 echo area, or @code{nil} if there is none.
186 @end defun 208 @end defun