From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Lazy project definitions Date: Mon, 17 May 2010 18:54:32 +0200 Message-ID: References: <878w7jbl6m.fsf@gollum.intra.norang.ca> <2C475BA4-862D-434D-A123-8AADAF8A8EB2@gmail.com> <878w7ipvxi.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34049 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE4pN-0004KH-0j for emacs-orgmode@gnu.org; Mon, 17 May 2010 14:14:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE4pL-00065C-R5 for emacs-orgmode@gnu.org; Mon, 17 May 2010 14:14:08 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:45810) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE4pL-00060l-L4 for emacs-orgmode@gnu.org; Mon, 17 May 2010 14:14:07 -0400 Received: by mail-ew0-f216.google.com with SMTP id 8so1585852ewy.8 for ; Mon, 17 May 2010 11:14:07 -0700 (PDT) In-Reply-To: <878w7ipvxi.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org On May 17, 2010, at 2:14 PM, Bernt Hansen wrote: > Carsten Dominik writes: > >> In the stuck project definition, adding "^\\*\\{3,\\}" as the 4th >> element should exclude anything that has level 3 or up in the >> subtree. > > I don't think this will work. The regexp matches all tasks with > level 3 > or higher subtrees ... which is all projects so all projects are > considered unstuck. > > I need to be able to somehow say a project is not stuck if it doesn't > have a level 3 task (ie. no children) because it's not a project in > this > case. You are right. Ahh, I wish we had the power of Perl regular expressions in Emacs. It would be sooo easy then. No, I don't see a good way here. Maybe the best is to completely write your own skipper here. This is actually not too hard, see the Appendix A7 for an example. HTH - Carsten