emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: match on any TODO state
Date: Thu, 30 Jul 2015 08:33:49 -0400	[thread overview]
Message-ID: <87y4hx964y.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAOQHXPqm_s8ft+_x0qvwfEubFsX3KMPoFqtUW5Nj5RyyPy7eRw@mail.gmail.com

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

  reply	other threads:[~2015-07-30 12:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30 12:17 match on any TODO state Xebar Saram
2015-07-30 12:33 ` Nick Dokos [this message]
2015-07-30 17:27 ` Daimrod

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4hx964y.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).