From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: A custom agenda view for archivable non-project tasks? Date: Mon, 21 May 2012 18:28:21 -0500 Message-ID: <87y5olru5m.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWc1b-0003Ka-EK for emacs-orgmode@gnu.org; Mon, 21 May 2012 19:28:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWc1Z-0007i7-Ft for emacs-orgmode@gnu.org; Mon, 21 May 2012 19:28:27 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWc1Z-0007hb-2U for emacs-orgmode@gnu.org; Mon, 21 May 2012 19:28:25 -0400 In-Reply-To: (Laurynas Biveinis's message of "Sun, 20 May 2012 14:27:18 +0300") 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: Laurynas Biveinis Cc: emacs-orgmode@gnu.org Laurynas Biveinis 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