diff options
| author | Kim F. Storm | 2006-06-13 22:18:38 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-06-13 22:18:38 +0000 |
| commit | fdefc4d152c2a6d79bcfefd9450758140afbdf9a (patch) | |
| tree | a3db0835c89147e6bae1c282d63f90015c04b5cd | |
| parent | 578133269130bdad5e356b29f75325011796b776 (diff) | |
| download | emacs-fdefc4d152c2a6d79bcfefd9450758140afbdf9a.tar.gz emacs-fdefc4d152c2a6d79bcfefd9450758140afbdf9a.zip | |
(Waiting): Negative arg to sit-for forces
redisplay even if input is pending.
| -rw-r--r-- | lispref/commands.texi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lispref/commands.texi b/lispref/commands.texi index 0723c368bba..a75c0c89fec 100644 --- a/lispref/commands.texi +++ b/lispref/commands.texi | |||
| @@ -2532,8 +2532,11 @@ point number, @code{sit-for} waits for a fractional number of seconds. | |||
| 2532 | Some systems support only a whole number of seconds; on these systems, | 2532 | Some systems support only a whole number of seconds; on these systems, |
| 2533 | @var{seconds} is rounded down. | 2533 | @var{seconds} is rounded down. |
| 2534 | 2534 | ||
| 2535 | If @var{seconds} is negative, force a redisplay even if there is | ||
| 2536 | pending input. So use @code{(sit-for -1)} to force a redisplay. | ||
| 2537 | |||
| 2535 | The expression @code{(sit-for 0)} is a convenient way to request a | 2538 | The expression @code{(sit-for 0)} is a convenient way to request a |
| 2536 | redisplay, without any delay. @xref{Forcing Redisplay}. | 2539 | redisplay, without any delay, if there is no pending input. @xref{Forcing Redisplay}. |
| 2537 | 2540 | ||
| 2538 | If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not | 2541 | If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not |
| 2539 | redisplay, but it still returns as soon as input is available (or when | 2542 | redisplay, but it still returns as soon as input is available (or when |