diff options
| author | Richard M. Stallman | 2004-12-21 11:46:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-12-21 11:46:47 +0000 |
| commit | a50342391b233e6e32080046dd5fecd5a9654194 (patch) | |
| tree | c058fdc9b69c66b37e5f2ff99db789d75ea12159 | |
| parent | 761d3eb391b4b58f121ef624b3e0c720f4470c9f (diff) | |
| download | emacs-a50342391b233e6e32080046dd5fecd5a9654194.tar.gz emacs-a50342391b233e6e32080046dd5fecd5a9654194.zip | |
(Event Input Misc): Add while-no-input.
| -rw-r--r-- | lispref/commands.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lispref/commands.texi b/lispref/commands.texi index 0144123ecb5..85e2953f102 100644 --- a/lispref/commands.texi +++ b/lispref/commands.texi | |||
| @@ -2388,6 +2388,18 @@ The alias @code{last-input-char} exists for compatibility with | |||
| 2388 | Emacs version 18. | 2388 | Emacs version 18. |
| 2389 | @end defvar | 2389 | @end defvar |
| 2390 | 2390 | ||
| 2391 | @defmac while-no-input body... | ||
| 2392 | This construct runs the @var{body} forms and returns the value | ||
| 2393 | of the last one---but only if no input arrives. If any input | ||
| 2394 | arrives during the execution of the @var{body} forms, it aborts | ||
| 2395 | them (working much like a quit), and the @code{while-no-input} | ||
| 2396 | form returns @code{nil}. | ||
| 2397 | |||
| 2398 | If a part of @var{body} binds @code{inhibit-quit} to non-@code{nil}, | ||
| 2399 | arrival of input during those parts won't cause an abort until | ||
| 2400 | the end of that part. | ||
| 2401 | @end defmac | ||
| 2402 | |||
| 2391 | @defun discard-input | 2403 | @defun discard-input |
| 2392 | @cindex flush input | 2404 | @cindex flush input |
| 2393 | @cindex discard input | 2405 | @cindex discard input |