From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Berry Subject: Re: Custom Agenda View for Projects Date: Thu, 17 Mar 2011 15:55:32 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=53203 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0M6R-0005Sd-17 for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 18:55:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0M6P-0004k2-R4 for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 18:55:34 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:53802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0M6P-0004jo-Lz for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 18:55:33 -0400 Received: by qwa26 with SMTP id 26so3142866qwa.0 for ; Thu, 17 Mar 2011 15:55:32 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christian Zang Cc: emacs-orgmode@gnu.org On Tue, Mar 15, 2011 at 14:35, Christian Zang wrote: > 2011/3/15 Christian Zang : >> 2011/3/15 Manish : >>> On Tue, Mar 15, 2011 at 11:54 AM, Christian Zang wrote: >>>> 2011/3/15 Manish: >>>>> On Tue, Mar 15, 2011 at 12:54 AM, Christian Zang wrote: >>>>>> Dear all, >>>>>> >>>>>> I might be overlooking something very obvious, but I cannot find the >>>>>> solution: I have various org files, in which "projects" (anything >>>>>> requiring more than one action step...) are first level headings >>>>>> marked using the TODO kwd PROJ. If I tell my agenda to list all items >>>>>> with kwd PROJ (either via C-a T PROJ or as a custom agenda view via >>>>>> "tags-todo "LEVEL=1""), only the ones without siblings are returned. >>>>>> I've looked into "org-tags-match-list-sublevels" but this is not quite >>>>>> the right thing to calibrate... ... > Update: I found the culprit in "org-enforce-todo-dependencies", set to > nil and all projects labeled as PROJ are displayed again. Have to > think about why this affects the agenda views in that way... Someone correct me if I'm wrong, but: I think org considers child tasks to be dependencies of the parent task -- so if a parent task (such as your PROJ) has children, it won't be displayed in a tags-todo agenda view, because that takes dependencies into account. Have you tried just a "tags" view with a match of "TODO=\"PROJ\""? IIRC this will do what you want. So it would be: ("P" "Projects" tags "TODO=\"PROJ\"" ((org-agenda-overriding-header "List of Projects"))) -- Josh