|
@@ -252,7 +252,7 @@ file to byte-code before it is loaded."
|
|
|
(interactive "fFile to load: \nP")
|
|
|
(let* ((age (lambda (file)
|
|
|
(float-time
|
|
|
- (time-subtract (current-time)
|
|
|
+ (time-subtract nil
|
|
|
(nth 5 (or (file-attributes (file-truename file))
|
|
|
(file-attributes file)))))))
|
|
|
(base-name (file-name-sans-extension file))
|
|
@@ -5637,15 +5637,14 @@ the rounding returns a past time."
|
|
|
(apply 'encode-time
|
|
|
(append (list 0 (* r (floor (+ .5 (/ (float (nth 1 time)) r)))))
|
|
|
(nthcdr 2 time))))
|
|
|
- (if (and past (< (float-time (time-subtract (current-time) res)) 0))
|
|
|
+ (if (and past (< (float-time (time-subtract nil res)) 0))
|
|
|
(seconds-to-time (- (float-time res) (* r 60)))
|
|
|
res))))
|
|
|
|
|
|
(defun org-today ()
|
|
|
"Return today date, considering `org-extend-today-until'."
|
|
|
(time-to-days
|
|
|
- (time-subtract (current-time)
|
|
|
- (list 0 (* 3600 org-extend-today-until) 0))))
|
|
|
+ (time-subtract nil (list 0 (* 3600 org-extend-today-until) 0))))
|
|
|
|
|
|
;;;; Font-Lock stuff, including the activators
|
|
|
|
|
@@ -12792,8 +12791,7 @@ This function is run automatically after each state change to a DONE state."
|
|
|
(while (re-search-forward org-clock-line-re end t)
|
|
|
(when (org-at-clock-log-p) (throw :clock t))))))
|
|
|
(org-entry-put nil "LAST_REPEAT" (format-time-string
|
|
|
- (org-time-stamp-format t t)
|
|
|
- (current-time))))
|
|
|
+ (org-time-stamp-format t t))))
|
|
|
(when org-log-repeat
|
|
|
(if (or (memq 'org-add-log-note (default-value 'post-command-hook))
|
|
|
(memq 'org-add-log-note post-command-hook))
|
|
@@ -12848,7 +12846,7 @@ This function is run automatically after each state change to a DONE state."
|
|
|
(let ((nshiftmax 10)
|
|
|
(nshift 0))
|
|
|
(while (or (= nshift 0)
|
|
|
- (not (time-less-p (current-time) time)))
|
|
|
+ (not (time-less-p nil time)))
|
|
|
(when (= nshiftmax (cl-incf nshift))
|
|
|
(or (y-or-n-p
|
|
|
(format "%d repeater intervals were not \
|
|
@@ -16401,7 +16399,7 @@ user."
|
|
|
;; overridden in tests.
|
|
|
(let ((org-def def)
|
|
|
(org-defdecode defdecode)
|
|
|
- (nowdecode (decode-time (current-time)))
|
|
|
+ (nowdecode (decode-time))
|
|
|
delta deltan deltaw deltadef year month day
|
|
|
hour minute second wday pm h2 m2 tl wday1
|
|
|
iso-year iso-weekday iso-week iso-date futurep kill-year)
|
|
@@ -16567,7 +16565,7 @@ user."
|
|
|
; (when (and org-read-date-prefer-future
|
|
|
; (not iso-year)
|
|
|
; (< (calendar-absolute-from-gregorian iso-date)
|
|
|
- ; (time-to-days (current-time))))
|
|
|
+ ; (time-to-days nil)))
|
|
|
; (setq year (1+ year)
|
|
|
; iso-date (calendar-gregorian-from-absolute
|
|
|
; (calendar-iso-to-absolute
|
|
@@ -16581,7 +16579,7 @@ user."
|
|
|
;; Pass `current-time' result to `decode-time' (instead of
|
|
|
;; calling without arguments) so that only `current-time' has
|
|
|
;; to be overridden in tests.
|
|
|
- (let ((now (decode-time (current-time))))
|
|
|
+ (let ((now (decode-time)))
|
|
|
(setq day (nth 3 now) month (nth 4 now) year (nth 5 now))))
|
|
|
(cond ((member deltaw '("d" "")) (setq day (+ day deltan)))
|
|
|
((equal deltaw "w") (setq day (+ day (* 7 deltan))))
|
|
@@ -17055,7 +17053,7 @@ signaled."
|
|
|
YEAR is expanded into one of the 30 next years, if possible, or
|
|
|
into a past one. Any year larger than 99 is returned unchanged."
|
|
|
(if (>= year 100) year
|
|
|
- (let* ((current (string-to-number (format-time-string "%Y" (current-time))))
|
|
|
+ (let* ((current (string-to-number (format-time-string "%Y")))
|
|
|
(century (/ current 100))
|
|
|
(offset (- year (% current 100))))
|
|
|
(cond ((> offset 30) (+ (* (1- century) 100) year))
|
|
@@ -17552,7 +17550,7 @@ A prefix ARG can be used to force the current date."
|
|
|
diff)
|
|
|
(when (or (org-at-timestamp-p 'lax)
|
|
|
(org-match-line (concat ".*" org-ts-regexp)))
|
|
|
- (let ((d1 (time-to-days (current-time)))
|
|
|
+ (let ((d1 (time-to-days nil))
|
|
|
(d2 (time-to-days (org-time-string-to-time (match-string 1)))))
|
|
|
(setq diff (- d2 d1))))
|
|
|
(calendar)
|