From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Question about searches (ultimately for agenda) Date: Wed, 16 Dec 2009 10:37:42 +0100 Message-ID: <22ED17FE-4FB4-4E3E-943A-7B6B6FF92AAF@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKrPq-0005fo-HC for emacs-orgmode@gnu.org; Wed, 16 Dec 2009 05:47:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKrPl-0005dz-LR for emacs-orgmode@gnu.org; Wed, 16 Dec 2009 05:47:33 -0500 Received: from [199.232.76.173] (port=40558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKrPl-0005dt-E4 for emacs-orgmode@gnu.org; Wed, 16 Dec 2009 05:47:29 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:48222) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKrPl-0000L6-45 for emacs-orgmode@gnu.org; Wed, 16 Dec 2009 05:47:29 -0500 Received: by ewy24 with SMTP id 24so897923ewy.26 for ; Wed, 16 Dec 2009 02:47:28 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mueen Nawaz Cc: emacs-orgmode@gnu.org On Dec 16, 2009, at 4:35 AM, Mueen Nawaz wrote: > On 12/15/09 21:26, Matt Lundin wrote: >> Provided DONE and RETURNED are inactive todos than the following >> should >> suffice: >> >> C-a M Jack [RET] > > I think you meant C-c a M Jack [RET] > > It actually does filter out inactive TODO's, but I actually wanted > to do C-c a m Jack [RET]. I don't want to limit the search to > headlines that have a TODO state. I just want to exclude those that > have DONE (or anything equivalent to it). This is what skip conditions are for. Here is an entry for org-agenda-custom-commands which does this for the specific "Jack" example: ("X" "Tags match ignoring done stuff" tags "Jack" ((org-agenda-skip-function '(and (org-entry-is-done-p) (outline-next-heading) (point))))) If you want to be prompted for the tags match, leave the match element empty (empty string). But do that only after you next upgrade from the git repo, because there was a bug related to prompting. Hope this helps - Carsten