Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
30335:aa44e3d4f081 | 30336:01102e63ed88 |
---|---|
368 (run-with-timer secs repeat function object)) | 368 (run-with-timer secs repeat function object)) |
369 | 369 |
370 ;;;###autoload | 370 ;;;###autoload |
371 (defun run-with-idle-timer (secs repeat function &rest args) | 371 (defun run-with-idle-timer (secs repeat function &rest args) |
372 "Perform an action the next time Emacs is idle for SECS seconds. | 372 "Perform an action the next time Emacs is idle for SECS seconds. |
373 If REPEAT is non-nil, do this each time Emacs is idle for SECS seconds. | 373 The action is to call FUNCTION with arguments ARGS. |
374 SECS may be an integer or a floating point number. | 374 SECS may be an integer or a floating point number. |
375 The action is to call FUNCTION with arguments ARGS. | 375 |
376 If REPEAT is non-nil, do the action each time Emacs has been idle for | |
377 exactly SECS seconds (that is, only once for each time Emacs becomes idle). | |
376 | 378 |
377 This function returns a timer object which you can use in `cancel-timer'." | 379 This function returns a timer object which you can use in `cancel-timer'." |
378 (interactive | 380 (interactive |
379 (list (read-from-minibuffer "Run after idle (seconds): " nil nil t) | 381 (list (read-from-minibuffer "Run after idle (seconds): " nil nil t) |
380 (y-or-n-p "Repeat each time Emacs is idle? ") | 382 (y-or-n-p "Repeat each time Emacs is idle? ") |