aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2006-06-13 22:18:38 +0000
committerKim F. Storm2006-06-13 22:18:38 +0000
commitfdefc4d152c2a6d79bcfefd9450758140afbdf9a (patch)
treea3db0835c89147e6bae1c282d63f90015c04b5cd
parent578133269130bdad5e356b29f75325011796b776 (diff)
downloademacs-fdefc4d152c2a6d79bcfefd9450758140afbdf9a.tar.gz
emacs-fdefc4d152c2a6d79bcfefd9450758140afbdf9a.zip
(Waiting): Negative arg to sit-for forces
redisplay even if input is pending.
-rw-r--r--lispref/commands.texi5
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.
2532Some systems support only a whole number of seconds; on these systems, 2532Some 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
2535If @var{seconds} is negative, force a redisplay even if there is
2536pending input. So use @code{(sit-for -1)} to force a redisplay.
2537
2535The expression @code{(sit-for 0)} is a convenient way to request a 2538The expression @code{(sit-for 0)} is a convenient way to request a
2536redisplay, without any delay. @xref{Forcing Redisplay}. 2539redisplay, without any delay, if there is no pending input. @xref{Forcing Redisplay}.
2537 2540
2538If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not 2541If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not
2539redisplay, but it still returns as soon as input is available (or when 2542redisplay, but it still returns as soon as input is available (or when