]> git.eshelyaron.com Git - emacs.git/commitdiff
(Waiting): Negative arg to sit-for forces
authorKim F. Storm <storm@cua.dk>
Tue, 13 Jun 2006 22:18:38 +0000 (22:18 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 13 Jun 2006 22:18:38 +0000 (22:18 +0000)
redisplay even if input is pending.

lispref/commands.texi

index 0723c368bbae1c52f7122a83ce1c4c3f67272b50..a75c0c89fecb41785228387732852ecf5a1d96bf 100644 (file)
@@ -2532,8 +2532,11 @@ point number, @code{sit-for} waits for a fractional number of seconds.
 Some systems support only a whole number of seconds; on these systems,
 @var{seconds} is rounded down.
 
+If @var{seconds} is negative, force a redisplay even if there is
+pending input.  So use @code{(sit-for -1)} to force a redisplay.
+
 The expression @code{(sit-for 0)} is a convenient way to request a
-redisplay, without any delay.  @xref{Forcing Redisplay}.
+redisplay, without any delay, if there is no pending input.  @xref{Forcing Redisplay}.
 
 If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not
 redisplay, but it still returns as soon as input is available (or when