summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/autoload.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-08-01 00:38:32 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-08-01 01:17:13 -0700
commit914cf4b91ba8bdf63cd10a66f970c396329beeab (patch)
treeedf43bdb4f21bcb3e4f3c53e32d87a898c60da38 /lisp/emacs-lisp/autoload.el
parente3b6242938fa9bcc3aebaa0eddd6aa561136dbf1 (diff)
downloademacs-914cf4b91ba8bdf63cd10a66f970c396329beeab.tar.gz
emacs-914cf4b91ba8bdf63cd10a66f970c396329beeab.tar.bz2
emacs-914cf4b91ba8bdf63cd10a66f970c396329beeab.zip
Make time arithmetic more like comparison
Since time comparison says X == X, have time arithmetic behave similarly for X - X. This should also be a bit faster due to not having to test for floats and NaNs. * src/timefns.c (time_arith, time_cmp): Simplify by not worrying about NaNs, which are not time values. (time_arith): Simplify by not worrying about subtracting nil from nil; the caller now handles this. (Ftime_subtract): Handle subtracting X from X specially.
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
0 files changed, 0 insertions, 0 deletions