mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-12 16:24:10 +00:00
Revert "Fix agenda display for late scheduled and deadline tasks"
This reverts commit 516640aff9
.
This commit is contained in:
parent
4406aa5a34
commit
0dec8ac617
21
lisp/org.el
21
lisp/org.el
@ -14813,17 +14813,16 @@ If there is a specifyer for a cyclic time stamp, get the closest date to
|
||||
DAYNR.
|
||||
PREFER and SHOW-ALL are passed through to `org-closest-date'.
|
||||
the variable date is bound by the calendar when this is called."
|
||||
(let ((today (calendar-absolute-from-gregorian (calendar-current-date))))
|
||||
(cond
|
||||
((and daynr (string-match "\\`%%\\((.*)\\)" s))
|
||||
(if (org-diary-sexp-entry (match-string 1 s) "" date)
|
||||
daynr
|
||||
(+ daynr 1000)))
|
||||
((and daynr (not (eq daynr today)) (string-match "\\+[0-9]+[dwmy]" s))
|
||||
(org-closest-date s (if (and (boundp 'daynr) (integerp daynr)) daynr
|
||||
(time-to-days (current-time))) (match-string 0 s)
|
||||
prefer show-all))
|
||||
(t (time-to-days (apply 'encode-time (org-parse-time-string s)))))))
|
||||
(cond
|
||||
((and daynr (string-match "\\`%%\\((.*)\\)" s))
|
||||
(if (org-diary-sexp-entry (match-string 1 s) "" date)
|
||||
daynr
|
||||
(+ daynr 1000)))
|
||||
((and daynr (string-match "\\+[0-9]+[dwmy]" s))
|
||||
(org-closest-date s (if (and (boundp 'daynr) (integerp daynr)) daynr
|
||||
(time-to-days (current-time))) (match-string 0 s)
|
||||
prefer show-all))
|
||||
(t (time-to-days (apply 'encode-time (org-parse-time-string s))))))
|
||||
|
||||
(defun org-days-to-iso-week (days)
|
||||
"Return the iso week number."
|
||||
|
Loading…
Reference in New Issue
Block a user