From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurynas Biveinis Subject: Re: A custom agenda view for archivable non-project tasks? Date: Tue, 22 May 2012 07:34:10 +0300 Message-ID: References: <87y5olru5m.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWgnr-0001Gt-BW for emacs-orgmode@gnu.org; Tue, 22 May 2012 00:34:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWgnp-00089b-Kx for emacs-orgmode@gnu.org; Tue, 22 May 2012 00:34:34 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:58615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWgnp-00089T-C9 for emacs-orgmode@gnu.org; Tue, 22 May 2012 00:34:33 -0400 Received: by dakp5 with SMTP id p5so8194761dak.0 for ; Mon, 21 May 2012 21:34:31 -0700 (PDT) In-Reply-To: <87y5olru5m.fsf@fastmail.fm> 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: Matt Lundin Cc: emacs-orgmode@gnu.org 2012/5/22 Matt Lundin : >> 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 > =C2=A0'("x" "Archivable" > =C2=A0 ((tags "-project/DONE" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((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. Thanks, this is exactly what I was looking for! --=20 Laurynas