comparison lispref/commands.texi @ 71777:5fb29ee9d9aa

(Waiting): (sit-for -1) is no longer special. (sit-for 0) is equivalent to (redisplay). Iconifying/deiconifying no longer makes sit-for return.
author Kim F. Storm <storm@cua.dk>
date Tue, 11 Jul 2006 00:47:53 +0000
parents 990ac1cb0fbc
children 61cb5aae3bc3
comparison
equal deleted inserted replaced
71776:93e3d16a8207 71777:5fb29ee9d9aa
2541 The argument @var{seconds} need not be an integer. If it is a floating 2541 The argument @var{seconds} need not be an integer. If it is a floating
2542 point number, @code{sit-for} waits for a fractional number of seconds. 2542 point number, @code{sit-for} waits for a fractional number of seconds.
2543 Some systems support only a whole number of seconds; on these systems, 2543 Some systems support only a whole number of seconds; on these systems,
2544 @var{seconds} is rounded down. 2544 @var{seconds} is rounded down.
2545 2545
2546 If @var{seconds} is negative, force a redisplay even if there is 2546 The expression @code{(sit-for 0)} is equivalent to @code{(redisplay)},
2547 pending input. So use @code{(sit-for -1)} to force a redisplay. 2547 i.e. it requests a redisplay, without any delay, if there is no pending input.
2548 2548 @xref{Forcing Redisplay}.
2549 The expression @code{(sit-for 0)} is a convenient way to request a
2550 redisplay, without any delay, if there is no pending input. @xref{Forcing Redisplay}.
2551 2549
2552 If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not 2550 If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not
2553 redisplay, but it still returns as soon as input is available (or when 2551 redisplay, but it still returns as soon as input is available (or when
2554 the timeout elapses). 2552 the timeout elapses).
2555
2556 Iconifying or deiconifying a frame makes @code{sit-for} return, because
2557 that generates an event. @xref{Misc Events}.
2558 2553
2559 The usual purpose of @code{sit-for} is to give the user time to read 2554 The usual purpose of @code{sit-for} is to give the user time to read
2560 text that you display. 2555 text that you display.
2561 2556
2562 It is also possible to call @code{sit-for} with three arguments, 2557 It is also possible to call @code{sit-for} with three arguments,