From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Possible to get a subtree agenda view? Date: Sat, 13 Dec 2008 12:05:07 -0600 Message-ID: <4943F953.6010109@sift.info> 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 1LBYrh-0001mp-Gr for emacs-orgmode@gnu.org; Sat, 13 Dec 2008 13:05:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LBYrf-0001k4-Ek for emacs-orgmode@gnu.org; Sat, 13 Dec 2008 13:05:21 -0500 Received: from [199.232.76.173] (port=53478 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LBYrf-0001jt-9Q for emacs-orgmode@gnu.org; Sat, 13 Dec 2008 13:05:19 -0500 Received: from outbound-mail-32.bluehost.com ([69.89.18.152]:37862) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LBYre-00068F-LT for emacs-orgmode@gnu.org; Sat, 13 Dec 2008 13:05:18 -0500 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 I have a @car category that I use to keep track of things I might want to do when out in the car. Getting the agenda view *almost* works for this. But often an item here indicates that I should visit some store, and underneath the item is a list of things to purchase. The agenda view, of course, suppresses that list. This means that printing out (or pushing to my palm) the agenda view isn't really what I want. I'd really like to have the subtree below the matching items (because I know the subtree is always trivial). I *think* I should be able to do this with a custom agenda command, using sparse trees, but I'm having a couple of problems figuring this out: 1. I don't really want a sparse tree, because I don't want anything "upstream" of the selected items. 2. I want to force the matches to be expanded. 3. I want to match on a tag (@car) *and* on a TODO tag "TODO". I may be missing something, but I don't see any obvious conjunctive matching command in the sparse tree or agenda codes. Is there any existing way to do this, or should I start rooting around in the code? thanks! Robert