[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] An issue with org-agenda-todo-list-sublevels
From: |
Marcin Borkowski |
Subject: |
Re: [O] An issue with org-agenda-todo-list-sublevels |
Date: |
Mon, 14 Dec 2015 20:17:48 +0100 |
User-agent: |
mu4e 0.9.13; emacs 25.0.50.1 |
> On 2015-12-12, at 09:53, Nicolas Goaziou <address@hidden> 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