> On 2015-12-12, at 09:53, Nicolas Goaziou <[email protected]> wrote:
>
>> You can use a dedicated function in `org-agenda-skip-function' for that
>> (e.g., ignore task if one of its parents is a done task).
OK, so it doesn't work (probably because I'm doing something wrong...)
I did this:
--8<---------------cut here---------------start------------->8---
(defun mbork/org-agenda-skip-if-parent-done ()
"Return t if any of the parents of the current entry is a DONE
item."
(save-excursion
(catch 'done
(while (org-up-heading-safe)
(if (org-entry-is-done-p)
(throw 'done t))))))
(setq org-agenda-custom-commands
'(("n"
"Agenda and TODOs"
((agenda "")
(alltodo "" ((org-agenda-skip-function
#'mbork/org-agenda-skip-if-parent-done)))))))
--8<---------------cut here---------------end--------------->8---
and I see this:
--8<---------------cut here---------------start------------->8---
and: Wrong type argument: integer-or-marker-p, t
--8<---------------cut here---------------end--------------->8---
What may be the problem? How do I even debug this?
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University