diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-12-05 23:00:10 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-12-05 23:24:10 -0800 |
commit | a21b8c5d7dfb3808cf18a5ac118e25940c9b5518 (patch) | |
tree | 0775bfc0120f9ddd9ba21b80ee06ba8371ff1659 /lisp/progmodes/vhdl-mode.el | |
parent | 19932c32039b8e61486195504a72bfc037b29658 (diff) | |
download | emacs-a21b8c5d7dfb3808cf18a5ac118e25940c9b5518.tar.gz emacs-a21b8c5d7dfb3808cf18a5ac118e25940c9b5518.tar.bz2 emacs-a21b8c5d7dfb3808cf18a5ac118e25940c9b5518.zip |
Fix minor clock skew issues
* lisp/midnight.el (clean-buffer-list):
* lisp/progmodes/vhdl-mode.el (vhdl-template-replace-header-keywords):
* lisp/net/rcirc.el (rcirc-connect):
Don’t assume that getting the current time twice in rapid
succession will yield the same date and time.
Diffstat (limited to 'lisp/progmodes/vhdl-mode.el')
-rw-r--r-- | lisp/progmodes/vhdl-mode.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 3a9185b334f..f3a7d96c63b 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el @@ -10683,8 +10683,9 @@ Include a library specification, if not already there." (replace-match "" t t) (vhdl-template-insert-date)) (goto-char beg) - (while (search-forward "<year>" end t) - (replace-match (format-time-string "%Y" nil) t t)) + (let ((year (format-time-string "%Y"))) + (while (search-forward "<year>" end t) + (replace-match year t t))) (goto-char beg) (when file-title (while (search-forward "<title string>" end t) |