emacs/lisp/emacs-lisp
Paul Eggert 0921dbc3ab Improve time stamp handling, and be more consistent about it.
This implements a suggestion made in:
http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00587.html
Among other things, this means timer.el no longer needs to
autoload the time-date module.
* doc/lispref/os.texi (Time of Day, Time Conversion, Time Parsing)
(Processor Run Time, Time Calculations):
Document the new behavior, plus be clearer about the old behavior.
(Idle Timers): Take advantage of new functionality.
* etc/NEWS: Document the changes.
* lisp/allout-widgets.el (allout-elapsed-time-seconds): Doc fix.
* lisp/arc-mode.el (archive-ar-summarize):
* lisp/calendar/time-date.el (seconds-to-time, days-to-time, time-since):
* lisp/emacs-lisp/timer.el (timer-relative-time, timer-event-handler)
(run-at-time, with-timeout-suspend, with-timeout-unsuspend):
* lisp/net/tramp.el (tramp-time-less-p, tramp-time-subtract):
* lisp/proced.el (proced-time-lessp):
* lisp/timezone.el (timezone-time-from-absolute):
* lisp/type-break.el (type-break-schedule, type-break-time-sum):
Simplify by using new functionality.
* lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
Do not return time values in obsolete and undocumented (HI . LO)
format; use (HI LO) instead.
* lisp/calendar/time-date.el (with-decoded-time-value):
Treat 'nil' as current time.  This is mostly for XEmacs.
(encode-time-value, with-decoded-time-value): Obsolete.
(time-add, time-subtract, time-less-p): Use no-op autoloads, for
XEmacs.  Define only if XEmacs, as they're now C builtins in Emacs.
* lisp/ldefs-boot.el: Update to match new time-date.el
* lisp/proced.el: Do not require time-date.
* src/editfns.c (invalid_time): New function.
Use it instead of 'error ("Invalid time specification")'.
(time_add, time_subtract, time_arith, Ftime_add, Ftime_less_p)
(decode_float_time, lisp_to_timespec, lisp_time_struct):
New functions.
(make_time_tail, make_time): Remove.  All uses changed to use
new functions or plain list4i.
(disassemble_lisp_time): Return effective length if successful.
Check that LOW is an integer, if it's combined with other components.
(decode_time_components): Decode into struct lisp_time, not
struct timespec, so that we can support a wide set of times
regardless of whether time_t is signed.  Decode plain numbers
as seconds since the Epoch, and nil as the current time.
(lisp_time_argument, lisp_seconds_argument, Ffloat_time):
Reimplement in terms of new functions.
(Fencode_time): Just use list2i.
(syms_of_editfns): Add time-add, time-subtract, time-less-p.
* src/keyboard.c (decode_timer): Don't allow the new formats (floating
point or nil) in timers.
* src/systime.h (LO_TIME_BITS): New constant.  Use it everywhere in
place of the magic number '16'.
(struct lisp_time): New type.
(decode_time_components): Use it.
(lisp_to_timespec): New decl.
2014-11-16 20:41:22 -08:00
..
advice.el * lisp/emacs-lisp/advice.el (ad-add-advice, defadvice): Doc fix 2014-03-10 14:16:13 -04:00
autoload.el Revert previous accidental commit 2014-11-04 21:08:12 -08:00
avl-tree.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
backquote.el * lisp/emacs-lisp/backquote.el (backquote-process): Optimize away the ,' case. 2014-11-15 23:59:50 -05:00
benchmark.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
bindat.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
byte-opt.el Merge from emacs-24; up to 2014-05-29T17:16:00Z!dmantipov@yandex.ru 2014-06-01 17:18:22 -07:00
byte-run.el Fix bootstrap failure after last change to eval-and-compile. 2014-11-09 00:14:25 -05:00
bytecomp.el Fix bootstrap failure after last change to eval-and-compile. 2014-11-09 00:14:25 -05:00
cconv.el * lisp/subr.el (track-mouse): New macro. 2014-09-27 11:52:28 -04:00
chart.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
check-declare.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
checkdoc.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
cl-extra.el Fix bootstrap failure after last change to eval-and-compile. 2014-11-09 00:14:25 -05:00
cl-indent.el Tweak regex from last change 2014-04-09 08:33:43 -07:00
cl-lib.el Consolidate x-select-text. 2014-10-01 18:13:11 -04:00
cl-macs.el Fix bootstrap failure after last change to eval-and-compile. 2014-11-09 00:14:25 -05:00
cl-seq.el * lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure. 2014-04-21 23:18:15 -04:00
cl.el Require gv early to break eager macro-expansion cycles 2014-04-23 17:28:47 -07:00
copyright.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
crm.el Some crm.el doc 2014-02-26 23:42:57 -08:00
debug.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
derived.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
disass.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
easy-mmode.el * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Use mode function 2014-08-29 22:28:19 +02:00
easymenu.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
edebug.el * lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Fix compiler-macro 2014-11-03 17:48:30 -05:00
eieio-base.el * lisp/emacs-lisp/eieio-base.el: Use lexical-binding and cl-lib. 2014-10-17 01:09:24 -04:00
eieio-core.el * lisp/emacs-lisp/eieio: A bit more cleanup, removing compat code. 2014-10-18 22:14:58 -04:00
eieio-custom.el Update from CEDET trunk. 2014-11-10 01:04:30 +01:00
eieio-datadebug.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
eieio-opt.el * lisp/emacs-lisp/eieio: A bit more cleanup, removing compat code. 2014-10-18 22:14:58 -04:00
eieio-speedbar.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
eieio.el Update from CEDET trunk. 2014-11-10 01:04:30 +01:00
eldoc.el * lisp/emacs-lisp/eldoc.el (global-eldoc-mode): Enable by default. 2014-10-15 13:32:41 -04:00
elint.el * lisp/abbrev.el (define-abbrev): Beware new meaning of fboundp. 2014-01-06 18:34:05 -05:00
elp.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
ert-x.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
ert.el Simplify and parallize test/automated Makefile 2014-06-25 22:47:10 -07:00
ewoc.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
find-func.el * find-func.el (find-function-C-source-directory): Use file-accessible-directory-p 2014-06-25 23:45:10 -07:00
float-sup.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
generic.el Spelling fixes. 2014-01-11 21:29:11 -08:00
gv.el * lisp/emacs-lisp/macroexp.el (macroexpand-1): New function. 2014-10-31 17:35:35 -04:00
helper.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
lisp-mnt.el * lisp/emacs-lisp/lisp-mnt.el: Comments. 2014-02-10 00:36:27 -08:00
lisp-mode.el Font-lock `cl-flet*', too. 2014-09-28 10:03:48 +02:00
lisp.el * lisp/emacs-lisp/lisp.el (lisp--local-variables-1): Handle `quote'. 2014-10-14 22:00:20 -04:00
macroexp.el Fix bootstrap failure after last change to eval-and-compile. 2014-11-09 00:14:25 -05:00
map-ynp.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
nadvice.el Merge from emacs-24; up to 2014-05-26T10:21:18Z!rgm@gnu.org 2014-05-25 19:28:09 -07:00
package-x.el lisp/emacs-lisp/package-x.el: Follow-up to change in package.el. 2014-03-27 01:20:50 +01:00
package.el package.el: Fix the last commit 2014-11-06 15:29:24 +09:00
pcase.el * lisp/emacs-lisp/pcase.el (pcase--split-match, pcase--app-subst-match): 2014-09-27 00:24:06 -04:00
pp.el * lisp/emacs-lisp/pp.el (pp-macroexpand-expression): Use macroexpand-1. 2014-11-02 01:46:04 -04:00
re-builder.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
regexp-opt.el * lisp/minibuffer.el (completion--sreverse): Remove. 2014-05-23 11:54:44 -04:00
regi.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
ring.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
rx.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
shadow.el * lisp/emacs-lisp/shadow.el (load-path-shadows-find): Ignore dir-locals. 2014-03-05 21:01:02 -05:00
smie.el * emacs-lisp/smie.el (smie-config--guess-1): Split from smie-config--guess. 2014-07-20 21:58:43 -04:00
subr-x.el Rename 24.5 to 25.1 2014-09-29 14:14:08 -04:00
syntax.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
tabulated-list.el Merge from emacs-24; up to 2014-07-27T09:41:59Z!ttn@gnu.org 2014-10-14 19:42:58 -07:00
tcover-ses.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
tcover-unsafep.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
testcover.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
timer.el Improve time stamp handling, and be more consistent about it. 2014-11-16 20:41:22 -08:00
tq.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
trace.el Revert previous accidental commit 2014-11-04 21:08:12 -08:00
unsafep.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
warnings.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00