From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: How to produce an agenda that filters on both todo keyword and tag? Date: Thu, 24 Jul 2008 03:14:33 +0530 Message-ID: References: <9E067A1AECCB154485D4CF7E4BEF4D8E08ECF970@post07.corp.seic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLm8U-0000vb-4r for emacs-orgmode@gnu.org; Wed, 23 Jul 2008 17:44:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLm8T-0000v5-FV for emacs-orgmode@gnu.org; Wed, 23 Jul 2008 17:44:37 -0400 Received: from [199.232.76.173] (port=33502 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLm8T-0000uw-9p for emacs-orgmode@gnu.org; Wed, 23 Jul 2008 17:44:37 -0400 Received: from po-out-1718.google.com ([72.14.252.156]:49478) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLm8T-0005ke-1H for emacs-orgmode@gnu.org; Wed, 23 Jul 2008 17:44:37 -0400 Received: by po-out-1718.google.com with SMTP id c31so5733741poi.1 for ; Wed, 23 Jul 2008 14:44:34 -0700 (PDT) In-Reply-To: <9E067A1AECCB154485D4CF7E4BEF4D8E08ECF970@post07.corp.seic.com> Content-Disposition: inline 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: "Parker, Matthew" Cc: emacs-orgmode@gnu.org On Thu, Jul 24, 2008 at 2:55 AM, Parker, Matthew wrote: > Hi, > > I've read through the manual and maybe missed it but how does one > > produce an agenda that filters on both a certain todo keyword and a certain > tag? > > Here's the scenario: > > 1. Given a file setup w/ these TODO sequence keywords and tags > > #+SEQ_TODO: TODO WAITING DONE > > #+TAGS: Home(h) Work(w) Errands(e) Phone(p) Computer(c) > > > > 2. And given these headings > > * TODO xxx :Work: > > * WAITING just this one! :Work: > > * DONE yyy :Work: > > * zzz :Work: > > > > 3. And given the fact that > > C-c a t gives list of all TODO, WAITING, and DONEs > > C-c a T & "WAITING" gives list of just WAITING items > > C-c a m & "work" gives list of all headings tagged w/ "work", TODO or > otherwise > > C-c a M & "work" gives list of all TODO entries w/ "work" tag > > > > How can I produce a list of "WAITING" todo items tagged w/ "work", i.e. > > 1. A certain type of todo keyword, e.g. WAITING > > 2. A certain tag?, e.g. "work" Does this help? (setq org-agenda-custom-commands (quote (("E" "Errands To Run" tags-todo #("work!/WAITING") nil)))) -- Manish