1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/org
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
..
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ob-abc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ob-asymptote.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-awk.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-C.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-calc.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-clojure.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-comint.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-coq.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-core.el Add predicate proper-list-p 2018-07-09 19:00:43 -07:00
ob-css.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ditaa.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-dot.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ebnf.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-emacs-lisp.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-eval.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
ob-exp.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-forth.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-fortran.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-gnuplot.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-groovy.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-haskell.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-hledger.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-io.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-J.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-java.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-js.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-keys.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-latex.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ledger.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-lilypond.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-lisp.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-lob.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-lua.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-makefile.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-matlab.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-maxima.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-mscgen.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ocaml.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-octave.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-org.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-perl.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-picolisp.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-plantuml.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-processing.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-python.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-R.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ref.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-ruby.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-sass.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-scheme.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-screen.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-sed.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ob-shell.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-shen.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-sql.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-sqlite.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-stan.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-table.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-tangle.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob-vala.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ob.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-agenda.el Prune most-positive-fixnum from Lisp source 2018-08-22 20:46:08 -07:00
org-archive.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-attach.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
org-bbdb.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-bibtex.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-capture.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-clock.el Port recent org-clock fix to POSIX time_t 2018-03-28 15:04:50 -07:00
org-colview.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-compat.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-crypt.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-ctags.el Prefer \... to control chars in .el literals 2018-03-29 17:43:08 -07:00
org-datetree.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-docview.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-duration.el Update Org to v9.1.6 2018-01-22 16:02:55 +01:00
org-element.el Prune most-positive-fixnum from Lisp source 2018-08-22 20:46:08 -07:00
org-entities.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-eshell.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-eww.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-faces.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-feed.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-footnote.el Prune most-positive-fixnum from Lisp source 2018-08-22 20:46:08 -07:00
org-gnus.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-habit.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-id.el New (TICKS . HZ) timestamp format 2018-10-06 23:31:04 -07:00
org-indent.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
org-info.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-inlinetask.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-install.el
org-irc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-lint.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
org-list.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-macro.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
org-macs.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
org-mhe.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-mobile.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-mouse.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-pcomplete.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
org-plot.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-protocol.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-rmail.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-src.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-table.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-timer.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-version.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org-w3m.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
org.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
ox-ascii.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ox-beamer.el Update Org to v9.1.6 2018-01-22 16:02:55 +01:00
ox-html.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
ox-icalendar.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ox-latex.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
ox-man.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ox-md.el Update Org to v9.1.6 2018-01-22 16:02:55 +01:00
ox-odt.el Merge from origin/emacs-26 2018-03-28 09:38:22 -07:00
ox-org.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ox-publish.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
ox-texinfo.el ; Fix doc typos related to indefinite articles 2018-02-16 15:16:15 -05:00
ox.el Update Org to v9.1.9 2018-03-27 23:34:41 +02:00