From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Question about searches (ultimately for agenda) Date: Wed, 16 Dec 2009 07:02:54 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKsav-0005lz-6D for emacs-orgmode@gnu.org; Wed, 16 Dec 2009 07:03:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKsap-0005hu-6d for emacs-orgmode@gnu.org; Wed, 16 Dec 2009 07:03:03 -0500 Received: from [199.232.76.173] (port=49818 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKsao-0005hi-T8 for emacs-orgmode@gnu.org; Wed, 16 Dec 2009 07:02:58 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:60966) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKsao-0008Li-H9 for emacs-orgmode@gnu.org; Wed, 16 Dec 2009 07:02:58 -0500 In-Reply-To: (Mueen Nawaz's message of "Tue, 15 Dec 2009 21:35:39 -0600") 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 Mueen Nawaz writes: > 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] Yes indeed. I'm still practicing typing out the notation for keybindings. I suppose that C-c a is such a quick maneuver that I instinctively shorten its notation. :) > 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). Ah yes. Now I see that this is indeed what you were requesting in the original post. I suppose I need to brush up on basic logic as well. :) There is a shortened tag search syntax for including or excluding TODO states: C-c a m [RET] Jack/-DONE-RETURNED You could assign this a shortcut in using org-agenda-custom-commands command to avoid having to type it repeatedly. I'm not aware if there is a shorter way to indicate *all* inactive todo states in such a search. Best, Matt