emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] An issue with org-agenda-todo-list-sublevels


From: Nick Dokos
Subject: Re: [O] An issue with org-agenda-todo-list-sublevels
Date: Mon, 14 Dec 2015 15:48:17 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski <address@hidden> writes:

>> 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:
>
> (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)))))))
>
> and I see this:
>
> and: Wrong type argument: integer-or-marker-p, t
>
> What may be the problem?  How do I even debug this?
>

Are you testing it with emacs -q -l /path/to/min/org-init.el?
If not, you probably should: I don't get any errors with the
stuff above in my minimal org file, which leads me to suspect
it's something in (the rest of) your configuration.

--
Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]