1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 08:51:45 -08:00
emacs/lisp/net
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
..
ange-ftp.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
browse-url.el Merge from origin/emacs-26 2018-05-07 07:50:49 -07:00
dbus.el Merge from origin/emacs-26 2018-09-28 07:54:24 -07:00
dig.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
dns.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
eudc-bob.el EUDC: Remove XEmacs support 2018-08-15 21:43:00 -04:00
eudc-export.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eudc-hotlist.el EUDC: Remove XEmacs support 2018-08-15 21:43:00 -04:00
eudc-vars.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eudc.el EUDC: Remove XEmacs support 2018-08-15 21:43:00 -04:00
eudcb-bbdb.el EUDC: Add more BBDB >= 3 support 2018-08-15 21:43:03 -04:00
eudcb-ldap.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eudcb-mab.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
eww.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
gnutls.el Merge from emacs-26 2018-07-09 20:03:30 -04:00
goto-addr.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
hmac-def.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
hmac-md5.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
imap.el Prune most-positive-fixnum from Lisp source 2018-08-22 20:46:08 -07:00
ldap.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mailcap.el Tweak mailcap precedence so that Emacs values are heeded better 2018-04-14 14:50:14 +02:00
mairix.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
net-utils.el Remove many items obsolete since Emacs 22.1 2018-03-10 19:15:56 -08:00
netrc.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
network-stream.el Move tls.el and starttls.el to lisp/obsolete/ (Bug#31457) 2018-06-18 20:01:44 -04:00
newst-backend.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
newst-plainview.el Remove some declare-function stub definitions 2018-03-23 16:28:24 -04:00
newst-reader.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
newst-ticker.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
newst-treeview.el Remove some declare-function stub definitions 2018-03-23 16:28:24 -04:00
newsticker.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
nsm.el Merge from origin/emacs-26 2018-09-20 07:50:34 -07:00
ntlm.el New (TICKS . HZ) timestamp format 2018-10-06 23:31:04 -07:00
pop3.el Remove final uses of 'cl' in lisp/net 2018-01-23 14:42:43 -05:00
puny.el Explicitly require cl-lib where needed 2018-03-16 20:41:17 -04:00
quickurl.el Replace uses of the obsolete local-write-file-hooks 2018-03-08 20:03:13 -05:00
rcirc.el Prune most-positive-fixnum from Lisp source 2018-08-22 20:46:08 -07:00
rfc2104.el Remove final uses of 'cl' in lisp/net 2018-01-23 14:42:43 -05:00
rlogin.el * lisp/comint.el: Clean up namespace 2018-07-18 10:23:20 -04:00
sasl-cram.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sasl-digest.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sasl-ntlm.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sasl-scram-rfc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sasl.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
secrets.el Fix Bug#31846. Do not merge with master 2018-06-16 16:05:07 +02:00
shr-color.el Merge from origin/emacs-26 2018-02-09 11:12:48 -08:00
shr.el Merge from origin/emacs-26 2018-09-28 07:54:24 -07:00
sieve-manage.el Move tls.el and starttls.el to lisp/obsolete/ (Bug#31457) 2018-06-18 20:01:44 -04:00
sieve-mode.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sieve.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
snmp-mode.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
soap-client.el * lisp/net/soap-client.el (soap-type-of): Optimize for Emacs≥26 2018-07-17 22:22:41 -04:00
soap-inspect.el soap-client: Add byte-code compatibility function (Bug#31742) 2018-06-11 21:39:06 -04:00
socks.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
telnet.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tramp-adb.el Rework time-* functions in Tramp 2018-09-29 15:33:48 +02:00
tramp-archive.el Implement command completion in remote shells. (Bug#31704) 2018-06-20 12:13:56 +02:00
tramp-cache.el Rework time-* functions in Tramp 2018-09-29 15:33:48 +02:00
tramp-cmds.el Sync with Tramp 2.3.4-pre 2018-05-29 09:57:48 +02:00
tramp-compat.el Rework time-* functions in Tramp 2018-09-29 15:33:48 +02:00
tramp-ftp.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tramp-gvfs.el Rework time-* functions in Tramp 2018-09-29 15:33:48 +02:00
tramp-sh.el Use `float-time' in tramp-sh.el where needed 2018-10-01 14:34:35 +02:00
tramp-smb.el Rework time-* functions in Tramp 2018-09-29 15:33:48 +02:00
tramp-uu.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tramp.el Merge from origin/emacs-26 2018-10-03 09:25:26 -07:00
trampver.el Some reaarangements in tramp*.texi 2018-10-04 09:46:14 +02:00
webjump.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
zeroconf.el * lisp/net/zeroconf.el (dbus-debug): Declare for builds without dbus. 2018-02-26 17:00:41 -05:00