diff options
| author | Stephen Gildea | 2025-01-24 09:44:03 -0800 |
|---|---|---|
| committer | Stephen Gildea | 2025-01-24 09:45:50 -0800 |
| commit | 77fe4fbeffc723337bd295e593c8062cd4ab7e43 (patch) | |
| tree | 5b1975fc5ce7c1b848e00904b962743785f78ab9 | |
| parent | 0d38f1d07b27ad3634a667388c39d55ed2bb6137 (diff) | |
| download | emacs-77fe4fbeffc723337bd295e593c8062cd4ab7e43.tar.gz emacs-77fe4fbeffc723337bd295e593c8062cd4ab7e43.zip | |
; * lisp/time-stamp.el: Improve two documentation strings
| -rw-r--r-- | lisp/time-stamp.el | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el index 2aa5ba74dc3..1ee37b8076b 100644 --- a/lisp/time-stamp.el +++ b/lisp/time-stamp.el | |||
| @@ -488,10 +488,15 @@ Internal helper used by `time-stamp-string-preprocess'." | |||
| 488 | (format-time-string format time time-stamp-time-zone)) | 488 | (format-time-string format time time-stamp-time-zone)) |
| 489 | 489 | ||
| 490 | (defun time-stamp-string (&optional ts-format time) | 490 | (defun time-stamp-string (&optional ts-format time) |
| 491 | "Generate the new string to be inserted by \\[time-stamp]. | 491 | "Return the current time and other info formatted for \\[time-stamp]. |
| 492 | Optionally use format TS-FORMAT instead of `time-stamp-format' to | 492 | Optional first argument TS-FORMAT gives the format to use; it defaults |
| 493 | format the string. Optional second argument TIME is only for testing; | 493 | to the value of `time-stamp-format'. Thus, with no arguments, |
| 494 | normally the current time is used." | 494 | this function returns the string `time-stamp' would use to update |
| 495 | its template in the buffer. The format accepted is similar to the | ||
| 496 | format used by `format-time-string' with some extensions; see the | ||
| 497 | documentation of `time-stamp-format' for details. | ||
| 498 | Optional second argument TIME is only for testing; normally the current | ||
| 499 | time is used. The time zone is determined by `time-stamp-time-zone'." | ||
| 495 | (if (stringp (or ts-format (setq ts-format time-stamp-format))) | 500 | (if (stringp (or ts-format (setq ts-format time-stamp-format))) |
| 496 | (time-stamp-string-preprocess ts-format time))) | 501 | (time-stamp-string-preprocess ts-format time))) |
| 497 | 502 | ||
| @@ -790,7 +795,7 @@ This is an internal helper for `time-stamp-string-preprocess'." | |||
| 790 | 795 | ||
| 791 | (defun time-stamp-do-number (format-char alt-form field-width time) | 796 | (defun time-stamp-do-number (format-char alt-form field-width time) |
| 792 | "Handle compatible FORMAT-CHAR where only default width/padding will change. | 797 | "Handle compatible FORMAT-CHAR where only default width/padding will change. |
| 793 | ALT-FORM is whether `#' was specified. FIELD-WIDTH is the string | 798 | ALT-FORM is non-0 if \":\" was specified. FIELD-WIDTH is the string |
| 794 | width specification or \"\". TIME is the time to convert. | 799 | width specification or \"\". TIME is the time to convert. |
| 795 | This is an internal helper for `time-stamp-string-preprocess'." | 800 | This is an internal helper for `time-stamp-string-preprocess'." |
| 796 | (let ((format-string (concat "%" (char-to-string format-char)))) | 801 | (let ((format-string (concat "%" (char-to-string format-char)))) |