diff options
| author | Dave Love | 2001-01-26 23:04:44 +0000 |
|---|---|---|
| committer | Dave Love | 2001-01-26 23:04:44 +0000 |
| commit | 22453b51246d7dbead5a927d1cc6bf0103ddcd9f (patch) | |
| tree | e427859ca2b0baa4d361f5a6a60a89155aae1a74 | |
| parent | a30eb617fbdc8100b470a432e04bc289c531972a (diff) | |
| download | emacs-22453b51246d7dbead5a927d1cc6bf0103ddcd9f.tar.gz emacs-22453b51246d7dbead5a927d1cc6bf0103ddcd9f.zip | |
Doc fixes.
| -rw-r--r-- | lisp/time-stamp.el | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el index 00b725c074f..a6dcec78050 100644 --- a/lisp/time-stamp.el +++ b/lisp/time-stamp.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; time-stamp.el --- Maintain last change time stamps in files edited by Emacs | 1 | ;;; time-stamp.el --- Maintain last change time stamps in files edited by Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright 1989, 1993, 1994, 1995, 1997, 2000 | 3 | ;; Copyright 1989, 1993, 1994, 1995, 1997, 2000, 2001 |
| 4 | ;;; Free Software Foundation, Inc. | 4 | ;;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer's Time-stamp: <2000-12-04 16:06:50 gildea> | 6 | ;; Maintainer's Time-stamp: <2000-12-04 16:06:50 gildea> |
| @@ -48,7 +48,10 @@ | |||
| 48 | The value may be a string or a list. Lists are supported only for | 48 | The value may be a string or a list. Lists are supported only for |
| 49 | backward compatibility; see variable `time-stamp-old-format-warn'. | 49 | backward compatibility; see variable `time-stamp-old-format-warn'. |
| 50 | 50 | ||
| 51 | A string is used verbatim except for character sequences beginning with %: | 51 | A string is used verbatim except for character sequences beginning |
| 52 | with %, as follows. The values of non-numeric formatted items depend | ||
| 53 | on the locale setting recorded in `locale-coding-system'. The | ||
| 54 | examples here are for the default (`C') locale. | ||
| 52 | 55 | ||
| 53 | %:a weekday name: `Monday'. %#A gives uppercase: `MONDAY' | 56 | %:a weekday name: `Monday'. %#A gives uppercase: `MONDAY' |
| 54 | %3a abbreviated weekday: `Mon'. %3A gives uppercase: `MON' | 57 | %3a abbreviated weekday: `Mon'. %3A gives uppercase: `MON' |
| @@ -432,10 +435,10 @@ Optionally use FORMAT." | |||
| 432 | ;;; The : modifier is a temporary conversion feature used to resolve | 435 | ;;; The : modifier is a temporary conversion feature used to resolve |
| 433 | ;;; ambiguous formats--formats that are changing (over time) incompatibly. | 436 | ;;; ambiguous formats--formats that are changing (over time) incompatibly. |
| 434 | (defun time-stamp-string-preprocess (format &optional time) | 437 | (defun time-stamp-string-preprocess (format &optional time) |
| 435 | ;; Use a FORMAT to format date, time, file, and user information. | 438 | "Use a FORMAT to format date, time, file, and user information. |
| 436 | ;; Optional second argument TIME is only for testing. | 439 | Optional second argument TIME is only for testing. |
| 437 | ;; Implements non-time extensions to format-time-string | 440 | Implements non-time extensions to `format-time-string' |
| 438 | ;; and all time-stamp-format compatibility. | 441 | and all time-stamp-format compatibility." |
| 439 | (let ((fmt-len (length format)) | 442 | (let ((fmt-len (length format)) |
| 440 | (ind 0) | 443 | (ind 0) |
| 441 | cur-char | 444 | cur-char |
| @@ -461,7 +464,7 @@ Optionally use FORMAT." | |||
| 461 | ?\0)) | 464 | ?\0)) |
| 462 | (or (eq ?. cur-char) | 465 | (or (eq ?. cur-char) |
| 463 | (eq ?, cur-char) (eq ?: cur-char) (eq ?@ cur-char) | 466 | (eq ?, cur-char) (eq ?: cur-char) (eq ?@ cur-char) |
| 464 | (eq ?- cur-char) (eq ?+ cur-char) (eq ?_ cur-char) | 467 | (eq ?- cur-char) (eq ?+ cur-char) (eq ?_ cur-char) |
| 465 | (eq ?\ cur-char) (eq ?# cur-char) (eq ?^ cur-char) | 468 | (eq ?\ cur-char) (eq ?# cur-char) (eq ?^ cur-char) |
| 466 | (and (eq ?\( cur-char) | 469 | (and (eq ?\( cur-char) |
| 467 | (not (eq prev-char ?\\)) | 470 | (not (eq prev-char ?\\)) |
| @@ -599,10 +602,9 @@ Optionally use FORMAT." | |||
| 599 | result)) | 602 | result)) |
| 600 | 603 | ||
| 601 | (defun time-stamp-do-number (format-char alt-form field-width time) | 604 | (defun time-stamp-do-number (format-char alt-form field-width time) |
| 602 | ;; Handle a compatible FORMAT-CHAR where only | 605 | "Handle compatible FORMAT-CHAR where only default width/padding will change. |
| 603 | ;; the default width/padding will change. | 606 | ALT-FORM is whether `#' specified. FIELD-WIDTH is the string |
| 604 | ;; ALT-FORM is whether `#' specified. FIELD-WIDTH is the string | 607 | width specification or \"\". TIME is the time to convert." |
| 605 | ;; width specification or "". TIME is the time to convert. | ||
| 606 | (let ((format-string (concat "%" (char-to-string format-char)))) | 608 | (let ((format-string (concat "%" (char-to-string format-char)))) |
| 607 | (and (not alt-form) (string-equal field-width "") | 609 | (and (not alt-form) (string-equal field-width "") |
| 608 | (time-stamp-conv-warn format-string | 610 | (time-stamp-conv-warn format-string |
| @@ -623,7 +625,7 @@ The new forms being recommended now will continue to work then.") | |||
| 623 | 625 | ||
| 624 | 626 | ||
| 625 | (defun time-stamp-conv-warn (old-form new-form) | 627 | (defun time-stamp-conv-warn (old-form new-form) |
| 626 | ;; Display a warning about a soon-to-be-obsolete format. | 628 | "Display a warning about a soon-to-be-obsolete format." |
| 627 | (cond | 629 | (cond |
| 628 | (time-stamp-conversion-warn | 630 | (time-stamp-conversion-warn |
| 629 | (save-excursion | 631 | (save-excursion |