From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Search for tags in TODO item in certain states Date: Mon, 01 Oct 2007 01:21:18 -0400 Message-ID: <470083CE.3060307@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IcDik-0002f0-4o for emacs-orgmode@gnu.org; Mon, 01 Oct 2007 01:21:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IcDih-0002eW-LZ for emacs-orgmode@gnu.org; Mon, 01 Oct 2007 01:21:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcDih-0002eT-Ee for emacs-orgmode@gnu.org; Mon, 01 Oct 2007 01:21:27 -0400 Received: from wx-out-0506.google.com ([66.249.82.226]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IcDih-0000V1-50 for emacs-orgmode@gnu.org; Mon, 01 Oct 2007 01:21:27 -0400 Received: by wx-out-0506.google.com with SMTP id s7so2936710wxc for ; Sun, 30 Sep 2007 22:21:26 -0700 (PDT) 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: emacs-orgmode@gnu.org Hi, Can anyone please show me how to search for a tag in TODO items that are in certain states only? For example, I want to have a list of TODO items with "buy" tag, but not those in "DONE" or "CANCELED" state. I don't see how to do it by reading the documentation for org-agenda-custom-commands. Thanks a lot. Wanrong