From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Subject: Re: Showing only subprojects in the agenda Date: Wed, 27 Feb 2013 22:41:20 -0500 Message-ID: <87mwup14wv.wl%wiskey5alpha@gmail.com> References: <87ip5ndfj6.fsf@norang.ca> <87hal7vdca.wl%wiskey5alpha@gmail.com> <87ehgbciar.fsf@norang.ca> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAuN8-00049d-Uc for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 22:41:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAuN7-000805-Py for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 22:41:30 -0500 Received: from mail-qe0-f46.google.com ([209.85.128.46]:53092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAuN7-000801-La for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 22:41:29 -0500 Received: by mail-qe0-f46.google.com with SMTP id a11so1102533qen.33 for ; Wed, 27 Feb 2013 19:41:29 -0800 (PST) In-Reply-To: <87ehgbciar.fsf@norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org, Tim At Wed, 20 Feb 2013 06:54:04 -0500, Bernt Hansen wrote: > > If all of your projects are normally at level 2 will this work? > > C-c a m LEVEL=2/!TODO RET > Bernt, I really appreciate your time. Unfortunately, this doesnt quite get me what I am looking for. My current method of defining projects and actions is : - any thing that needs to be accomplished is a TODO - a TODO can have TODOs as children, for as many levels as it takes to organize the project and subprojects - Next actions are defined with a NEXT key word and are tagged with the appropriate context to have them show on my next actions list (i.e. errand, office, home) I would like to have 2 views of the projects : The first is a hierarchial view of all TODOs , which i do using the indented agenda list of TODOs. The second is now using what you have published on your website using the skip functions. Since I want to see all TODOs that have NEXT items as children, or, said another way A project is any TODO that has NEXT as children I modified your =bh/is-project-p= to look for NEXT like so #+BEGIN_SRC elisp (while (and (not has-subtask) (< (point) subtree-end) - (re-search-forward "^\*+ TODO" subtree-end t)) + (re-search-forward "^\*+ NEXT" subtree-end t)) (when (member (org-get-todo-state) org-todo-keywords-1) #+END_SRC Again, thank you for your help, and for putting your setup out on the web for all of us to benefit from. -Tim