aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-10-20 19:40:09 -0700
committerPaul Eggert2017-10-20 19:42:23 -0700
commitc75f505dea6a560b825384cf3d277690f86840bf (patch)
tree5a4463599b2498f0fd59e32167f99da8d8320336
parentc73769255c70fc0dc529a9b5c73cd5b4cfb05817 (diff)
downloademacs-c75f505dea6a560b825384cf3d277690f86840bf.tar.gz
emacs-c75f505dea6a560b825384cf3d277690f86840bf.zip
Prefer nil to (current-time) when either works
* doc/misc/gnus.texi (Category Syntax): * lisp/allout-widgets.el (allout-widgets-post-command-business): * lisp/cedet/ede/detect.el (ede-detect-qtest): * lisp/cedet/pulse.el (pulse-momentary-highlight-overlay) (pulse-tick): * lisp/cedet/semantic.el (bovinate): * lisp/cedet/semantic/analyze.el: (semantic-analyze-current-symbol-default, semantic-adebug-analyze): * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-current-tag): * lisp/cedet/semantic/lex.el (semantic-lex-test): * lisp/cedet/semantic/symref/filter.el: (semantic-symref-test-count-hits-in-tag): * lisp/cedet/srecode/dictionary.el (srecode-adebug-dictionary): * lisp/cedet/srecode/map.el (srecode-adebug-maps): * lisp/desktop.el (desktop-create-buffer): * lisp/emacs-lisp/benchmark.el (benchmark-elapse): * lisp/emacs-lisp/elp.el (elp--make-wrapper): * lisp/epa.el (epa--show-key): * lisp/erc/erc.el (erc-lurker-cleanup, erc-lurker-p): * lisp/gnus/gnus-agent.el (gnus-agent-fetch-articles) (gnus-agent-expire-group-1, gnus-agent-store-article): * lisp/gnus/gnus-art.el (article-lapsed-string): * lisp/gnus/gnus-cloud.el (gnus-cloud-update-newsrc-data) (gnus-cloud-collect-full-newsrc): * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta): * lisp/gnus/gnus-html.el (gnus-html-cache-expired): * lisp/gnus/gnus-score.el (gnus-score-load-file) (gnus-decay-scores): * lisp/gnus/nndiary.el (nndiary-expired-article-p): * lisp/gnus/nnmail.el (nnmail-expired-article-p): * lisp/gnus/nnmaildir.el (nnmaildir--scan): * lisp/gnus/score-mode.el (gnus-score-edit-insert-date): * lisp/image/gravatar.el (gravatar-cache-expired): * lisp/net/newst-backend.el (newsticker--image-get) (newsticker--cache-mark-expired): * lisp/nxml/rng-maint.el (rng-time-function): * lisp/org/org-agenda.el (org-agenda-to-appt): * lisp/org/org-clock.el (org-clock-resolve-clock) (org-clock-resolve, org-resolve-clocks-if-idle): * lisp/org/org-colview.el (org-columns-edit-value, org-columns) (org-columns-compute-all, org-agenda-columns): * lisp/org/org-element.el (org-element--cache-interrupt-p) (org-element--cache-sync): * lisp/org/org-habit.el (org-habit-get-faces) (org-habit-insert-consistency-graphs): * lisp/org/org-indent.el (org-indent-add-properties): * lisp/org/org-timer.el (org-timer-start) (org-timer-pause-or-continue, org-timer-seconds) (org-timer-show-remaining-time, org-timer-set-timer): * lisp/org/org.el (org-babel-load-file, org-current-time) (org-today, org-auto-repeat-maybe, org-read-date-analyze) (org-small-year-to-year, org-goto-calendar): * lisp/org/ox.el (org-export-insert-default-template): * lisp/time.el (emacs-uptime): * lisp/type-break.el (type-break-mode, type-break) (type-break-time-warning-schedule, type-break-check): * lisp/url/url-cache.el (url-cache-expired): * lisp/url/url.el (url-retrieve-synchronously): * test/lisp/char-fold-tests.el (char-fold--speed-test): * test/manual/cedet/semantic-ia-utest.el: (semantic-symref-test-count-hits-in-tag): * test/manual/cedet/semantic-tests.el (semantic-idle-pnf-test) (semantic-lex-test-full-depth): Use nil instead of (current-time) where either will do, as nil is a bit more efficient and should have less timing error.
-rw-r--r--doc/misc/gnus.texi2
-rw-r--r--lisp/allout-widgets.el3
-rw-r--r--lisp/cedet/ede/detect.el5
-rw-r--r--lisp/cedet/pulse.el4
-rw-r--r--lisp/cedet/semantic.el5
-rw-r--r--lisp/cedet/semantic/analyze.el14
-rw-r--r--lisp/cedet/semantic/analyze/refs.el3
-rw-r--r--lisp/cedet/semantic/lex.el7
-rw-r--r--lisp/cedet/semantic/symref/filter.el2
-rw-r--r--lisp/cedet/srecode/dictionary.el3
-rw-r--r--lisp/cedet/srecode/map.el3
-rw-r--r--lisp/desktop.el3
-rw-r--r--lisp/emacs-lisp/benchmark.el8
-rw-r--r--lisp/emacs-lisp/elp.el7
-rw-r--r--lisp/epa.el2
-rw-r--r--lisp/erc/erc.el6
-rw-r--r--lisp/gnus/gnus-agent.el6
-rw-r--r--lisp/gnus/gnus-art.el3
-rw-r--r--lisp/gnus/gnus-cloud.el4
-rw-r--r--lisp/gnus/gnus-group.el2
-rw-r--r--lisp/gnus/gnus-html.el6
-rw-r--r--lisp/gnus/gnus-score.el4
-rw-r--r--lisp/gnus/nndiary.el2
-rw-r--r--lisp/gnus/nnmail.el2
-rw-r--r--lisp/gnus/nnmaildir.el2
-rw-r--r--lisp/gnus/score-mode.el2
-rw-r--r--lisp/image/gravatar.el6
-rw-r--r--lisp/net/newst-backend.el4
-rw-r--r--lisp/nxml/rng-maint.el5
-rw-r--r--lisp/org/org-agenda.el2
-rw-r--r--lisp/org/org-clock.el12
-rw-r--r--lisp/org/org-colview.el8
-rw-r--r--lisp/org/org-element.el4
-rw-r--r--lisp/org/org-habit.el4
-rw-r--r--lisp/org/org-indent.el4
-rw-r--r--lisp/org/org-timer.el14
-rw-r--r--lisp/org/org.el22
-rw-r--r--lisp/org/ox.el2
-rw-r--r--lisp/time.el2
-rw-r--r--lisp/type-break.el8
-rw-r--r--lisp/url/url-cache.el2
-rw-r--r--lisp/url/url.el3
-rw-r--r--test/lisp/char-fold-tests.el6
-rw-r--r--test/manual/cedet/semantic-ia-utest.el2
-rw-r--r--test/manual/cedet/semantic-tests.el12
45 files changed, 98 insertions, 134 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 15c6230ad0b..33078d711a2 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -18492,7 +18492,7 @@ something along the lines of the following:
18492(defun my-article-old-p () 18492(defun my-article-old-p ()
18493 "Say whether an article is old." 18493 "Say whether an article is old."
18494 (< (time-to-days (date-to-time (mail-header-date gnus-headers))) 18494 (< (time-to-days (date-to-time (mail-header-date gnus-headers)))
18495 (- (time-to-days (current-time)) gnus-agent-expire-days))) 18495 (- (time-to-days nil) gnus-agent-expire-days)))
18496@end lisp 18496@end lisp
18497 18497
18498with the predicate then defined as: 18498with the predicate then defined as:
diff --git a/lisp/allout-widgets.el b/lisp/allout-widgets.el
index 4338181c340..9fa927ddcb3 100644
--- a/lisp/allout-widgets.el
+++ b/lisp/allout-widgets.el
@@ -768,8 +768,7 @@ Optional RECURSING is for internal use, to limit recursion."
768 768
769 (if allout-widgets-time-decoration-activity 769 (if allout-widgets-time-decoration-activity
770 (setq allout-widgets-last-decoration-timing 770 (setq allout-widgets-last-decoration-timing
771 (list (allout-elapsed-time-seconds (current-time) 771 (list (allout-elapsed-time-seconds nil start-time)
772 start-time)
773 allout-widgets-changes-record))) 772 allout-widgets-changes-record)))
774 773
775 (setq allout-widgets-changes-record nil) 774 (setq allout-widgets-changes-record nil)
diff --git a/lisp/cedet/ede/detect.el b/lisp/cedet/ede/detect.el
index 6240d465982..25426dfeba6 100644
--- a/lisp/cedet/ede/detect.el
+++ b/lisp/cedet/ede/detect.el
@@ -195,11 +195,10 @@ Return a cons cell:
195 "Run a quick test for autodetecting on BUFFER." 195 "Run a quick test for autodetecting on BUFFER."
196 (interactive) 196 (interactive)
197 (let ((start (current-time)) 197 (let ((start (current-time))
198 (ans (ede-detect-directory-for-project default-directory)) 198 (ans (ede-detect-directory-for-project default-directory)))
199 (end (current-time)))
200 (if ans 199 (if ans
201 (message "Project found in %d sec @ %s of type %s" 200 (message "Project found in %d sec @ %s of type %s"
202 (float-time (time-subtract end start)) 201 (float-time (time-subtract nil start))
203 (car ans) 202 (car ans)
204 (eieio-object-name-string (cdr ans))) 203 (eieio-object-name-string (cdr ans)))
205 (message "No Project found.") ))) 204 (message "No Project found.") )))
diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el
index 51df5e9ffe4..3554ee242b8 100644
--- a/lisp/cedet/pulse.el
+++ b/lisp/cedet/pulse.el
@@ -196,11 +196,11 @@ Optional argument FACE specifies the face to do the highlighting."
196 (pulse-reset-face face) 196 (pulse-reset-face face)
197 (setq pulse-momentary-timer 197 (setq pulse-momentary-timer
198 (run-with-timer 0 pulse-delay #'pulse-tick 198 (run-with-timer 0 pulse-delay #'pulse-tick
199 (time-add (current-time) 199 (time-add nil
200 (* pulse-delay pulse-iterations))))))) 200 (* pulse-delay pulse-iterations)))))))
201 201
202(defun pulse-tick (stop-time) 202(defun pulse-tick (stop-time)
203 (if (time-less-p (current-time) stop-time) 203 (if (time-less-p nil stop-time)
204 (pulse-lighten-highlight) 204 (pulse-lighten-highlight)
205 (pulse-momentary-unhighlight))) 205 (pulse-momentary-unhighlight)))
206 206
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index 682ac89978f..cae6e049f44 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -389,10 +389,9 @@ the output buffer."
389 (if clear (semantic-clear-toplevel-cache)) 389 (if clear (semantic-clear-toplevel-cache))
390 (if (eq clear '-) (setq clear -1)) 390 (if (eq clear '-) (setq clear -1))
391 (let* ((start (current-time)) 391 (let* ((start (current-time))
392 (out (semantic-fetch-tags)) 392 (out (semantic-fetch-tags)))
393 (end (current-time)))
394 (message "Retrieving tags took %.2f seconds." 393 (message "Retrieving tags took %.2f seconds."
395 (semantic-elapsed-time start end)) 394 (semantic-elapsed-time start nil))
396 (when (or (null clear) (not (listp clear)) 395 (when (or (null clear) (not (listp clear))
397 (and (numberp clear) (< 0 clear))) 396 (and (numberp clear) (< 0 clear)))
398 (pop-to-buffer "*Parser Output*") 397 (pop-to-buffer "*Parser Output*")
diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el
index 517e1be8eca..b528487887a 100644
--- a/lisp/cedet/semantic/analyze.el
+++ b/lisp/cedet/semantic/analyze.el
@@ -440,12 +440,11 @@ to provide a large number of non-cached analysis for filtering symbols."
440(defun semantic-analyze-current-symbol-default (analyzehookfcn position) 440(defun semantic-analyze-current-symbol-default (analyzehookfcn position)
441 "Call ANALYZEHOOKFCN on the analyzed symbol at POSITION." 441 "Call ANALYZEHOOKFCN on the analyzed symbol at POSITION."
442 (let* ((semantic-analyze-error-stack nil) 442 (let* ((semantic-analyze-error-stack nil)
443 (LLstart (current-time)) 443 ;; (LLstart (current-time))
444 (prefixandbounds (semantic-ctxt-current-symbol-and-bounds (or position (point)))) 444 (prefixandbounds (semantic-ctxt-current-symbol-and-bounds (or position (point))))
445 (prefix (car prefixandbounds)) 445 (prefix (car prefixandbounds))
446 (bounds (nth 2 prefixandbounds)) 446 (bounds (nth 2 prefixandbounds))
447 (scope (semantic-calculate-scope position)) 447 (scope (semantic-calculate-scope position))
448 (end nil)
449 ) 448 )
450 ;; Only do work if we have bounds (meaning a prefix to complete) 449 ;; Only do work if we have bounds (meaning a prefix to complete)
451 (when bounds 450 (when bounds
@@ -464,15 +463,13 @@ to provide a large number of non-cached analysis for filtering symbols."
464 prefix scope 'prefixtypes)) 463 prefix scope 'prefixtypes))
465 (error (semantic-analyze-push-error err)))) 464 (error (semantic-analyze-push-error err))))
466 465
467 (setq end (current-time)) 466 ;;(message "Analysis took %.2f sec" (semantic-elapsed-time LLstart nil))
468 ;;(message "Analysis took %.2f sec" (semantic-elapsed-time LLstart end))
469 467
470 ) 468 )
471 (when prefix 469 (when prefix
472 (prog1 470 (prog1
473 (funcall analyzehookfcn (car bounds) (cdr bounds) prefix) 471 (funcall analyzehookfcn (car bounds) (cdr bounds) prefix)
474 ;;(setq end (current-time)) 472 ;;(message "hookfcn took %.5f sec" (semantic-elapsed-time LLstart nil))
475 ;;(message "hookfcn took %.5f sec" (semantic-elapsed-time LLstart end))
476 ) 473 )
477 474
478 ))) 475 )))
@@ -723,12 +720,11 @@ Optional argument CTXT is the context to show."
723 (interactive) 720 (interactive)
724 (require 'data-debug) 721 (require 'data-debug)
725 (let ((start (current-time)) 722 (let ((start (current-time))
726 (ctxt (or ctxt (semantic-analyze-current-context))) 723 (ctxt (or ctxt (semantic-analyze-current-context))))
727 (end (current-time)))
728 (if (not ctxt) 724 (if (not ctxt)
729 (message "No Analyzer Results") 725 (message "No Analyzer Results")
730 (message "Analysis took %.2f seconds." 726 (message "Analysis took %.2f seconds."
731 (semantic-elapsed-time start end)) 727 (semantic-elapsed-time start nil))
732 (semantic-analyze-pulse ctxt) 728 (semantic-analyze-pulse ctxt)
733 (if ctxt 729 (if ctxt
734 (progn 730 (progn
diff --git a/lisp/cedet/semantic/analyze/refs.el b/lisp/cedet/semantic/analyze/refs.el
index 55fcd830433..e7a4424d6ff 100644
--- a/lisp/cedet/semantic/analyze/refs.el
+++ b/lisp/cedet/semantic/analyze/refs.el
@@ -317,9 +317,8 @@ Only works for tags in the global namespace."
317 (let* ((tag (semantic-current-tag)) 317 (let* ((tag (semantic-current-tag))
318 (start (current-time)) 318 (start (current-time))
319 (sac (semantic-analyze-tag-references tag)) 319 (sac (semantic-analyze-tag-references tag))
320 (end (current-time))
321 ) 320 )
322 (message "Analysis took %.2f seconds." (semantic-elapsed-time start end)) 321 (message "Analysis took %.2f seconds." (semantic-elapsed-time start nil))
323 (if sac 322 (if sac
324 (progn 323 (progn
325 (require 'eieio-datadebug) 324 (require 'eieio-datadebug)
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el
index eec6e6762f3..835888db2ad 100644
--- a/lisp/cedet/semantic/lex.el
+++ b/lisp/cedet/semantic/lex.el
@@ -657,10 +657,9 @@ If universal argument ARG, then try the whole buffer."
657 (let* ((start (current-time)) 657 (let* ((start (current-time))
658 (result (semantic-lex 658 (result (semantic-lex
659 (if arg (point-min) (point)) 659 (if arg (point-min) (point))
660 (point-max))) 660 (point-max))))
661 (end (current-time)))
662 (message "Elapsed Time: %.2f seconds." 661 (message "Elapsed Time: %.2f seconds."
663 (semantic-elapsed-time start end)) 662 (semantic-elapsed-time start nil))
664 (pop-to-buffer "*Lexer Output*") 663 (pop-to-buffer "*Lexer Output*")
665 (require 'pp) 664 (require 'pp)
666 (erase-buffer) 665 (erase-buffer)
@@ -810,7 +809,7 @@ analyzer which might mistake a number for as a symbol."
810 tmp-start (car semantic-lex-token-stream))) 809 tmp-start (car semantic-lex-token-stream)))
811 (setq tmp-start semantic-lex-end-point) 810 (setq tmp-start semantic-lex-end-point)
812 (goto-char semantic-lex-end-point) 811 (goto-char semantic-lex-end-point)
813 ;;(when (> (semantic-elapsed-time starttime (current-time)) 812 ;;(when (> (semantic-elapsed-time starttime nil)
814 ;; semantic-lex-timeout) 813 ;; semantic-lex-timeout)
815 ;; (error "Timeout during lex at char %d" (point))) 814 ;; (error "Timeout during lex at char %d" (point)))
816 (semantic-throw-on-input 'lex) 815 (semantic-throw-on-input 'lex)
diff --git a/lisp/cedet/semantic/symref/filter.el b/lisp/cedet/semantic/symref/filter.el
index 53be5e0defb..d5766af9b6e 100644
--- a/lisp/cedet/semantic/symref/filter.el
+++ b/lisp/cedet/semantic/symref/filter.el
@@ -103,7 +103,7 @@ tag that contains point, and return that."
103 (when (called-interactively-p 'interactive) 103 (when (called-interactively-p 'interactive)
104 (message "Found %d occurrences of %s in %.2f seconds" 104 (message "Found %d occurrences of %s in %.2f seconds"
105 Lcount (semantic-tag-name target) 105 Lcount (semantic-tag-name target)
106 (semantic-elapsed-time start (current-time)))) 106 (semantic-elapsed-time start nil)))
107 Lcount))) 107 Lcount)))
108 108
109(defun semantic-symref-rename-local-variable () 109(defun semantic-symref-rename-local-variable ()
diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el
index 4507581621d..6c8fd655d7b 100644
--- a/lisp/cedet/srecode/dictionary.el
+++ b/lisp/cedet/srecode/dictionary.el
@@ -612,10 +612,9 @@ STATE is the current compiler state."
612 (srecode-get-mode-table modesym)) 612 (srecode-get-mode-table modesym))
613 (error "No table found for mode %S" modesym))) 613 (error "No table found for mode %S" modesym)))
614 (dict (srecode-create-dictionary (current-buffer))) 614 (dict (srecode-create-dictionary (current-buffer)))
615 (end (current-time))
616 ) 615 )
617 (message "Creating a dictionary took %.2f seconds." 616 (message "Creating a dictionary took %.2f seconds."
618 (semantic-elapsed-time start end)) 617 (semantic-elapsed-time start nil))
619 (data-debug-new-buffer "*SRECODE ADEBUG*") 618 (data-debug-new-buffer "*SRECODE ADEBUG*")
620 (data-debug-insert-object-slots dict "*"))) 619 (data-debug-insert-object-slots dict "*")))
621 620
diff --git a/lisp/cedet/srecode/map.el b/lisp/cedet/srecode/map.el
index 10541f61a9e..5b5d1fdd47d 100644
--- a/lisp/cedet/srecode/map.el
+++ b/lisp/cedet/srecode/map.el
@@ -224,10 +224,9 @@ Optional argument RESET forces a reset of the current map."
224 (require 'data-debug) 224 (require 'data-debug)
225 (let ((start (current-time)) 225 (let ((start (current-time))
226 (p (srecode-get-maps t)) ;; Time the reset. 226 (p (srecode-get-maps t)) ;; Time the reset.
227 (end (current-time))
228 ) 227 )
229 (message "Updating the map took %.2f seconds." 228 (message "Updating the map took %.2f seconds."
230 (semantic-elapsed-time start end)) 229 (semantic-elapsed-time start nil))
231 (data-debug-new-buffer "*SRECODE ADEBUG*") 230 (data-debug-new-buffer "*SRECODE ADEBUG*")
232 (data-debug-insert-stuff-list p "*"))) 231 (data-debug-insert-stuff-list p "*")))
233 232
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 73228ce040b..66e2aef9798 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -1554,8 +1554,7 @@ and try to load that."
1554 (setq buffer-display-time 1554 (setq buffer-display-time
1555 (if buffer-display-time 1555 (if buffer-display-time
1556 (time-add buffer-display-time 1556 (time-add buffer-display-time
1557 (time-subtract (current-time) 1557 (time-subtract nil desktop-file-modtime))
1558 desktop-file-modtime))
1559 (current-time))) 1558 (current-time)))
1560 (unless (< desktop-file-version 208) ; Don't misinterpret any old custom args 1559 (unless (< desktop-file-version 208) ; Don't misinterpret any old custom args
1561 (dolist (record compacted-vars) 1560 (dolist (record compacted-vars)
diff --git a/lisp/emacs-lisp/benchmark.el b/lisp/emacs-lisp/benchmark.el
index 445e78b427c..02db21a7e53 100644
--- a/lisp/emacs-lisp/benchmark.el
+++ b/lisp/emacs-lisp/benchmark.el
@@ -34,13 +34,11 @@
34(defmacro benchmark-elapse (&rest forms) 34(defmacro benchmark-elapse (&rest forms)
35 "Return the time in seconds elapsed for execution of FORMS." 35 "Return the time in seconds elapsed for execution of FORMS."
36 (declare (indent 0) (debug t)) 36 (declare (indent 0) (debug t))
37 (let ((t1 (make-symbol "t1")) 37 (let ((t1 (make-symbol "t1")))
38 (t2 (make-symbol "t2"))) 38 `(let (,t1)
39 `(let (,t1 ,t2)
40 (setq ,t1 (current-time)) 39 (setq ,t1 (current-time))
41 ,@forms 40 ,@forms
42 (setq ,t2 (current-time)) 41 (float-time (time-subtract nil ,t1)))))
43 (float-time (time-subtract ,t2 ,t1)))))
44 42
45;;;###autoload 43;;;###autoload
46(defmacro benchmark-run (&optional repetitions &rest forms) 44(defmacro benchmark-run (&optional repetitions &rest forms)
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el
index 2be9c9da865..905718dad68 100644
--- a/lisp/emacs-lisp/elp.el
+++ b/lisp/emacs-lisp/elp.el
@@ -382,14 +382,13 @@ original definition, use \\[elp-restore-function] or \\[elp-restore-all]."
382 ;; and return the results. 382 ;; and return the results.
383 (setq result (apply func args)) 383 (setq result (apply func args))
384 ;; we are recording times 384 ;; we are recording times
385 (let (enter-time exit-time) 385 (let (enter-time)
386 ;; increment the call-counter 386 ;; increment the call-counter
387 (cl-incf (aref info 0)) 387 (cl-incf (aref info 0))
388 (setq enter-time (current-time) 388 (setq enter-time (current-time)
389 result (apply func args) 389 result (apply func args))
390 exit-time (current-time))
391 ;; calculate total time in function 390 ;; calculate total time in function
392 (cl-incf (aref info 1) (elp-elapsed-time enter-time exit-time)) 391 (cl-incf (aref info 1) (elp-elapsed-time enter-time nil))
393 )) 392 ))
394 ;; turn off recording if this is the master function 393 ;; turn off recording if this is the master function
395 (if (and elp-master 394 (if (and elp-master
diff --git a/lisp/epa.el b/lisp/epa.el
index 6e908e1aa3b..aca9aaa7d22 100644
--- a/lisp/epa.el
+++ b/lisp/epa.el
@@ -561,7 +561,7 @@ If SECRET is non-nil, list secret keys instead of public keys."
561 (epg-sub-key-creation-time (car pointer))) 561 (epg-sub-key-creation-time (car pointer)))
562 (error "????-??-??")) 562 (error "????-??-??"))
563 (if (epg-sub-key-expiration-time (car pointer)) 563 (if (epg-sub-key-expiration-time (car pointer))
564 (format (if (time-less-p (current-time) 564 (format (if (time-less-p nil
565 (epg-sub-key-expiration-time 565 (epg-sub-key-expiration-time
566 (car pointer))) 566 (car pointer)))
567 "\n\tExpires: %s" 567 "\n\tExpires: %s"
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 0e56b732d81..fdc4a647777 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -2548,9 +2548,7 @@ consumption for long-lived IRC or Emacs sessions."
2548 (maphash 2548 (maphash
2549 (lambda (nick last-PRIVMSG-time) 2549 (lambda (nick last-PRIVMSG-time)
2550 (when 2550 (when
2551 (> (float-time (time-subtract 2551 (> (float-time (time-subtract nil last-PRIVMSG-time))
2552 (current-time)
2553 last-PRIVMSG-time))
2554 erc-lurker-threshold-time) 2552 erc-lurker-threshold-time)
2555 (remhash nick hash))) 2553 (remhash nick hash)))
2556 hash) 2554 hash)
@@ -2617,7 +2615,7 @@ server within `erc-lurker-threshold-time'. See also
2617 (gethash server erc-lurker-state (make-hash-table))))) 2615 (gethash server erc-lurker-state (make-hash-table)))))
2618 (or (null last-PRIVMSG-time) 2616 (or (null last-PRIVMSG-time)
2619 (> (float-time 2617 (> (float-time
2620 (time-subtract (current-time) last-PRIVMSG-time)) 2618 (time-subtract nil last-PRIVMSG-time))
2621 erc-lurker-threshold-time)))) 2619 erc-lurker-threshold-time))))
2622 2620
2623(defcustom erc-common-server-suffixes 2621(defcustom erc-common-server-suffixes
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index daf578180f2..6e7cc57a4cc 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -1513,7 +1513,7 @@ downloaded into the agent."
1513 (let* ((fetched-articles (list nil)) 1513 (let* ((fetched-articles (list nil))
1514 (tail-fetched-articles fetched-articles) 1514 (tail-fetched-articles fetched-articles)
1515 (dir (gnus-agent-group-pathname group)) 1515 (dir (gnus-agent-group-pathname group))
1516 (date (time-to-days (current-time))) 1516 (date (time-to-days nil))
1517 (case-fold-search t) 1517 (case-fold-search t)
1518 pos crosses 1518 pos crosses
1519 (file-name-coding-system nnmail-pathname-coding-system)) 1519 (file-name-coding-system nnmail-pathname-coding-system))
@@ -3089,7 +3089,7 @@ FORCE is equivalent to setting the expiration predicates to true."
3089 (nov-entries-deleted 0) 3089 (nov-entries-deleted 0)
3090 (info (gnus-get-info group)) 3090 (info (gnus-get-info group))
3091 (alist gnus-agent-article-alist) 3091 (alist gnus-agent-article-alist)
3092 (day (- (time-to-days (current-time)) 3092 (day (- (time-to-days nil)
3093 (gnus-agent-find-parameter group 'agent-days-until-old))) 3093 (gnus-agent-find-parameter group 'agent-days-until-old)))
3094 (specials (if (and alist 3094 (specials (if (and alist
3095 (not force)) 3095 (not force))
@@ -3824,7 +3824,7 @@ has been fetched."
3824 ;; be expired later. 3824 ;; be expired later.
3825 (gnus-agent-load-alist group) 3825 (gnus-agent-load-alist group)
3826 (gnus-agent-save-alist group (list article) 3826 (gnus-agent-save-alist group (list article)
3827 (time-to-days (current-time)))))) 3827 (time-to-days nil)))))
3828 3828
3829(defun gnus-agent-regenerate-group (group &optional reread) 3829(defun gnus-agent-regenerate-group (group &optional reread)
3830 "Regenerate GROUP. 3830 "Regenerate GROUP.
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index c130dc1b6c6..97aa878ab63 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -3628,8 +3628,7 @@ possible values."
3628(defun article-lapsed-string (time &optional max-segments) 3628(defun article-lapsed-string (time &optional max-segments)
3629 ;; If the date is seriously mangled, the timezone functions are 3629 ;; If the date is seriously mangled, the timezone functions are
3630 ;; liable to bug out, so we ignore all errors. 3630 ;; liable to bug out, so we ignore all errors.
3631 (let* ((now (current-time)) 3631 (let* ((real-time (time-subtract nil time))
3632 (real-time (time-subtract now time))
3633 (real-sec (and real-time 3632 (real-sec (and real-time
3634 (+ (* (float (car real-time)) 65536) 3633 (+ (* (float (car real-time)) 65536)
3635 (cadr real-time)))) 3634 (cadr real-time))))
diff --git a/lisp/gnus/gnus-cloud.el b/lisp/gnus/gnus-cloud.el
index 5ea2d691f15..c57576cf3c7 100644
--- a/lisp/gnus/gnus-cloud.el
+++ b/lisp/gnus/gnus-cloud.el
@@ -219,7 +219,7 @@ easy interactive way to set this from the Server buffer."
219Use old data if FORCE-OLDER is not nil." 219Use old data if FORCE-OLDER is not nil."
220 (let* ((contents (plist-get elem :contents)) 220 (let* ((contents (plist-get elem :contents))
221 (date (or (plist-get elem :timestamp) "0")) 221 (date (or (plist-get elem :timestamp) "0"))
222 (now (gnus-cloud-timestamp (current-time))) 222 (now (gnus-cloud-timestamp nil))
223 (newer (string-lessp date now)) 223 (newer (string-lessp date now))
224 (group-info (gnus-get-info group))) 224 (group-info (gnus-get-info group)))
225 (if (and contents 225 (if (and contents
@@ -486,7 +486,7 @@ Otherwise, returns the Gnus Cloud data chunks."
486 (gnus-method-to-server 486 (gnus-method-to-server
487 (gnus-find-method-for-group (gnus-info-group info)))) 487 (gnus-find-method-for-group (gnus-info-group info))))
488 488
489 (push `(:type :newsrc-data :name ,(gnus-info-group info) :contents ,info :timestamp ,(gnus-cloud-timestamp (current-time))) 489 (push `(:type :newsrc-data :name ,(gnus-info-group info) :contents ,info :timestamp ,(gnus-cloud-timestamp nil))
490 infos))) 490 infos)))
491 infos)) 491 infos))
492 492
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 985efe6272f..1174f90e1ad 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -4560,7 +4560,7 @@ or `gnus-group-catchup-group-hook'."
4560 "Return the offset in seconds from the timestamp for GROUP to the current time, as a floating point number." 4560 "Return the offset in seconds from the timestamp for GROUP to the current time, as a floating point number."
4561 (let* ((time (or (gnus-group-timestamp group) 4561 (let* ((time (or (gnus-group-timestamp group)
4562 (list 0 0))) 4562 (list 0 0)))
4563 (delta (time-subtract (current-time) time))) 4563 (delta (time-subtract nil time)))
4564 (+ (* (nth 0 delta) 65536.0) 4564 (+ (* (nth 0 delta) 65536.0)
4565 (nth 1 delta)))) 4565 (nth 1 delta))))
4566 4566
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index 6d529558f73..7fa36359f67 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -99,11 +99,7 @@ fit these criteria."
99 (not (file-exists-p (url-cache-create-filename url)))) 99 (not (file-exists-p (url-cache-create-filename url))))
100 (t (let ((cache-time (url-is-cached url))) 100 (t (let ((cache-time (url-is-cached url)))
101 (if cache-time 101 (if cache-time
102 (time-less-p 102 (time-less-p (time-add cache-time ttl) nil)
103 (time-add
104 cache-time
105 ttl)
106 (current-time))
107 t))))) 103 t)))))
108 104
109;;;###autoload 105;;;###autoload
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el
index 976ac9f7f35..bc11aa528fa 100644
--- a/lisp/gnus/gnus-score.el
+++ b/lisp/gnus/gnus-score.el
@@ -1238,7 +1238,7 @@ If FORMAT, also format the current score file."
1238 (or (not decay) 1238 (or (not decay)
1239 (gnus-decay-scores alist decay))) 1239 (gnus-decay-scores alist decay)))
1240 (gnus-score-set 'touched '(t) alist) 1240 (gnus-score-set 'touched '(t) alist)
1241 (gnus-score-set 'decay (list (time-to-days (current-time))) alist)) 1241 (gnus-score-set 'decay (list (time-to-days nil)) alist))
1242 ;; We do not respect eval and files atoms from global score 1242 ;; We do not respect eval and files atoms from global score
1243 ;; files. 1243 ;; files.
1244 (when (and files (not global)) 1244 (when (and files (not global))
@@ -3062,7 +3062,7 @@ If ADAPT, return the home adaptive file instead."
3062 3062
3063(defun gnus-decay-scores (alist day) 3063(defun gnus-decay-scores (alist day)
3064 "Decay non-permanent scores in ALIST." 3064 "Decay non-permanent scores in ALIST."
3065 (let ((times (- (time-to-days (current-time)) day)) 3065 (let ((times (- (time-to-days nil) day))
3066 kill entry updated score n) 3066 kill entry updated score n)
3067 (unless (zerop times) ;Done decays today already? 3067 (unless (zerop times) ;Done decays today already?
3068 (while (setq entry (pop alist)) 3068 (while (setq entry (pop alist))
diff --git a/lisp/gnus/nndiary.el b/lisp/gnus/nndiary.el
index 2589fa80893..ca4dca4189d 100644
--- a/lisp/gnus/nndiary.el
+++ b/lisp/gnus/nndiary.el
@@ -1532,7 +1532,7 @@ all. This may very well take some time.")
1532 ;; past. A permanent schedule never expires. 1532 ;; past. A permanent schedule never expires.
1533 (and sched 1533 (and sched
1534 (setq sched (nndiary-last-occurrence sched)) 1534 (setq sched (nndiary-last-occurrence sched))
1535 (time-less-p sched (current-time)))) 1535 (time-less-p sched nil)))
1536 ;; else 1536 ;; else
1537 (nnheader-report 'nndiary "Could not read file %s" file) 1537 (nnheader-report 'nndiary "Could not read file %s" file)
1538 nil) 1538 nil)
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index db5415cf9f7..ad58d292082 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -1883,7 +1883,7 @@ If TIME is nil, then return the cutoff time for oldness instead."
1883 (setq days (days-to-time days)) 1883 (setq days (days-to-time days))
1884 ;; Compare the time with the current time. 1884 ;; Compare the time with the current time.
1885 (if (null time) 1885 (if (null time)
1886 (time-subtract (current-time) days) 1886 (time-subtract nil days)
1887 (ignore-errors (time-less-p days (time-since time))))))))) 1887 (ignore-errors (time-less-p days (time-since time)))))))))
1888 1888
1889(declare-function gnus-group-mark-article-read "gnus-group" (group article)) 1889(declare-function gnus-group-mark-article-read "gnus-group" (group article))
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el
index 272240f5a9f..708a3426af1 100644
--- a/lisp/gnus/nnmaildir.el
+++ b/lisp/gnus/nnmaildir.el
@@ -814,7 +814,7 @@ This variable is set by `nnmaildir-request-article'.")
814 (when (or isnew nattr) 814 (when (or isnew nattr)
815 (dolist (file (funcall ls ndir nil "\\`[^.]" 'nosort)) 815 (dolist (file (funcall ls ndir nil "\\`[^.]" 'nosort))
816 (setq x (concat ndir file)) 816 (setq x (concat ndir file))
817 (and (time-less-p (nth 5 (file-attributes x)) (current-time)) 817 (and (time-less-p (nth 5 (file-attributes x)) nil)
818 (rename-file x (concat cdir (nnmaildir--ensure-suffix file))))) 818 (rename-file x (concat cdir (nnmaildir--ensure-suffix file)))))
819 (setf (nnmaildir--grp-new group) nattr)) 819 (setf (nnmaildir--grp-new group) nattr))
820 (setq cattr (nth 5 (file-attributes cdir))) 820 (setq cattr (nth 5 (file-attributes cdir)))
diff --git a/lisp/gnus/score-mode.el b/lisp/gnus/score-mode.el
index 098ecd5dc3d..3e7428493e4 100644
--- a/lisp/gnus/score-mode.el
+++ b/lisp/gnus/score-mode.el
@@ -85,7 +85,7 @@ This mode is an extended emacs-lisp mode.
85(defun gnus-score-edit-insert-date () 85(defun gnus-score-edit-insert-date ()
86 "Insert date in numerical format." 86 "Insert date in numerical format."
87 (interactive) 87 (interactive)
88 (princ (time-to-days (current-time)) (current-buffer))) 88 (princ (time-to-days nil) (current-buffer)))
89 89
90(defun gnus-score-pretty-print () 90(defun gnus-score-pretty-print ()
91 "Format the current score file." 91 "Format the current score file."
diff --git a/lisp/image/gravatar.el b/lisp/image/gravatar.el
index 6628195cfa6..6173c8527eb 100644
--- a/lisp/image/gravatar.el
+++ b/lisp/image/gravatar.el
@@ -77,11 +77,7 @@
77 (not (file-exists-p (url-cache-create-filename url)))) 77 (not (file-exists-p (url-cache-create-filename url))))
78 (t (let ((cache-time (url-is-cached url))) 78 (t (let ((cache-time (url-is-cached url)))
79 (if cache-time 79 (if cache-time
80 (time-less-p 80 (time-less-p (time-add cache-time gravatar-cache-ttl) nil)
81 (time-add
82 cache-time
83 gravatar-cache-ttl)
84 (current-time))
85 t))))) 81 t)))))
86 82
87(defun gravatar-get-data () 83(defun gravatar-get-data ()
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el
index 5f68dea1be7..7a73d4688aa 100644
--- a/lisp/net/newst-backend.el
+++ b/lisp/net/newst-backend.el
@@ -1807,7 +1807,7 @@ If the file does no exist or if it is older than 24 hours
1807download it from URL first." 1807download it from URL first."
1808 (let ((image-name (concat directory feed-name))) 1808 (let ((image-name (concat directory feed-name)))
1809 (if (and (file-exists-p image-name) 1809 (if (and (file-exists-p image-name)
1810 (time-less-p (current-time) 1810 (time-less-p nil
1811 (time-add (nth 5 (file-attributes image-name)) 1811 (time-add (nth 5 (file-attributes image-name))
1812 (seconds-to-time 86400)))) 1812 (seconds-to-time 86400))))
1813 (newsticker--debug-msg "%s: Getting image for %s skipped" 1813 (newsticker--debug-msg "%s: Getting image for %s skipped"
@@ -2004,7 +2004,7 @@ older than TIME."
2004 (when (eq (newsticker--age item) old-age) 2004 (when (eq (newsticker--age item) old-age)
2005 (let ((exp-time (time-add (newsticker--time item) 2005 (let ((exp-time (time-add (newsticker--time item)
2006 (seconds-to-time time)))) 2006 (seconds-to-time time))))
2007 (when (time-less-p exp-time (current-time)) 2007 (when (time-less-p exp-time nil)
2008 (newsticker--debug-msg 2008 (newsticker--debug-msg
2009 "Item `%s' from %s has expired on %s" 2009 "Item `%s' from %s has expired on %s"
2010 (newsticker--title item) 2010 (newsticker--title item)
diff --git a/lisp/nxml/rng-maint.el b/lisp/nxml/rng-maint.el
index 85614822be8..8d85f2ea06b 100644
--- a/lisp/nxml/rng-maint.el
+++ b/lisp/nxml/rng-maint.el
@@ -226,11 +226,10 @@
226 226
227(defun rng-time-function (function &rest args) 227(defun rng-time-function (function &rest args)
228 (let* ((start (current-time)) 228 (let* ((start (current-time))
229 (val (apply function args)) 229 (val (apply function args)))
230 (end (current-time)))
231 (message "%s ran in %g seconds" 230 (message "%s ran in %g seconds"
232 function 231 function
233 (float-time (time-subtract end start))) 232 (float-time (time-subtract nil start)))
234 val)) 233 val))
235 234
236(defun rng-time-tokenize-buffer () 235(defun rng-time-tokenize-buffer ()
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index cf7a4dbf38b..49519471b38 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -10153,7 +10153,7 @@ to override `appt-message-warning-time'."
10153 ;; time and without date as argument, so it may pass wrong 10153 ;; time and without date as argument, so it may pass wrong
10154 ;; information otherwise 10154 ;; information otherwise
10155 (today (org-date-to-gregorian 10155 (today (org-date-to-gregorian
10156 (time-to-days (current-time)))) 10156 (time-to-days nil)))
10157 (org-agenda-restrict nil) 10157 (org-agenda-restrict nil)
10158 (files (org-agenda-files 'unrestricted)) entries file 10158 (files (org-agenda-files 'unrestricted)) entries file
10159 (org-agenda-buffer nil)) 10159 (org-agenda-buffer nil))
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el
index 9dc501500b1..eb7080bb8be 100644
--- a/lisp/org/org-clock.el
+++ b/lisp/org/org-clock.el
@@ -950,7 +950,7 @@ If necessary, clock-out of the currently active clock."
950 (unless (org-is-active-clock clock) 950 (unless (org-is-active-clock clock)
951 (org-clock-clock-in clock t)))) 951 (org-clock-clock-in clock t))))
952 952
953 ((not (time-less-p resolve-to (current-time))) 953 ((not (time-less-p resolve-to nil))
954 (error "RESOLVE-TO must refer to a time in the past")) 954 (error "RESOLVE-TO must refer to a time in the past"))
955 955
956 (t 956 (t
@@ -1052,7 +1052,7 @@ to be CLOCKED OUT."))))
1052 (and (not (memq char-pressed '(?i ?q))) char-pressed))))) 1052 (and (not (memq char-pressed '(?i ?q))) char-pressed)))))
1053 (default 1053 (default
1054 (floor (/ (float-time 1054 (floor (/ (float-time
1055 (time-subtract (current-time) last-valid)) 60))) 1055 (time-subtract nil last-valid)) 60)))
1056 (keep 1056 (keep
1057 (and (memq ch '(?k ?K)) 1057 (and (memq ch '(?k ?K))
1058 (read-number "Keep how many minutes? " default))) 1058 (read-number "Keep how many minutes? " default)))
@@ -1089,8 +1089,7 @@ to be CLOCKED OUT."))))
1089 (keep 1089 (keep
1090 (time-add last-valid (seconds-to-time (* 60 keep)))) 1090 (time-add last-valid (seconds-to-time (* 60 keep))))
1091 (gotback 1091 (gotback
1092 (time-subtract (current-time) 1092 (time-subtract nil (seconds-to-time (* 60 gotback))))
1093 (seconds-to-time (* 60 gotback))))
1094 (t 1093 (t
1095 (error "Unexpected, please report this as a bug"))) 1094 (error "Unexpected, please report this as a bug")))
1096 (and gotback last-valid) 1095 (and gotback last-valid)
@@ -1172,7 +1171,7 @@ so long."
1172 org-clock-marker (marker-buffer org-clock-marker)) 1171 org-clock-marker (marker-buffer org-clock-marker))
1173 (let* ((org-clock-user-idle-seconds (org-user-idle-seconds)) 1172 (let* ((org-clock-user-idle-seconds (org-user-idle-seconds))
1174 (org-clock-user-idle-start 1173 (org-clock-user-idle-start
1175 (time-subtract (current-time) 1174 (time-subtract nil
1176 (seconds-to-time org-clock-user-idle-seconds))) 1175 (seconds-to-time org-clock-user-idle-seconds)))
1177 (org-clock-resolving-clocks-due-to-idleness t)) 1176 (org-clock-resolving-clocks-due-to-idleness t))
1178 (if (> org-clock-user-idle-seconds (* 60 org-clock-idle-time)) 1177 (if (> org-clock-user-idle-seconds (* 60 org-clock-idle-time))
@@ -1182,8 +1181,7 @@ so long."
1182 (lambda (_) 1181 (lambda (_)
1183 (format "Clocked in & idle for %.1f mins" 1182 (format "Clocked in & idle for %.1f mins"
1184 (/ (float-time 1183 (/ (float-time
1185 (time-subtract (current-time) 1184 (time-subtract nil org-clock-user-idle-start))
1186 org-clock-user-idle-start))
1187 60.0))) 1185 60.0)))
1188 org-clock-user-idle-start))))) 1186 org-clock-user-idle-start)))))
1189 1187
diff --git a/lisp/org/org-colview.el b/lisp/org/org-colview.el
index eac29c50f65..80f4929b95c 100644
--- a/lisp/org/org-colview.el
+++ b/lisp/org/org-colview.el
@@ -540,7 +540,7 @@ Where possible, use the standard interface for changing this line."
540 (eol (line-end-position)) 540 (eol (line-end-position))
541 (pom (or (get-text-property bol 'org-hd-marker) (point))) 541 (pom (or (get-text-property bol 'org-hd-marker) (point)))
542 (key (or key (get-char-property (point) 'org-columns-key))) 542 (key (or key (get-char-property (point) 'org-columns-key)))
543 (org-columns--time (float-time (current-time))) 543 (org-columns--time (float-time))
544 (action 544 (action
545 (pcase key 545 (pcase key
546 ("CLOCKSUM" 546 ("CLOCKSUM"
@@ -790,7 +790,7 @@ When COLUMNS-FMT-STRING is non-nil, use it as the column format."
790 (org-columns-goto-top-level) 790 (org-columns-goto-top-level)
791 ;; Initialize `org-columns-current-fmt' and 791 ;; Initialize `org-columns-current-fmt' and
792 ;; `org-columns-current-fmt-compiled'. 792 ;; `org-columns-current-fmt-compiled'.
793 (let ((org-columns--time (float-time (current-time)))) 793 (let ((org-columns--time (float-time)))
794 (org-columns-get-format columns-fmt-string) 794 (org-columns-get-format columns-fmt-string)
795 (unless org-columns-inhibit-recalculation (org-columns-compute-all)) 795 (unless org-columns-inhibit-recalculation (org-columns-compute-all))
796 (save-excursion 796 (save-excursion
@@ -1182,7 +1182,7 @@ column specification."
1182 "Compute all columns that have operators defined." 1182 "Compute all columns that have operators defined."
1183 (org-with-silent-modifications 1183 (org-with-silent-modifications
1184 (remove-text-properties (point-min) (point-max) '(org-summaries t))) 1184 (remove-text-properties (point-min) (point-max) '(org-summaries t)))
1185 (let ((org-columns--time (float-time (current-time))) 1185 (let ((org-columns--time (float-time))
1186 seen) 1186 seen)
1187 (dolist (spec org-columns-current-fmt-compiled) 1187 (dolist (spec org-columns-current-fmt-compiled)
1188 (let ((property (car spec))) 1188 (let ((property (car spec)))
@@ -1494,7 +1494,7 @@ PARAMS is a property list of parameters:
1494 (if (markerp org-columns-begin-marker) 1494 (if (markerp org-columns-begin-marker)
1495 (move-marker org-columns-begin-marker (point)) 1495 (move-marker org-columns-begin-marker (point))
1496 (setq org-columns-begin-marker (point-marker))) 1496 (setq org-columns-begin-marker (point-marker)))
1497 (let* ((org-columns--time (float-time (current-time))) 1497 (let* ((org-columns--time (float-time))
1498 (fmt 1498 (fmt
1499 (cond 1499 (cond
1500 ((bound-and-true-p org-agenda-overriding-columns-format)) 1500 ((bound-and-true-p org-agenda-overriding-columns-format))
diff --git a/lisp/org/org-element.el b/lisp/org/org-element.el
index f2b3002f1fd..73012cd2681 100644
--- a/lisp/org/org-element.el
+++ b/lisp/org/org-element.el
@@ -5067,7 +5067,7 @@ Assume ELEMENT belongs to cache and that a cache is active."
5067TIME-LIMIT is a time value or nil." 5067TIME-LIMIT is a time value or nil."
5068 (and time-limit 5068 (and time-limit
5069 (or (input-pending-p) 5069 (or (input-pending-p)
5070 (time-less-p time-limit (current-time))))) 5070 (time-less-p time-limit nil))))
5071 5071
5072(defsubst org-element--cache-shift-positions (element offset &optional props) 5072(defsubst org-element--cache-shift-positions (element offset &optional props)
5073 "Shift ELEMENT properties relative to buffer positions by OFFSET. 5073 "Shift ELEMENT properties relative to buffer positions by OFFSET.
@@ -5121,7 +5121,7 @@ updated before current modification are actually submitted."
5121 (and next (aref next 0)) 5121 (and next (aref next 0))
5122 threshold 5122 threshold
5123 (and (not threshold) 5123 (and (not threshold)
5124 (time-add (current-time) 5124 (time-add nil
5125 org-element-cache-sync-duration)) 5125 org-element-cache-sync-duration))
5126 future-change) 5126 future-change)
5127 ;; Request processed. Merge current and next offsets and 5127 ;; Request processed. Merge current and next offsets and
diff --git a/lisp/org/org-habit.el b/lisp/org/org-habit.el
index 89b75e6f680..c867c840b0e 100644
--- a/lisp/org/org-habit.el
+++ b/lisp/org/org-habit.el
@@ -288,7 +288,7 @@ Habits are assigned colors on the following basis:
288 (deadline (if scheduled-days 288 (deadline (if scheduled-days
289 (+ scheduled-days (- d-repeat s-repeat)) 289 (+ scheduled-days (- d-repeat s-repeat))
290 (org-habit-deadline habit))) 290 (org-habit-deadline habit)))
291 (m-days (or now-days (time-to-days (current-time))))) 291 (m-days (or now-days (time-to-days nil))))
292 (cond 292 (cond
293 ((< m-days scheduled) 293 ((< m-days scheduled)
294 '(org-habit-clear-face . org-habit-clear-future-face)) 294 '(org-habit-clear-face . org-habit-clear-future-face))
@@ -406,7 +406,7 @@ current time."
406 "Insert consistency graph for any habitual tasks." 406 "Insert consistency graph for any habitual tasks."
407 (let ((inhibit-read-only t) 407 (let ((inhibit-read-only t)
408 (buffer-invisibility-spec '(org-link)) 408 (buffer-invisibility-spec '(org-link))
409 (moment (time-subtract (current-time) 409 (moment (time-subtract nil
410 (list 0 (* 3600 org-extend-today-until) 0)))) 410 (list 0 (* 3600 org-extend-today-until) 0))))
411 (save-excursion 411 (save-excursion
412 (goto-char (if line (point-at-bol) (point-min))) 412 (goto-char (if line (point-at-bol) (point-min)))
diff --git a/lisp/org/org-indent.el b/lisp/org/org-indent.el
index b34586e09ec..35c1f22719e 100644
--- a/lisp/org/org-indent.el
+++ b/lisp/org/org-indent.el
@@ -325,7 +325,7 @@ stopped."
325 (let* ((case-fold-search t) 325 (let* ((case-fold-search t)
326 (limited-re (org-get-limited-outline-regexp)) 326 (limited-re (org-get-limited-outline-regexp))
327 (level (or (org-current-level) 0)) 327 (level (or (org-current-level) 0))
328 (time-limit (and delay (time-add (current-time) delay)))) 328 (time-limit (and delay (time-add nil delay))))
329 ;; For each line, set `line-prefix' and `wrap-prefix' 329 ;; For each line, set `line-prefix' and `wrap-prefix'
330 ;; properties depending on the type of line (headline, inline 330 ;; properties depending on the type of line (headline, inline
331 ;; task, item or other). 331 ;; task, item or other).
@@ -338,7 +338,7 @@ stopped."
338 ;; In asynchronous mode, take a break of 338 ;; In asynchronous mode, take a break of
339 ;; `org-indent-agent-resume-delay' every DELAY to avoid 339 ;; `org-indent-agent-resume-delay' every DELAY to avoid
340 ;; blocking any other idle timer or process output. 340 ;; blocking any other idle timer or process output.
341 ((and delay (time-less-p time-limit (current-time))) 341 ((and delay (time-less-p time-limit nil))
342 (setq org-indent-agent-resume-timer 342 (setq org-indent-agent-resume-timer
343 (run-with-idle-timer 343 (run-with-idle-timer
344 (time-add (current-idle-time) org-indent-agent-resume-delay) 344 (time-add (current-idle-time) org-indent-agent-resume-delay)
diff --git a/lisp/org/org-timer.el b/lisp/org/org-timer.el
index 5acf526f183..7617a3810f9 100644
--- a/lisp/org/org-timer.el
+++ b/lisp/org/org-timer.el
@@ -144,7 +144,7 @@ the region 0:00:00."
144 ;; Pass `current-time' result to `float-time' (instead 144 ;; Pass `current-time' result to `float-time' (instead
145 ;; of calling without arguments) so that only 145 ;; of calling without arguments) so that only
146 ;; `current-time' has to be overridden in tests. 146 ;; `current-time' has to be overridden in tests.
147 (- (float-time (current-time)) delta)))) 147 (- (float-time) delta))))
148 (setq org-timer-pause-time nil) 148 (setq org-timer-pause-time nil)
149 (org-timer-set-mode-line 'on) 149 (org-timer-set-mode-line 'on)
150 (message "Timer start time set to %s, current value is %s" 150 (message "Timer start time set to %s, current value is %s"
@@ -168,12 +168,12 @@ With prefix arg STOP, stop it entirely."
168 (org-timer--run-countdown-timer 168 (org-timer--run-countdown-timer
169 new-secs org-timer-countdown-timer-title)) 169 new-secs org-timer-countdown-timer-title))
170 (setq org-timer-start-time 170 (setq org-timer-start-time
171 (time-add (current-time) (seconds-to-time new-secs)))) 171 (time-add nil (seconds-to-time new-secs))))
172 (setq org-timer-start-time 172 (setq org-timer-start-time
173 ;; Pass `current-time' result to `float-time' (instead 173 ;; Pass `current-time' result to `float-time' (instead
174 ;; of calling without arguments) so that only 174 ;; of calling without arguments) so that only
175 ;; `current-time' has to be overridden in tests. 175 ;; `current-time' has to be overridden in tests.
176 (seconds-to-time (- (float-time (current-time)) 176 (seconds-to-time (- (float-time)
177 (- pause-secs start-secs))))) 177 (- pause-secs start-secs)))))
178 (setq org-timer-pause-time nil) 178 (setq org-timer-pause-time nil)
179 (org-timer-set-mode-line 'on) 179 (org-timer-set-mode-line 'on)
@@ -238,8 +238,8 @@ it in the buffer."
238 ;; overridden in tests. 238 ;; overridden in tests.
239 (if org-timer-countdown-timer 239 (if org-timer-countdown-timer
240 (- (float-time org-timer-start-time) 240 (- (float-time org-timer-start-time)
241 (float-time (or org-timer-pause-time (current-time)))) 241 (float-time org-timer-pause-time))
242 (- (float-time (or org-timer-pause-time (current-time))) 242 (- (float-time org-timer-pause-time)
243 (float-time org-timer-start-time)))) 243 (float-time org-timer-start-time))))
244 244
245;;;###autoload 245;;;###autoload
@@ -400,7 +400,7 @@ VALUE can be `on', `off', or `paused'."
400 (message "No timer set") 400 (message "No timer set")
401 (let* ((rtime (decode-time 401 (let* ((rtime (decode-time
402 (time-subtract (timer--time org-timer-countdown-timer) 402 (time-subtract (timer--time org-timer-countdown-timer)
403 (current-time)))) 403 nil)))
404 (rsecs (nth 0 rtime)) 404 (rsecs (nth 0 rtime))
405 (rmins (nth 1 rtime))) 405 (rmins (nth 1 rtime)))
406 (message "%d minute(s) %d seconds left before next time out" 406 (message "%d minute(s) %d seconds left before next time out"
@@ -464,7 +464,7 @@ using three `C-u' prefix arguments."
464 secs org-timer-countdown-timer-title)) 464 secs org-timer-countdown-timer-title))
465 (run-hooks 'org-timer-set-hook) 465 (run-hooks 'org-timer-set-hook)
466 (setq org-timer-start-time 466 (setq org-timer-start-time
467 (time-add (current-time) (seconds-to-time secs))) 467 (time-add nil (seconds-to-time secs)))
468 (setq org-timer-pause-time nil) 468 (setq org-timer-pause-time nil)
469 (org-timer-set-mode-line 'on)))))) 469 (org-timer-set-mode-line 'on))))))
470 470
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 35405b4bf81..569bc9f8ec1 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -227,7 +227,7 @@ file to byte-code before it is loaded."
227 (interactive "fFile to load: \nP") 227 (interactive "fFile to load: \nP")
228 (let* ((age (lambda (file) 228 (let* ((age (lambda (file)
229 (float-time 229 (float-time
230 (time-subtract (current-time) 230 (time-subtract nil
231 (nth 5 (or (file-attributes (file-truename file)) 231 (nth 5 (or (file-attributes (file-truename file))
232 (file-attributes file))))))) 232 (file-attributes file)))))))
233 (base-name (file-name-sans-extension file)) 233 (base-name (file-name-sans-extension file))
@@ -5597,15 +5597,14 @@ the rounding returns a past time."
5597 (apply 'encode-time 5597 (apply 'encode-time
5598 (append (list 0 (* r (floor (+ .5 (/ (float (nth 1 time)) r))))) 5598 (append (list 0 (* r (floor (+ .5 (/ (float (nth 1 time)) r)))))
5599 (nthcdr 2 time)))) 5599 (nthcdr 2 time))))
5600 (if (and past (< (float-time (time-subtract (current-time) res)) 0)) 5600 (if (and past (< (float-time (time-subtract nil res)) 0))
5601 (seconds-to-time (- (float-time res) (* r 60))) 5601 (seconds-to-time (- (float-time res) (* r 60)))
5602 res)))) 5602 res))))
5603 5603
5604(defun org-today () 5604(defun org-today ()
5605 "Return today date, considering `org-extend-today-until'." 5605 "Return today date, considering `org-extend-today-until'."
5606 (time-to-days 5606 (time-to-days
5607 (time-subtract (current-time) 5607 (time-subtract nil (list 0 (* 3600 org-extend-today-until) 0))))
5608 (list 0 (* 3600 org-extend-today-until) 0))))
5609 5608
5610;;;; Font-Lock stuff, including the activators 5609;;;; Font-Lock stuff, including the activators
5611 5610
@@ -13057,8 +13056,7 @@ This function is run automatically after each state change to a DONE state."
13057 (while (re-search-forward org-clock-line-re end t) 13056 (while (re-search-forward org-clock-line-re end t)
13058 (when (org-at-clock-log-p) (throw :clock t)))))) 13057 (when (org-at-clock-log-p) (throw :clock t))))))
13059 (org-entry-put nil "LAST_REPEAT" (format-time-string 13058 (org-entry-put nil "LAST_REPEAT" (format-time-string
13060 (org-time-stamp-format t t) 13059 (org-time-stamp-format t t))))
13061 (current-time))))
13062 (when org-log-repeat 13060 (when org-log-repeat
13063 (if (or (memq 'org-add-log-note (default-value 'post-command-hook)) 13061 (if (or (memq 'org-add-log-note (default-value 'post-command-hook))
13064 (memq 'org-add-log-note post-command-hook)) 13062 (memq 'org-add-log-note post-command-hook))
@@ -13117,7 +13115,7 @@ has been set"
13117 (let ((nshiftmax 10) 13115 (let ((nshiftmax 10)
13118 (nshift 0)) 13116 (nshift 0))
13119 (while (or (= nshift 0) 13117 (while (or (= nshift 0)
13120 (not (time-less-p (current-time) time))) 13118 (not (time-less-p nil time)))
13121 (when (= (cl-incf nshift) nshiftmax) 13119 (when (= (cl-incf nshift) nshiftmax)
13122 (or (y-or-n-p 13120 (or (y-or-n-p
13123 (format "%d repeater intervals were not \ 13121 (format "%d repeater intervals were not \
@@ -16904,7 +16902,7 @@ user."
16904 ;; overridden in tests. 16902 ;; overridden in tests.
16905 (let ((org-def def) 16903 (let ((org-def def)
16906 (org-defdecode defdecode) 16904 (org-defdecode defdecode)
16907 (nowdecode (decode-time (current-time))) 16905 (nowdecode (decode-time))
16908 delta deltan deltaw deltadef year month day 16906 delta deltan deltaw deltadef year month day
16909 hour minute second wday pm h2 m2 tl wday1 16907 hour minute second wday pm h2 m2 tl wday1
16910 iso-year iso-weekday iso-week iso-date futurep kill-year) 16908 iso-year iso-weekday iso-week iso-date futurep kill-year)
@@ -17070,7 +17068,7 @@ user."
17070 ; (when (and org-read-date-prefer-future 17068 ; (when (and org-read-date-prefer-future
17071 ; (not iso-year) 17069 ; (not iso-year)
17072 ; (< (calendar-absolute-from-gregorian iso-date) 17070 ; (< (calendar-absolute-from-gregorian iso-date)
17073 ; (time-to-days (current-time)))) 17071 ; (time-to-days nil)))
17074 ; (setq year (1+ year) 17072 ; (setq year (1+ year)
17075 ; iso-date (calendar-gregorian-from-absolute 17073 ; iso-date (calendar-gregorian-from-absolute
17076 ; (calendar-iso-to-absolute 17074 ; (calendar-iso-to-absolute
@@ -17084,7 +17082,7 @@ user."
17084 ;; Pass `current-time' result to `decode-time' (instead of 17082 ;; Pass `current-time' result to `decode-time' (instead of
17085 ;; calling without arguments) so that only `current-time' has 17083 ;; calling without arguments) so that only `current-time' has
17086 ;; to be overridden in tests. 17084 ;; to be overridden in tests.
17087 (let ((now (decode-time (current-time)))) 17085 (let ((now (decode-time)))
17088 (setq day (nth 3 now) month (nth 4 now) year (nth 5 now)))) 17086 (setq day (nth 3 now) month (nth 4 now) year (nth 5 now))))
17089 (cond ((member deltaw '("d" "")) (setq day (+ day deltan))) 17087 (cond ((member deltaw '("d" "")) (setq day (+ day deltan)))
17090 ((equal deltaw "w") (setq day (+ day (* 7 deltan)))) 17088 ((equal deltaw "w") (setq day (+ day (* 7 deltan))))
@@ -17564,7 +17562,7 @@ signaled."
17564YEAR is expanded into one of the 30 next years, if possible, or 17562YEAR is expanded into one of the 30 next years, if possible, or
17565into a past one. Any year larger than 99 is returned unchanged." 17563into a past one. Any year larger than 99 is returned unchanged."
17566 (if (>= year 100) year 17564 (if (>= year 100) year
17567 (let* ((current (string-to-number (format-time-string "%Y" (current-time)))) 17565 (let* ((current (string-to-number (format-time-string "%Y")))
17568 (century (/ current 100)) 17566 (century (/ current 100))
17569 (offset (- year (% current 100)))) 17567 (offset (- year (% current 100))))
17570 (cond ((> offset 30) (+ (* (1- century) 100) year)) 17568 (cond ((> offset 30) (+ (* (1- century) 100) year))
@@ -18088,7 +18086,7 @@ A prefix ARG can be used to force the current date."
18088 diff) 18086 diff)
18089 (when (or (org-at-timestamp-p 'lax) 18087 (when (or (org-at-timestamp-p 'lax)
18090 (org-match-line (concat ".*" org-ts-regexp))) 18088 (org-match-line (concat ".*" org-ts-regexp)))
18091 (let ((d1 (time-to-days (current-time))) 18089 (let ((d1 (time-to-days nil))
18092 (d2 (time-to-days (org-time-string-to-time (match-string 1))))) 18090 (d2 (time-to-days (org-time-string-to-time (match-string 1)))))
18093 (setq diff (- d2 d1)))) 18091 (setq diff (- d2 d1))))
18094 (calendar) 18092 (calendar)
diff --git a/lisp/org/ox.el b/lisp/org/ox.el
index 1c43577cddf..820b1755624 100644
--- a/lisp/org/ox.el
+++ b/lisp/org/ox.el
@@ -3243,7 +3243,7 @@ locally for the subtree through node properties."
3243 (let ((val (cond ((equal (car key) "DATE") 3243 (let ((val (cond ((equal (car key) "DATE")
3244 (or (cdr key) 3244 (or (cdr key)
3245 (with-temp-buffer 3245 (with-temp-buffer
3246 (org-insert-time-stamp (current-time))))) 3246 (org-insert-time-stamp nil))))
3247 ((equal (car key) "TITLE") 3247 ((equal (car key) "TITLE")
3248 (or (let ((visited-file 3248 (or (let ((visited-file
3249 (buffer-file-name (buffer-base-buffer)))) 3249 (buffer-file-name (buffer-base-buffer))))
diff --git a/lisp/time.el b/lisp/time.el
index c8726a9a1b0..6cd7320e72f 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -583,7 +583,7 @@ For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"."
583 (let ((str 583 (let ((str
584 (format-seconds (or format "%Y, %D, %H, %M, %z%S") 584 (format-seconds (or format "%Y, %D, %H, %M, %z%S")
585 (float-time 585 (float-time
586 (time-subtract (current-time) before-init-time))))) 586 (time-subtract nil before-init-time)))))
587 (if (called-interactively-p 'interactive) 587 (if (called-interactively-p 'interactive)
588 (message "%s" str) 588 (message "%s" str)
589 str))) 589 str)))
diff --git a/lisp/type-break.el b/lisp/type-break.el
index faf44b3b875..35b0efe65b1 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -376,7 +376,7 @@ problems."
376 (if (and type-break-time-last-break 376 (if (and type-break-time-last-break
377 (< (setq diff (type-break-time-difference 377 (< (setq diff (type-break-time-difference
378 type-break-time-last-break 378 type-break-time-last-break
379 (current-time))) 379 nil))
380 type-break-interval)) 380 type-break-interval))
381 ;; Use the file's value. 381 ;; Use the file's value.
382 (progn 382 (progn
@@ -563,7 +563,7 @@ as per the function `type-break-schedule'."
563 (cond 563 (cond
564 (good-interval 564 (good-interval
565 (let ((break-secs (type-break-time-difference 565 (let ((break-secs (type-break-time-difference
566 start-time (current-time)))) 566 start-time nil)))
567 (cond 567 (cond
568 ((>= break-secs good-interval) 568 ((>= break-secs good-interval)
569 (setq continue nil)) 569 (setq continue nil))
@@ -624,7 +624,7 @@ INTERVAL is the full length of an interval (defaults to TIME)."
624 type-break-time-warning-intervals)) 624 type-break-time-warning-intervals))
625 625
626 (or time 626 (or time
627 (setq time (type-break-time-difference (current-time) 627 (setq time (type-break-time-difference nil
628 type-break-time-next-break))) 628 type-break-time-next-break)))
629 629
630 (while (and type-break-current-time-warning-interval 630 (while (and type-break-current-time-warning-interval
@@ -685,7 +685,7 @@ keystroke threshold has been exceeded."
685 (and type-break-good-rest-interval 685 (and type-break-good-rest-interval
686 (progn 686 (progn
687 (and (> (type-break-time-difference 687 (and (> (type-break-time-difference
688 type-break-time-last-command (current-time)) 688 type-break-time-last-command nil)
689 type-break-good-rest-interval) 689 type-break-good-rest-interval)
690 (progn 690 (progn
691 (type-break-keystroke-reset) 691 (type-break-keystroke-reset)
diff --git a/lisp/url/url-cache.el b/lisp/url/url-cache.el
index 1cffc06d7c3..963dfd531e2 100644
--- a/lisp/url/url-cache.el
+++ b/lisp/url/url-cache.el
@@ -206,7 +206,7 @@ If `url-standalone-mode' is non-nil, cached items never expire."
206 (time-add 206 (time-add
207 cache-time 207 cache-time
208 (seconds-to-time (or expire-time url-cache-expire-time))) 208 (seconds-to-time (or expire-time url-cache-expire-time)))
209 (current-time)))))) 209 nil)))))
210 210
211(defun url-cache-prune-cache (&optional directory) 211(defun url-cache-prune-cache (&optional directory)
212 "Remove all expired files from the cache. 212 "Remove all expired files from the cache.
diff --git a/lisp/url/url.el b/lisp/url/url.el
index 9a6b732ca9c..36cd81bd70b 100644
--- a/lisp/url/url.el
+++ b/lisp/url/url.el
@@ -259,8 +259,7 @@ how long to wait for a response before giving up."
259 ;; process output. 259 ;; process output.
260 (while (and (not retrieval-done) 260 (while (and (not retrieval-done)
261 (or (not timeout) 261 (or (not timeout)
262 (< (float-time (time-subtract 262 (< (float-time (time-subtract nil start-time))
263 (current-time) start-time))
264 timeout))) 263 timeout)))
265 (url-debug 'retrieval 264 (url-debug 'retrieval
266 "Spinning in url-retrieve-synchronously: %S (%S)" 265 "Spinning in url-retrieve-synchronously: %S (%S)"
diff --git a/test/lisp/char-fold-tests.el b/test/lisp/char-fold-tests.el
index 83d6fa79b1e..a16f2879809 100644
--- a/test/lisp/char-fold-tests.el
+++ b/test/lisp/char-fold-tests.el
@@ -117,16 +117,14 @@
117 (char-fold-to-regexp string))) 117 (char-fold-to-regexp string)))
118 (with-temp-buffer 118 (with-temp-buffer
119 (save-excursion (insert string)) 119 (save-excursion (insert string))
120 (let ((time (time-to-seconds (current-time)))) 120 (let ((time (time-to-seconds)))
121 ;; Our initial implementation of case-folding in char-folding 121 ;; Our initial implementation of case-folding in char-folding
122 ;; created a lot of redundant paths in the regexp. Because of 122 ;; created a lot of redundant paths in the regexp. Because of
123 ;; that, if a really long string "almost" matches, the regexp 123 ;; that, if a really long string "almost" matches, the regexp
124 ;; engine took a long time to realize that it doesn't match. 124 ;; engine took a long time to realize that it doesn't match.
125 (should-not (char-fold-search-forward (concat string "c") nil 'noerror)) 125 (should-not (char-fold-search-forward (concat string "c") nil 'noerror))
126 ;; Ensure it took less than a second. 126 ;; Ensure it took less than a second.
127 (should (< (- (time-to-seconds (current-time)) 127 (should (< (- (time-to-seconds) time) 1))))))
128 time)
129 1))))))
130 128
131(provide 'char-fold-tests) 129(provide 'char-fold-tests)
132;;; char-fold-tests.el ends here 130;;; char-fold-tests.el ends here
diff --git a/test/manual/cedet/semantic-ia-utest.el b/test/manual/cedet/semantic-ia-utest.el
index 7861fd73949..53cff05adc4 100644
--- a/test/manual/cedet/semantic-ia-utest.el
+++ b/test/manual/cedet/semantic-ia-utest.el
@@ -434,7 +434,7 @@ tag that contains point, and return that."
434 (when (interactive-p) 434 (when (interactive-p)
435 (message "Found %d occurrences of %s in %.2f seconds" 435 (message "Found %d occurrences of %s in %.2f seconds"
436 Lcount (semantic-tag-name target) 436 Lcount (semantic-tag-name target)
437 (semantic-elapsed-time start (current-time)))) 437 (semantic-elapsed-time start nil)))
438 Lcount))) 438 Lcount)))
439 439
440(defun semantic-src-utest-buffer-refs () 440(defun semantic-src-utest-buffer-refs ()
diff --git a/test/manual/cedet/semantic-tests.el b/test/manual/cedet/semantic-tests.el
index 3a19328ac79..0495170058a 100644
--- a/test/manual/cedet/semantic-tests.el
+++ b/test/manual/cedet/semantic-tests.el
@@ -178,9 +178,8 @@ Optional argument ARG specifies not to use color."
178 "Test `semantic-idle-scheduler-work-parse-neighboring-files' and time it." 178 "Test `semantic-idle-scheduler-work-parse-neighboring-files' and time it."
179 (interactive) 179 (interactive)
180 (let ((start (current-time)) 180 (let ((start (current-time))
181 (junk (semantic-idle-scheduler-work-parse-neighboring-files)) 181 (junk (semantic-idle-scheduler-work-parse-neighboring-files)))
182 (end (current-time))) 182 (message "Work took %.2f seconds." (semantic-elapsed-time start nil))))
183 (message "Work took %.2f seconds." (semantic-elapsed-time start end))))
184 183
185;;; From semantic-lex: 184;;; From semantic-lex:
186 185
@@ -195,10 +194,9 @@ If universal argument ARG, then try the whole buffer."
195 (result (semantic-lex 194 (result (semantic-lex
196 (if arg (point-min) (point)) 195 (if arg (point-min) (point))
197 (point-max) 196 (point-max)
198 100)) 197 100)))
199 (end (current-time)))
200 (message "Elapsed Time: %.2f seconds." 198 (message "Elapsed Time: %.2f seconds."
201 (semantic-elapsed-time start end)) 199 (semantic-elapsed-time start nil))
202 (pop-to-buffer "*Lexer Output*") 200 (pop-to-buffer "*Lexer Output*")
203 (require 'pp) 201 (require 'pp)
204 (erase-buffer) 202 (erase-buffer)
@@ -278,7 +276,7 @@ tag that contains point, and return that."
278 (when (interactive-p) 276 (when (interactive-p)
279 (message "Found %d occurrences of %s in %.2f seconds" 277 (message "Found %d occurrences of %s in %.2f seconds"
280 Lcount (semantic-tag-name target) 278 Lcount (semantic-tag-name target)
281 (semantic-elapsed-time start (current-time)))) 279 (semantic-elapsed-time start nil)))
282 Lcount))) 280 Lcount)))
283 281
284;;; From bovine-gcc: 282;;; From bovine-gcc: