emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Mueen Nawaz <mueen@nawaz.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Question about searches (ultimately for agenda)
Date: Tue, 15 Dec 2009 22:26:22 -0500	[thread overview]
Message-ID: <m2iqc7r44h.fsf@fastmail.fm> (raw)
In-Reply-To: <hg9era$e8h$1@ger.gmane.org> (Mueen Nawaz's message of "Tue, 15 Dec 2009 19:57:25 -0600")

Mueen Nawaz <mueen@nawaz.org> writes:

> In the docs (10.3.3 Matching tags and properties), I see ways to do
> tag searches that can also search TODO states.
>
> Can I also search TODO levels? For example, in one file covered by the
> agenda, I use the usual DONE to denote done. In another, which is
> focused on simply stuff that I have borrowed/lent, I have RETURNED as
> my "DONE" state.
>
> I occasionally apply tags to headings with the name of the person
> involved. So let's say that I've put :Jack: on some headings of items
> that have been lent and returned. But I also have :Jack: in my other
> .org files that are not about lending/borrowing.
>
> I want to search for all headlines that have :Jack: in them, but
> exclude anything that is a "DONE" state - so exclude both DONE and
> RETURNED.
>
> I know I can just do:
> Jack-TODO="DONE"-TODO="RETURNED"

Provided DONE and RETURNED are inactive todos than the following should
suffice:

C-a M Jack [RET]

AFAIK, C-a M returns only active TODOs that match the tag. Thus any
inactive state will be excluded. (There may be a variable that
controls this, but I'm not aware of it.)

Best,
Matt

  reply	other threads:[~2009-12-16  3:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-16  1:57 Question about searches (ultimately for agenda) Mueen Nawaz
2009-12-16  3:26 ` Matt Lundin [this message]
2009-12-16  3:35   ` Mueen Nawaz
2009-12-16  9:37     ` Carsten Dominik
2009-12-17  4:53       ` Mueen Nawaz
2009-12-17 19:26         ` Carsten Dominik
2009-12-19  4:35           ` Mueen Nawaz
2009-12-20 12:51             ` Carsten Dominik
2009-12-16 12:02     ` Matt Lundin

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=m2iqc7r44h.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mueen@nawaz.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).