mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-24 07:20:29 +00:00
org-agenda: Do not err on SCHEDULED/DEADLINE with inactive timestamp
* lisp/org-agenda.el (org-agenda-get-deadlines): (org-agenda-get-scheduled): Ignore SCHEDULED/DEADLINE set to inactive timestamps. Previously, an error would be thrown. Reported-by: Christian Barthel <bch@online.de> Link: https://orgmode.org/list/875y5tlouo.fsf@localhost
This commit is contained in:
parent
d560a2d739
commit
7cc208af91
@ -6335,6 +6335,11 @@ specification like [h]h:mm."
|
||||
(org-element-cache-map
|
||||
(lambda (el)
|
||||
(when (and (org-element-property :deadline el)
|
||||
;; Only consider active timestamp values.
|
||||
(memq (org-element-property
|
||||
:type
|
||||
(org-element-property :deadline el))
|
||||
'(diary active active-range))
|
||||
(or (not with-hour)
|
||||
(org-element-property
|
||||
:hour-start
|
||||
@ -6536,6 +6541,11 @@ scheduled items with an hour specification like [h]h:mm."
|
||||
(org-element-cache-map
|
||||
(lambda (el)
|
||||
(when (and (org-element-property :scheduled el)
|
||||
;; Only consider active timestamp values.
|
||||
(memq (org-element-property
|
||||
:type
|
||||
(org-element-property :scheduled el))
|
||||
'(diary active active-range))
|
||||
(or (not with-hour)
|
||||
(org-element-property
|
||||
:hour-start
|
||||
|
Loading…
Reference in New Issue
Block a user