Mercurial > emacs
diff lisp/timer.el @ 30336:01102e63ed88
(run-with-idle-timer): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 19 Jul 2000 22:04:34 +0000 |
parents | f51f46bef183 |
children | 9abea5a69fb5 |
line wrap: on
line diff
--- a/lisp/timer.el Wed Jul 19 22:00:37 2000 +0000 +++ b/lisp/timer.el Wed Jul 19 22:04:34 2000 +0000 @@ -370,9 +370,11 @@ ;;;###autoload (defun run-with-idle-timer (secs repeat function &rest args) "Perform an action the next time Emacs is idle for SECS seconds. -If REPEAT is non-nil, do this each time Emacs is idle for SECS seconds. +The action is to call FUNCTION with arguments ARGS. SECS may be an integer or a floating point number. -The action is to call FUNCTION with arguments ARGS. + +If REPEAT is non-nil, do the action each time Emacs has been idle for +exactly SECS seconds (that is, only once for each time Emacs becomes idle). This function returns a timer object which you can use in `cancel-timer'." (interactive