diff options
| author | Karl Heuer | 1996-07-15 20:26:39 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-07-15 20:26:39 +0000 |
| commit | a1cfbf35a94c7464d714b369f73a9952fbb158d9 (patch) | |
| tree | 419018c96cca3f12c793e53d4c7b5c52b3c8fb58 | |
| parent | 0d26feea890428ff5616b9e219778c092cd6e164 (diff) | |
| download | emacs-a1cfbf35a94c7464d714b369f73a9952fbb158d9.tar.gz emacs-a1cfbf35a94c7464d714b369f73a9952fbb158d9.zip | |
(texinfo-format-today): Avoid race condition by getting current time only once.
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 50a5c5dd534..a5ad374d1fd 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -891,11 +891,6 @@ lower types.") | |||
| 891 | (file-name-nondirectory (expand-file-name arg))) | 891 | (file-name-nondirectory (expand-file-name arg))) |
| 892 | (insert "Info file: " | 892 | (insert "Info file: " |
| 893 | texinfo-format-filename ", -*-Text-*-\n" | 893 | texinfo-format-filename ", -*-Text-*-\n" |
| 894 | ;; Date string removed so that regression testing is easier. | ||
| 895 | ;; "produced on " | ||
| 896 | ;; (substring (current-time-string) 8 10) " " | ||
| 897 | ;; (substring (current-time-string) 4 7) " " | ||
| 898 | ;; (substring (current-time-string) -4) " " | ||
| 899 | "produced by `texinfo-format-buffer'\n" | 894 | "produced by `texinfo-format-buffer'\n" |
| 900 | "from file" | 895 | "from file" |
| 901 | (if (buffer-file-name input-buffer) | 896 | (if (buffer-file-name input-buffer) |
| @@ -1568,10 +1563,7 @@ Used by @refill indenting command to avoid indenting within lists, etc.") | |||
| 1568 | ; The `@today{}' command requires a pair of braces, like `@dots{}'. | 1563 | ; The `@today{}' command requires a pair of braces, like `@dots{}'. |
| 1569 | (defun texinfo-format-today () | 1564 | (defun texinfo-format-today () |
| 1570 | (texinfo-parse-arg-discard) | 1565 | (texinfo-parse-arg-discard) |
| 1571 | (insert (format "%s %s %s" | 1566 | (insert (format-time-string "%e %b %Y"))) |
| 1572 | (substring (current-time-string) 8 10) | ||
| 1573 | (substring (current-time-string) 4 7) | ||
| 1574 | (substring (current-time-string) -4)))) | ||
| 1575 | 1567 | ||
| 1576 | 1568 | ||
| 1577 | ;;; @ignore | 1569 | ;;; @ignore |