forked from mirrors/org-mode
org-agenda: Tiny stylistic change
* lisp/org-agenda.el (org-agenda-get-deadlines): Tiny stylistic change.
This commit is contained in:
parent
796fca3f18
commit
a729fae0f7
|
@ -5836,13 +5836,12 @@ See also the user option `org-agenda-clock-consistency-checks'."
|
||||||
(and (string-match
|
(and (string-match
|
||||||
org-scheduled-time-regexp item)
|
org-scheduled-time-regexp item)
|
||||||
(match-string 1 item)))))))
|
(match-string 1 item)))))))
|
||||||
(if ds
|
|
||||||
;; The current item has a scheduled date (in ds),
|
|
||||||
;; so evaluate its prewarning lead time.
|
|
||||||
(cond
|
(cond
|
||||||
((integerp
|
((not ds) nil)
|
||||||
org-agenda-skip-deadline-prewarning-if-scheduled)
|
;; The current item has a scheduled date (in ds), so
|
||||||
;; Use globally-customized prewarning-restart lead time.
|
;; evaluate its prewarning lead time.
|
||||||
|
((integerp org-agenda-skip-deadline-prewarning-if-scheduled)
|
||||||
|
;; Use global prewarning-restart lead time.
|
||||||
org-agenda-skip-deadline-prewarning-if-scheduled)
|
org-agenda-skip-deadline-prewarning-if-scheduled)
|
||||||
((eq org-agenda-skip-deadline-prewarning-if-scheduled
|
((eq org-agenda-skip-deadline-prewarning-if-scheduled
|
||||||
'pre-scheduled)
|
'pre-scheduled)
|
||||||
|
@ -5850,7 +5849,8 @@ See also the user option `org-agenda-clock-consistency-checks'."
|
||||||
(min (- d2 (org-time-string-to-absolute
|
(min (- d2 (org-time-string-to-absolute
|
||||||
ds d1 'past show-all (current-buffer) pos))
|
ds d1 'past show-all (current-buffer) pos))
|
||||||
org-deadline-warning-days))
|
org-deadline-warning-days))
|
||||||
(t 0))))) ;; Set prewarning to deadline.
|
;; Set prewarning to deadline.
|
||||||
|
(t 0))))
|
||||||
(setq wdays (if suppress-prewarning
|
(setq wdays (if suppress-prewarning
|
||||||
(let ((org-deadline-warning-days suppress-prewarning))
|
(let ((org-deadline-warning-days suppress-prewarning))
|
||||||
(org-get-wdays s))
|
(org-get-wdays s))
|
||||||
|
|
Loading…
Reference in New Issue