1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 00:51:50 -08:00
emacs/lisp/obsolete
Paul Eggert 93fe420942 New (TICKS . HZ) timestamp format
This follows on a suggestion by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00991.html
(Bug#32902).
* doc/lispref/buffers.texi (Modification Time):
* doc/lispref/os.texi (Processor Run Time, Time Calculations)
* doc/lispref/processes.texi (System Processes):
* doc/lispref/text.texi (Undo):
Let the "Time of Day" section cover timestamp format details.
* doc/lispref/os.texi (Time of Day):
Say that timestamp internal format should not be assumed.
Document new (ticks . hz) format.  Omit mention of seconds-to-time
since it is now just an alias for encode-time.
(Time Conversion): Document encode-time extension.
* etc/NEWS: Mention changes.
* lisp/calendar/cal-dst.el (calendar-system-time-basis): Now const.
* lisp/calendar/cal-dst.el (calendar-absolute-from-time)
(calendar-time-from-absolute)
(calendar-next-time-zone-transition):
* lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
Simplify by using bignums, (TICKS . HZ), and new encode-time.
* lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
Simplify by using bignums and new encode-time.
* lisp/calendar/parse-time.el (parse-iso8601-time-string):
Handle DST more accurately, by using new encode-time.
* lisp/calendar/time-date.el (seconds-to-time):
* lisp/calendar/timeclock.el (timeclock-seconds-to-time):
Now just an alias for encode-time.
* lisp/calendar/time-date.el (days-to-time):
* lisp/emacs-lisp/timer.el (timer--time-setter):
* lisp/net/ntlm.el (ntlm-compute-timestamp):
* lisp/obsolete/vc-arch.el (vc-arch-add-tagline):
* lisp/org/org-id.el (org-id-uuid, org-id-time-to-b36):
* lisp/tar-mode (tar-octal-time):
Don't assume timestamps default to list form.
* lisp/tar-mode.el (tar-parse-octal-long-integer):
Now an obsolete alias for tar-parse-octal-integer.
* src/keyboard.c (decode_timer): Adjust to changes to
time decoding functions elsewhere.
* src/timefns.c: Include bignum.h, limits.h.
(FASTER_TIMEFNS): New macro.
(WARN_OBSOLETE_TIMESTAMPS, CURRENT_TIME_LIST)
(timespec_hz, trillion, ztrillion):
New constants.
(make_timeval): Use TIME_T_MAX instead of its definiens.
(check_time_validity, time_add, time_subtract):
Remove.  All uses removed.
(disassemble_lisp_time): Remove; old code now folded into
decode_lisp_time.  All callers changed.
(invalid_hz, s_ns_to_double, ticks_hz_list4, mpz_set_time)
(timespec_mpz, timespec_ticks, time_hz_ticks)
(lisp_time_hz_ticks, lisp_time_seconds)
(time_form_stamp, lisp_time_form_stamp, decode_ticks_hz)
(decode_lisp_time, mpz_time, list4_to_timespec):
New functions.
(decode_float_time, decode_time_components, lisp_to_timespec):
Adjust to new struct lisp_time, which does not lose
information like the old one did.
(enum timeform): New enum.
(decode_time_components): New arg FORM.  All callers changed.
RESULT and DRESULT are now mutually exclusive; no callers need
to change because of this.
(decode_time_components, lisp_time_struct)
(lisp_seconds_argument, time_arith, make_lisp_time, Ffloat_time)
(Fencode_time):
Add support for (TICKS . HZ) form.
(DECODE_SECS_ONLY): New constant.
(lisp_time_struct): 2nd arg is now enum timeform, not int.
All callers changed.
(check_tm_member): Support bignums.m
(Fencode_time): Add new two-arg functionality.
* src/systime.h (struct lisp_time): Now ticks+hz rather than
hi+lo+us+ps, since ticks+hz does not lose info.
* test/src/systime-tests.el (time-equal-p-nil-nil):
New test.
2018-10-06 23:31:04 -07:00
..
abbrevlist.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
assoc.el Replace cl in some obsolete files 2018-03-23 16:14:48 -04:00
bruce.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cc-compat.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl-compat.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
complete.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
crisp.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
cust-print.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
erc-hecomplete.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eudcb-ph.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
fast-lock.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
gs.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gulp.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
html2text.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
iswitchb.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
landmark.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
lazy-lock.el Replace cl in some obsolete files 2018-03-23 16:14:48 -04:00
ledit.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
levents.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
lmenu.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
longlines.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
lucid.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mailpost.el Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
meese.el
messcompat.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mouse-sel.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
old-emacs-lock.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
old-whitespace.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
otodo-mode.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
patcomp.el
pc-mode.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
pc-select.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
pgg-def.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
pgg-gpg.el Replace cl in some obsolete files 2018-03-23 16:14:48 -04:00
pgg-parse.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
pgg-pgp.el Replace cl in some obsolete files 2018-03-23 16:14:48 -04:00
pgg-pgp5.el Replace cl in some obsolete files 2018-03-23 16:14:48 -04:00
pgg.el Replace cl in some obsolete files 2018-03-23 16:14:48 -04:00
rcompile.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
s-region.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sregex.el Replace cl in some obsolete files 2018-03-23 16:14:48 -04:00
starttls.el lisp/obsolete/*tls.el: Note when obsolescence was decided 2018-06-18 22:19:57 -04:00
sup-mouse.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
terminal.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tls.el lisp/obsolete/*tls.el: Note when obsolescence was decided 2018-06-18 22:19:57 -04:00
tpu-edt.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
tpu-extras.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
tpu-mapper.el Replace an obsolete alias in tpu-mapper 2018-03-13 13:49:53 -04:00
vc-arch.el New (TICKS . HZ) timestamp format 2018-10-06 23:31:04 -07:00
vi.el Quieten lisp/obsolete compilation 2018-03-23 17:05:01 -04:00
vip.el Quieten lisp/obsolete compilation 2018-03-23 17:05:01 -04:00
ws-mode.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xesam.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
yow.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00