From: Kim F. Storm Date: Tue, 13 Jun 2006 22:18:38 +0000 (+0000) Subject: (Waiting): Negative arg to sit-for forces X-Git-Tag: emacs-pretest-22.0.90~1969 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fdefc4d152c2a6d79bcfefd9450758140afbdf9a;p=emacs.git (Waiting): Negative arg to sit-for forces redisplay even if input is pending. --- 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. 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