mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 04:11:18 +00:00
Even if SEQ itself doesn't care, its children might care
This commit is contained in:
parent
afcc8fbc46
commit
023934e07f
1 changed files with 4 additions and 4 deletions
|
|
@ -55,14 +55,14 @@
|
|||
'stuck
|
||||
'active)))
|
||||
|
||||
(defun seq-status? ()
|
||||
(defun seq-status? (&optional seek-active)
|
||||
(if (olc/any-todo-children?
|
||||
(or (member (opr/type-of-task) '(active))
|
||||
(eq 'active (opr/type-of-project))))
|
||||
(eq 'active (opr/type-of-project seek-active))))
|
||||
'active
|
||||
(if (olc/any-todo-children?
|
||||
(or (eq 'wait (opr/type-of-task))
|
||||
(eq 'invis (opr/type-of-project))))
|
||||
(eq 'invis (opr/type-of-project seek-active))))
|
||||
'invis
|
||||
'stuck)))
|
||||
|
||||
|
|
@ -114,7 +114,7 @@
|
|||
(t
|
||||
(let ((status (pcase state
|
||||
("EMPTY" (empty-status?))
|
||||
("SEQ" (seq-status?))
|
||||
("SEQ" (seq-status? greedy-active))
|
||||
("META" (meta-status? greedy-active))
|
||||
("ONE" (when (eq 'project (opr/ambiguous-task-or-project))
|
||||
(seq-status?)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue