emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Bastien <bzg@altern.org>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Agenda view: Displaying the contents of a task
Date: Sat, 05 Jan 2013 10:38:16 +0100	[thread overview]
Message-ID: <m2wqvsx94n.fsf@polytechnique.org> (raw)
In-Reply-To: <871ue0nci5.fsf@bzg.ath.cx>

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

  reply	other threads:[~2013-01-05  9:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-04  8:11 Agenda view: Displaying the contents of a task Alan Schmitt
2013-01-04 16:16 ` Bastien
2013-01-05  9:38   ` Alan Schmitt [this message]
2013-01-05 14:38     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wqvsx94n.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).