Mercurial > emacs
comparison lispref/os.texi @ 73121:9c30f6865f5f
(Timers): Describe timer-max-repeats.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 25 Sep 2006 21:55:29 +0000 |
parents | 43aadb7f2e64 |
children | 6d19c76d81c5 bb0e318b7c53 |
comparison
equal
deleted
inserted
replaced
73120:6d481bdb9779 | 73121:9c30f6865f5f |
---|---|
1472 immediate succession (presuming no other timers trigger before or | 1472 immediate succession (presuming no other timers trigger before or |
1473 between them). If you want a timer to run again no less than @var{n} | 1473 between them). If you want a timer to run again no less than @var{n} |
1474 seconds after the last invocation, don't use the @var{repeat} argument. | 1474 seconds after the last invocation, don't use the @var{repeat} argument. |
1475 Instead, the timer function should explicitly reschedule the timer. | 1475 Instead, the timer function should explicitly reschedule the timer. |
1476 | 1476 |
1477 @defvar timer-max-repeats | |
1478 This variable's value specifies the maximum number of times to repeat | |
1479 calling a timer function in a row, when many previously scheduled | |
1480 calls were unavoidably delayed. | |
1481 @end defvar | |
1482 | |
1477 @defmac with-timeout (seconds timeout-forms@dots{}) body@dots{} | 1483 @defmac with-timeout (seconds timeout-forms@dots{}) body@dots{} |
1478 Execute @var{body}, but give up after @var{seconds} seconds. If | 1484 Execute @var{body}, but give up after @var{seconds} seconds. If |
1479 @var{body} finishes before the time is up, @code{with-timeout} returns | 1485 @var{body} finishes before the time is up, @code{with-timeout} returns |
1480 the value of the last form in @var{body}. If, however, the execution of | 1486 the value of the last form in @var{body}. If, however, the execution of |
1481 @var{body} is cut short by the timeout, then @code{with-timeout} | 1487 @var{body} is cut short by the timeout, then @code{with-timeout} |