diff options
| author | Stephen Gildea | 2024-12-13 08:53:54 -0800 |
|---|---|---|
| committer | Stephen Gildea | 2024-12-13 08:56:41 -0800 |
| commit | 488801baf7de64cc3ad8747c7a0c9f5869afb4e2 (patch) | |
| tree | 090d5d88c747c78cfd1e3a431374748907952349 | |
| parent | 34bedcd58d74f733631ec78afc7bda9a068c714f (diff) | |
| download | emacs-488801baf7de64cc3ad8747c7a0c9f5869afb4e2.tar.gz emacs-488801baf7de64cc3ad8747c7a0c9f5869afb4e2.zip | |
* lisp/time-stamp.el: Limit field width to two digits.
| -rw-r--r-- | lisp/time-stamp.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el index 8c28920d219..69c059f6254 100644 --- a/lisp/time-stamp.el +++ b/lisp/time-stamp.el | |||
| @@ -561,6 +561,8 @@ and all `time-stamp-format' compatibility." | |||
| 561 | (setq field-width "1" flag-minimize t)) | 561 | (setq field-width "1" flag-minimize t)) |
| 562 | ((eq cur-char ?_) | 562 | ((eq cur-char ?_) |
| 563 | (setq field-width "2" flag-pad-with-spaces t)))) | 563 | (setq field-width "2" flag-pad-with-spaces t)))) |
| 564 | (if (> (string-to-number field-width) 99) | ||
| 565 | (setq field-width (if flag-pad-with-zeros "099" "99"))) | ||
| 564 | (setq field-result | 566 | (setq field-result |
| 565 | (cond | 567 | (cond |
| 566 | ((eq cur-char ?%) | 568 | ((eq cur-char ?%) |