From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Agenda view: Displaying the contents of a task Date: Sat, 05 Jan 2013 10:38:16 +0100 Message-ID: References: ,<871ue0nci5.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrQCs-0006wH-QY for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 04:38:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrQCr-0003Tp-CR for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 04:38:22 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:34610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrQCr-0003T3-6T for emacs-orgmode@gnu.org; Sat, 05 Jan 2013 04:38:21 -0500 In-reply-to: <871ue0nci5.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: "emacs-orgmode@gnu.org" Bastien writes: >> I'm trying to have an agenda view where the TODO entries show the >> subtree below, so that I can export them and have all the information >> required. I've been looking around and it seems that what I want to do >> is a "tags-tree", according to this message: >> http://lists.gnu.org/archive/html/emacs-orgmode/2008-12/msg00229.html >> >> Unfortunately I cannot get this to work, even using the example from the >> manual (http://orgmode.org/manual/Setting-Options.html). If I use the >> following custom view >> >> ("U" tags-tree "+@office" >> ((org-show-following-heading nil) >> (org-show-hierarchy-above nil))) >> >> I get a "org-check-for-org-mode: Cannot execute org-mode agenda command >> on buffer in org-agenda-mode" error when I try to view it. > > This means you tried to produce the tags-tree agenda view from a buffer > that is not an org-mode buffer. > > The {tags/occur/todo}-tree views are special because they need to be > called from an Org buffer, they are always computed locally. > > This was not very clear from the documentation so I added a note. > >> Is this a bug with tags-tree? Is there a way to do what I want without >> using tags-tree? > > Yes. Either using tags-tree or any other way to limit the buffer to the > headlines you want (C-c / comes to mind) and then exporting only the > visible parts of the buffer (C-c C-e v ...) OK, I think I understand. In my setup all the todo are in the same file, so it should help. So I'll rephrase my question: how can I set-up an agenda custom view such that it shows only the TODO from one file that have a given tag, as well as their subtrees? (I want to use an agenda custom view because the agenda export command are really nice and easy to use programatically.) Thanks, Alan