* match on any TODO state
@ 2015-07-30 12:17 Xebar Saram
2015-07-30 12:33 ` Nick Dokos
2015-07-30 17:27 ` Daimrod
0 siblings, 2 replies; 3+ messages in thread
From: Xebar Saram @ 2015-07-30 12:17 UTC (permalink / raw)
To: org mode
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
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
Best
Z
[-- Attachment #2: Type: text/html, Size: 657 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: match on any TODO state
2015-07-30 12:17 match on any TODO state Xebar Saram
@ 2015-07-30 12:33 ` Nick Dokos
2015-07-30 17:27 ` Daimrod
1 sibling, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2015-07-30 12:33 UTC (permalink / raw)
To: emacs-orgmode
Xebar Saram <zeltakc@gmail.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: match on any TODO state
2015-07-30 12:17 match on any TODO state Xebar Saram
2015-07-30 12:33 ` Nick Dokos
@ 2015-07-30 17:27 ` Daimrod
1 sibling, 0 replies; 3+ messages in thread
From: Daimrod @ 2015-07-30 17:27 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
Xebar Saram <zeltakc@gmail.com> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-30 17:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-30 12:17 match on any TODO state Xebar Saram
2015-07-30 12:33 ` Nick Dokos
2015-07-30 17:27 ` Daimrod
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.