diff options
author | Po Lu <luangruo@yahoo.com> | 2021-12-04 08:40:23 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-12-04 08:40:23 +0800 |
commit | 39c466b19587e024964189458c44d079d1fc0588 (patch) | |
tree | 3456a708bf774e7a16b0ee35fd5569d5818f6bfe /lisp/emacs-lisp/timer.el | |
parent | f638541785f0641f3010fa9c4393a4c32710d47e (diff) | |
parent | 352c737dcef4171f71980b432cc86df6511d8643 (diff) | |
download | emacs-39c466b19587e024964189458c44d079d1fc0588.tar.gz emacs-39c466b19587e024964189458c44d079d1fc0588.tar.bz2 emacs-39c466b19587e024964189458c44d079d1fc0588.zip |
Merge remote-tracking branch 'origin/master' into feature/pgtk
Diffstat (limited to 'lisp/emacs-lisp/timer.el')
-rw-r--r-- | lisp/emacs-lisp/timer.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el index 1ef4931b7be..2ac2c992456 100644 --- a/lisp/emacs-lisp/timer.el +++ b/lisp/emacs-lisp/timer.el @@ -351,19 +351,27 @@ This function is called, by name, directly by the C code." Repeat the action every REPEAT seconds, if REPEAT is non-nil. REPEAT may be an integer or floating point number. TIME should be one of: + - a string giving today's time like \"11:23pm\" (the acceptable formats are HHMM, H:MM, HH:MM, HHam, HHAM, HHpm, HHPM, HH:MMam, HH:MMAM, HH:MMpm, or HH:MMPM; a period `.' can be used instead of a colon `:' to separate the hour and minute parts); + - a string giving a relative time like \"90\" or \"2 hours 35 minutes\" (the acceptable forms are a number of seconds without units or some combination of values using units in `timer-duration-words'); + - nil, meaning now; + - a number of seconds from now; + - a value from `encode-time'; -- or t (with non-nil REPEAT) meaning the next integral - multiple of REPEAT. + +- or t (with non-nil REPEAT) meaning the next integral multiple + of REPEAT. This is handy when you want the function to run at + a certain \"round\" number. For instance, (run-at-time t 60 ...) + will run at 11:04:00, 11:05:00, etc. The action is to call FUNCTION with arguments ARGS. |