summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-12-16 09:40:22 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-12-16 11:17:27 -0800
commit73d6b19024db10b65ba368bd079223157d73e737 (patch)
treed41cc6917293e012bfcc88099b28d9681f158a04 /etc
parentf25ad39983cc3e89b007390bc0fd860f48379497 (diff)
downloademacs-73d6b19024db10b65ba368bd079223157d73e737.tar.gz
Omit temporary warning re obsolete timestamps
Do not warn about timestamps like (1 . 1000). This warning was added in Emacs 27 as a temporary transition aid, and has now served its purpose. These timestamps, which Emacs 26 and earlier treated as (HI . LO) instead of as (TICKS . HZ), were never generated by Emacs primitives, and in practice the warning seems to have been triggered only by test cases designed to generate it. * src/timefns.c (WARN_OBSOLETE_TIMESTAMPS): Remove. All uses changed to assume it’s false. (decode_lisp_time): Simplify by taking a bool instead of an integer bitmask. All uses changed.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 1d78f1f5c3b..be8b1959f11 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1152,6 +1152,12 @@ cookies set by web pages on disk.
This variable is bound to t during the preparation of a "*Help*" buffer.
+++
+** Timestamps like (1 . 1000) now work without warnings being generated.
+For example, (time-add nil '(1 . 1000)) no longer warns that the
+(1 . 1000) acts like (1000 . 1000000). This warning, which was a
+temporary transition aid for Emacs 27, has served its purpose.
+
++++
** 'date-to-time' now assumes earliest values if its argument lacks
month, day, or time. For example, (date-to-time "2021-12-04") now
assumes a time of 00:00 instead of signaling an error.