aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lispref/os.texi11
1 files changed, 9 insertions, 2 deletions
diff --git a/lispref/os.texi b/lispref/os.texi
index 1defdcdbe57..25a925ded6d 100644
--- a/lispref/os.texi
+++ b/lispref/os.texi
@@ -1275,8 +1275,8 @@ This function returns @code{t} if @var{year} is a leap year.
1275@section Timers for Delayed Execution 1275@section Timers for Delayed Execution
1276@cindex timer 1276@cindex timer
1277 1277
1278 You can set up a @dfn{timer} to call a function at a specified future time or 1278 You can set up a @dfn{timer} to call a function at a specified
1279after a certain length of idleness. 1279future time or after a certain length of idleness.
1280 1280
1281 Emacs cannot run timers at any arbitrary point in a Lisp program; it 1281 Emacs cannot run timers at any arbitrary point in a Lisp program; it
1282can run them only when Emacs could accept output from a subprocess: 1282can run them only when Emacs could accept output from a subprocess:
@@ -1285,6 +1285,13 @@ namely, while waiting or inside certain primitive functions such as
1285timer's execution may be delayed if Emacs is busy. However, the time of 1285timer's execution may be delayed if Emacs is busy. However, the time of
1286execution is very precise if Emacs is idle. 1286execution is very precise if Emacs is idle.
1287 1287
1288 Emacs binds @code{inhibit-quit} to @code{t} before calling the timer
1289function, because quitting out of many timer functions can leave
1290things in an inconsistent state. This is normally unproblematical
1291because most timer functions don't do a lot of work. Indeed, for a
1292timer to calls a function that takes substantial time to run is likely
1293to be annoying.
1294
1288@defun run-at-time time repeat function &rest args 1295@defun run-at-time time repeat function &rest args
1289This function arranges to call @var{function} with arguments @var{args} 1296This function arranges to call @var{function} with arguments @var{args}
1290at time @var{time}. The argument @var{function} is a function to call 1297at time @var{time}. The argument @var{function} is a function to call