From: Daimrod <daimrod@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: match on any TODO state
Date: Thu, 30 Jul 2015 19:27:24 +0200 [thread overview]
Message-ID: <87zj2da743.fsf@gmail.com> (raw)
In-Reply-To: <CAOQHXPqm_s8ft+_x0qvwfEubFsX3KMPoFqtUW5Nj5RyyPy7eRw@mail.gmail.com> (Xebar Saram's message of "Thu, 30 Jul 2015 15:17:42 +0300")
[-- 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 --]
prev parent reply other threads:[~2015-07-30 17:27 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
2015-07-30 17:27 ` Daimrod [this message]
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=87zj2da743.fsf@gmail.com \
--to=daimrod@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).