ENH inform user of their idiocy when assigning a repeate to an EPG
This commit is contained in:
parent
7b98e2099a
commit
4fe5fe5b5d
|
@ -1458,9 +1458,12 @@ deadline (eg via epoch time) or if it has a repeater."
|
||||||
`((:lifetime (lambda (id) (org-x-dag-ns-is-leaf-p ,adjlist id)))
|
`((:lifetime (lambda (id) (org-x-dag-ns-is-leaf-p ,adjlist id)))
|
||||||
(:endpoint))
|
(:endpoint))
|
||||||
(lambda (id this-h res)
|
(lambda (id this-h res)
|
||||||
(-let (((&alist :lifetime l) res)
|
(-let* (((&alist :lifetime l) res)
|
||||||
(d (org-x-dag-adjlist-id-planning adjlist :deadline id)))
|
(d (org-x-dag-adjlist-id-planning adjlist :deadline id))
|
||||||
(ht-set this-h id (either :right `(:committed ,l :deadline ,d)))
|
(ns (if (org-ml-timestamp-get-repeater d)
|
||||||
|
(either :left "EPG has deadline with repeater")
|
||||||
|
(either :right `(:committed ,l :deadline ,d)))))
|
||||||
|
(ht-set this-h id ns)
|
||||||
(org-x-dag-ht-add-links id ht-l :fulfilled l))))))
|
(org-x-dag-ht-add-links id ht-l :fulfilled l))))))
|
||||||
|
|
||||||
(defun org-x-dag-ht-get-maybe (htbl id key)
|
(defun org-x-dag-ht-get-maybe (htbl id key)
|
||||||
|
|
Loading…
Reference in New Issue