From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Agenda view: Displaying the contents of a task Date: Fri, 04 Jan 2013 17:16:04 +0100 Message-ID: <871ue0nci5.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrA3H-0003Cj-Hi for emacs-orgmode@gnu.org; Fri, 04 Jan 2013 11:23:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrA3A-0001JL-1X for emacs-orgmode@gnu.org; Fri, 04 Jan 2013 11:23:23 -0500 Received: from mail-wg0-f47.google.com ([74.125.82.47]:62733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrA39-0001J6-Ro for emacs-orgmode@gnu.org; Fri, 04 Jan 2013 11:23:15 -0500 Received: by mail-wg0-f47.google.com with SMTP id dq11so7827374wgb.14 for ; Fri, 04 Jan 2013 08:23:15 -0800 (PST) In-Reply-To: (Alan Schmitt's message of "Fri, 04 Jan 2013 09:11:18 +0100") 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: Alan Schmitt Cc: "emacs-orgmode@gnu.org" Hi Alan, Alan Schmitt 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 ...) HTH, -- Bastien