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)))
|
||||
(:endpoint))
|
||||
(lambda (id this-h res)
|
||||
(-let (((&alist :lifetime l) res)
|
||||
(d (org-x-dag-adjlist-id-planning adjlist :deadline id)))
|
||||
(ht-set this-h id (either :right `(:committed ,l :deadline ,d)))
|
||||
(-let* (((&alist :lifetime l) res)
|
||||
(d (org-x-dag-adjlist-id-planning adjlist :deadline id))
|
||||
(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))))))
|
||||
|
||||
(defun org-x-dag-ht-get-maybe (htbl id key)
|
||||
|
|
Loading…
Reference in New Issue