From: Matt Lundin <mdl@imapmail.org>
To: Laurynas Biveinis <laurynas.biveinis@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: A custom agenda view for archivable non-project tasks?
Date: Mon, 21 May 2012 18:28:21 -0500 [thread overview]
Message-ID: <87y5olru5m.fsf@fastmail.fm> (raw)
In-Reply-To: <CAHkCEVdc0t9+dPvciSaorUzhEib0pT6d1+9tyAnT7GkuAGe+ww@mail.gmail.com> (Laurynas Biveinis's message of "Sun, 20 May 2012 14:27:18 +0300")
Laurynas Biveinis <laurynas.biveinis@gmail.com> writes:
> I am trying to implement the following but I am not really getting
> anywhere. I want to have a block in a custom agenda that lists all
> "archivable" tasks, where "archivable" means in any of "done" states
> and not in a project. In my system projects are subtrees that have
> 'project' tag associated with them. This tag is non-inheritable and
> I'd rather keep it that way.
>
> So I would like to have a way to list all items in a done state where
> there is no 'project' tag on it nor in any of its (indirect) parents.
Does the following work?
--8<---------------cut here---------------start------------->8---
(org-add-agenda-custom-command
'("x" "Archivable"
((tags "-project/DONE"
((org-use-tag-inheritance '("project")))))))
--8<---------------cut here---------------end--------------->8---
The local org-use-tag-inheritance binding should override your other
tag inheritance settings for this search only.
Best,
Matt
next prev parent reply other threads:[~2012-05-21 23:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-20 11:27 A custom agenda view for archivable non-project tasks? Laurynas Biveinis
2012-05-21 23:28 ` Matt Lundin [this message]
2012-05-22 4:34 ` Laurynas Biveinis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5olru5m.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=laurynas.biveinis@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.