Xebar Saram 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 In the agenda match, I use TODO<>"". That is, all TODO keywords that aren't empty. Best, -- Daimrod/Greg