org-read-date: Do not consider `org-extend-today-until' with default time
* lisp/org.el (org-read-date): When DEFAULT-TIME time provided, prefer it even when `org-extend-today-until' dictates -1 day shift. We should only consider `org-extend-today-until' for actual today times, not for future dates, where is becomes confusing. Reported-by: Tim Ruffing <crypto@timruffing.de> Link: https://orgmode.org/list/3489c1917ad4be0625ea5f0b2c1b0f2b72ea39e9.camel@timruffing.de
This commit is contained in:
parent
6ab611720d
commit
d6e75d0eeb
|
@ -13714,7 +13714,11 @@ user."
|
|||
(calendar-view-holidays-initially-flag nil)
|
||||
ans (org-ans0 "") org-ans1 org-ans2 final cal-frame)
|
||||
;; Rationalize `org-def' and `org-defdecode', if required.
|
||||
(when (< (nth 2 org-defdecode) org-extend-today-until)
|
||||
;; Only consider `org-extend-today-until' when explicit reference
|
||||
;; time is not given.
|
||||
(when (and (not default-time)
|
||||
(not org-overriding-default-time)
|
||||
(< (nth 2 org-defdecode) org-extend-today-until))
|
||||
(setf (nth 2 org-defdecode) -1)
|
||||
(setf (nth 1 org-defdecode) 59)
|
||||
(setq org-def (org-encode-time org-defdecode))
|
||||
|
|
Loading…
Reference in New Issue