From 6f7e99fb1896b1414187d98b4b1459d04ac94823 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 29 Oct 2019 22:22:25 +0100 Subject: [PATCH] Document run-with-timer * doc/lispref/os.texi (Timers): Mention run-with-timer (bug#37875). --- doc/lispref/os.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 93551cab0e5..d8d0ad7206d 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi @@ -2107,6 +2107,13 @@ functions like @code{display-time}. The function @code{run-at-time} returns a timer value that identifies the particular scheduled future action. You can use this value to call @code{cancel-timer} (see below). +@end deffn + +@deffn Command run-with-timer secs repeat function &rest args +This is exactly the same as @code{run-at-time} (so see that definition +for an explanation of the parameters; @var{secs} is passed as +@var{time} to that function), but is meant to be used when the delay +is specified in seconds. @end deffn A repeating timer nominally ought to run every @var{repeat} seconds, -- 2.39.5