emacs/lisp/emacs-lisp
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
..
advice.el * lisp/emacs-lisp/advice.el: Only use defmacro when needed 2018-09-17 14:02:05 -04:00
autoload.el * lisp/emacs-lisp/autoload.el (autoload-ignored-definitions): New var 2018-10-02 12:37:04 -04:00
avl-tree.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
backquote.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
backtrace.el Fix links in backtraces to work on advised built-ins (Bug#25393) 2018-08-27 10:43:57 -07:00
benchmark.el (benchmark-run-compiled): Make it work like 'benchmark-run' again 2018-03-27 16:19:40 -04:00
bindat.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
byte-opt.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
byte-run.el Fix the bootstrap differently, so zerop can be where it belongs 2018-07-12 10:29:28 -04:00
bytecomp.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
cconv.el Don't forget to analyze args of lambda lifted functions (Bug#30872) 2018-06-16 18:34:19 -04:00
chart.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
check-declare.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
checkdoc.el Merge from origin/emacs-26 2018-08-29 08:24:03 -07:00
cl-extra.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
cl-generic.el Prevent name clashes between CL structures and builtin types 2018-01-28 19:21:47 +01:00
cl-indent.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl-lib.el Allow setf of buffer-modified-p without argument (Bug#21201) 2018-08-27 18:54:23 -04:00
cl-macs.el Merge from origin/emacs-26 2018-10-03 09:23:16 -07:00
cl-preloaded.el Add missing module types to cl--typeof-types. 2018-01-28 20:39:58 +01:00
cl-print.el Add new command to expand all "..."s in a backtrace frame 2018-08-03 08:53:02 -07:00
cl-seq.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl.el Fix #'fun handling inside `labels' (Bug#31792) 2018-06-19 20:02:16 -04:00
copyright.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
crm.el Support list of default values in completing-read-multiple 2018-04-12 23:36:45 +03:00
cursor-sensor.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
debug.el Add a menu for backtrace-mode 2018-08-03 08:53:12 -07:00
derived.el Remove many items obsolete since Emacs 22.1 2018-03-10 19:15:56 -08:00
disass.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
easy-mmode.el Merge from origin/emacs-26 2018-07-13 09:28:15 -07:00
easymenu.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
edebug.el Prune most-positive-fixnum from Lisp source 2018-08-22 20:46:08 -07:00
eieio-base.el Further fix to eieio-persistent 2018-04-13 10:56:55 -07:00
eieio-compat.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eieio-core.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eieio-custom.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eieio-datadebug.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eieio-opt.el Define cl-type-definition button type as needed (Bug#28899) 2018-01-30 22:14:02 -05:00
eieio-speedbar.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eieio.el Merge from origin/emacs-26 2018-05-29 10:07:21 +02:00
eldoc.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
elint.el Prefer \... to control chars in .el literals 2018-03-29 17:43:08 -07:00
elp.el Merge from origin/emacs-26 2018-02-17 07:50:28 -08:00
ert-x.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ert.el Always make buttons from function names in backtraces 2018-08-03 08:53:02 -07:00
ewoc.el * lisp/emacs-lisp/ewoc.el (ewoc-goto-node): 2018-03-05 14:32:20 -05:00
faceup.el Update copyright year to 2018 2018-01-01 01:25:56 -08:00
find-func.el Fix default candidate of find-face-definition 2018-06-09 09:52:54 +03:00
float-sup.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
generator.el * lisp/multifile.el: New file, extracted from etags.el 2018-09-22 11:46:35 -04:00
generic.el Remove many items obsolete since Emacs 22.1 2018-03-10 19:15:56 -08:00
gv.el * lisp/emacs-lisp/gv.el (gv-define-setter): Silence compiler warning 2018-04-18 15:56:15 -04:00
helper.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
inline.el * lisp/emacs-lisp/inline.el: Clarify apparent typos 2018-04-04 21:15:36 -04:00
let-alist.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
lisp-mnt.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
lisp-mode.el Add backtrace-mode and use it in the debugger, ERT and Edebug 2018-08-03 08:53:02 -07:00
lisp.el Merge from origin/emacs-26 2018-01-09 15:29:25 -08:00
macroexp.el Quote a few backticks in docstrings. 2018-04-01 23:33:16 +02:00
map-ynp.el ; (read-answer-short): Fix :version setting for backport 2018-08-04 12:00:43 -04:00
map.el ; Fix some tiny doc typos 2018-03-27 17:02:04 -04:00
nadvice.el Merge from origin/emacs-26 2018-05-23 01:37:54 -07:00
package-x.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
package.el Prune most-positive-fixnum from Lisp source 2018-08-22 20:46:08 -07:00
pcase.el Allow floats as 'pcase' QPATS 2018-06-17 15:22:30 +02:00
pp.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
radix-tree.el Merge from origin/emacs-26 2018-05-29 10:07:21 +02:00
re-builder.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
regexp-opt.el * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix docstring quotes. 2018-06-24 10:57:54 -04:00
regi.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ring.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rmc.el Improve read-multiple-choice docstring (Bug#31628) 2018-05-29 08:17:32 -04:00
rx.el Merge from origin/emacs-26 2018-07-20 10:00:32 -07:00
seq.el Change name of `seqp' argument (Bug#26411) 2018-06-21 20:27:35 -04:00
shadow.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
smie.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
subr-x.el Tweak subr-x.el substring functions 2018-07-13 11:28:16 -04:00
syntax.el Remove outdated comment in syntax.el 2018-03-03 14:41:16 +02:00
tabulated-list.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tcover-ses.el Prefer \... to control chars in .el literals 2018-03-29 17:43:08 -07:00
tcover-unsafep.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
testcover.el Fix Testcover bug in handling of vectors containing dotted lists 2018-04-02 09:38:12 -07:00
text-property-search.el (text-property-search-forward): Copy edits in doc string 2018-04-22 20:34:48 +02:00
thunk.el Quieten cl-lib related compiler warnings 2018-03-22 21:40:24 -07:00
timer-list.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
timer.el New (TICKS . HZ) timestamp format 2018-10-06 23:31:04 -07:00
tq.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
trace.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
unsafep.el Remove many items obsolete since Emacs 22.1 2018-03-10 19:15:56 -08:00
warnings.el Let display-warning work during bootstrap 2018-06-12 07:40:33 -04:00