emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] match on any TODO state


From: Nick Dokos
Subject: Re: [O] match on any TODO state
Date: Thu, 30 Jul 2015 08:33:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Xebar Saram <address@hidden> writes:

> Hi 
> I created this function which works well.
>
>  (defun z/org-sparse-todo ()
>     (interactive)
>     (org-match-sparse-tree t "+TODO=\"TODO\""))
>
> my question is how can i match on ANY todo state and not just literaly TODO
> ie if i have this in my org file 
>
> #+TODO: TODO(t) EXP(e) | SUBMITTED(s) K_TRACK(k) PAUSED(p) DONE(d) 
>
> how can i match it by all the todos like TODO and EXP
>

Untested, but it looks to me as if

(org-match-sparse-tree t)

should work.

--
Nick





reply via email to

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