diff options
| author | Jim Blandy | 1993-03-02 07:33:41 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-02 07:33:41 +0000 |
| commit | b6341cd1d225cde09fac8b8f959db50fbc46dd89 (patch) | |
| tree | 02d027daee91a030bcb1d45555951585b5675a35 | |
| parent | 1537a263af5cd865107ad051c41105a1534e0074 (diff) | |
| download | emacs-b6341cd1d225cde09fac8b8f959db50fbc46dd89.tar.gz emacs-b6341cd1d225cde09fac8b8f959db50fbc46dd89.zip | |
* timer.el (run-at-time): Doc fix.
| -rw-r--r-- | lisp/timer.el | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/timer.el b/lisp/timer.el index b743d3caf7f..199a6fe46a0 100644 --- a/lisp/timer.el +++ b/lisp/timer.el | |||
| @@ -36,7 +36,19 @@ | |||
| 36 | Arguments are TIME, REPEAT, FUNCTION &rest ARGS. | 36 | Arguments are TIME, REPEAT, FUNCTION &rest ARGS. |
| 37 | TIME, a string, can be specified absolutely or relative to now. | 37 | TIME, a string, can be specified absolutely or relative to now. |
| 38 | REPEAT, an integer number of seconds, is the interval on which to repeat | 38 | REPEAT, an integer number of seconds, is the interval on which to repeat |
| 39 | the call to the function. If REPEAT is nil, call it just once." | 39 | the call to the function. If REPEAT is nil, call it just once. |
| 40 | |||
| 41 | Absolute times may be specified in a wide variety of formats; | ||
| 42 | Something of the form `HOUR:MIN:SEC TIMEZONE MONTH/DAY/YEAR', where | ||
| 43 | all fields are numbers, will work; the format used by the Unix `date' | ||
| 44 | command will work too. | ||
| 45 | |||
| 46 | Relative times may be specified as a series of numbers followed by units: | ||
| 47 | 1 min denotes one minute from now. | ||
| 48 | min does too. | ||
| 49 | 1 min 5 sec denotes 65 seconds from now. | ||
| 50 | 1 min 2 sec 3 hour 4 day 5 week 6 fortnight 7 month 8 year | ||
| 51 | denotes the sum of all the given durations from now." | ||
| 40 | (interactive "sRun at time: \nNRepeat interval: \naFunction: ") | 52 | (interactive "sRun at time: \nNRepeat interval: \naFunction: ") |
| 41 | (cond ((or (not timer-process) | 53 | (cond ((or (not timer-process) |
| 42 | (memq (process-status timer-process) '(exit signal nil))) | 54 | (memq (process-status timer-process) '(exit signal nil))) |