From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug in "simple dependencies" handling (?) Date: Thu, 26 Mar 2009 16:43:33 +0100 Message-ID: <26774666-0694-4442-840D-404D5FB570F3@gmail.com> References: <49C930EA.2000205@obyz.de> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lmrk7-000202-5C for emacs-orgmode@gnu.org; Thu, 26 Mar 2009 11:43:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lmrk1-0001wI-SI for emacs-orgmode@gnu.org; Thu, 26 Mar 2009 11:43:41 -0400 Received: from [199.232.76.173] (port=42724 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmrk1-0001wF-Mw for emacs-orgmode@gnu.org; Thu, 26 Mar 2009 11:43:37 -0400 Received: from ey-out-1920.google.com ([74.125.78.146]:51591) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lmrk1-0005ut-3K for emacs-orgmode@gnu.org; Thu, 26 Mar 2009 11:43:37 -0400 Received: by ey-out-1920.google.com with SMTP id 13so126758eye.24 for ; Thu, 26 Mar 2009 08:43:35 -0700 (PDT) In-Reply-To: <49C930EA.2000205@obyz.de> 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: Daniel Hochheimer Cc: emacs-orgmode@gnu.org Hi Daniel, yes, this could be seen as a bug. However, the implementation does not work by scanning the entire buffer and marking tasks that should be blocked. Rather, it goes to each task and then scans around to see locally what the dependencies are. In this case it looks only at the parent, not at the grand parent. I don't expect to change this because it would make the mechanism a lot more complex and slower. However, the todo dependencies are simple hook functions, and an interested programmer could relatively easily extend them, I believe. - Carsten On Mar 24, 2009, at 8:13 PM, Daniel Hochheimer wrote: > Hello, > > first of all, please excuse my poorly english. > > It seems there is a bug in the handling of simple dependencies. > I think an example tree is the best solution, to show you the bug: > > * Projects > #+CATEGORY: Projects > *** TODO foo bar project > :PROPERTIES: > :ORDERED: t > :END: > ***** TODO foo subproject :FooSubproject: > ******* TODO Task 1 > ***** TODO bar subproject :BarSubproject: > ******* TODO Task 1 > > This is in my .emacs file: > (setq org-enforce-todo-dependencies t) > (setq org-agenda-dim-blocked-tasks 'invisible) > (setq org-odd-levels-only t) > > the expected global todo agenda view imho is: > > Projects: Task 1 :FooSubproject: > > but actual it is unfortunately: > > Projects: Task 1 :FooSubproject: > Projects: Task 1 :BarSubproject: > > > Imho "Task 1" from "bar subproject" should not be visible, > because "bar subproject " is blocked because of the > ORDERED property (therefore it's childs should be blocked, too) > > > Is it easy / possible to fix this bug? My whole GTD system is > heavily based on such project / subproject-Constructs. But with > this bug my global todo agenda view is unfortunately "polluted" > a little bit with tasks from projects that shouldn't be active. > > Best regards, > Daniel > > PS: many thanks to the developer of this great emacs mode, I really > enjoy org-mode. I started using emacs only because of the great > abilities of org-mode. > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode