From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: An issue with org-agenda-todo-list-sublevels Date: Sat, 12 Dec 2015 09:53:02 +0100 Message-ID: <87h9jo121d.fsf@nicolasgoaziou.fr> References: <877fkldgvw.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7ftb-0004Yz-Cz for emacs-orgmode@gnu.org; Sat, 12 Dec 2015 03:51:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7ftX-0004iJ-E1 for emacs-orgmode@gnu.org; Sat, 12 Dec 2015 03:51:15 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:33916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7ftX-0004iF-7l for emacs-orgmode@gnu.org; Sat, 12 Dec 2015 03:51:11 -0500 In-Reply-To: <877fkldgvw.fsf@mbork.pl> (Marcin Borkowski's message of "Fri, 11 Dec 2015 00:26:59 +0100") 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: Marcin Borkowski Cc: Org-Mode mailing list Hello, Marcin Borkowski writes: > I have org-agenda-todo-list-sublevels set to nil. However, given this > tree: > > * DONE task > ** TODO subtask > > it turns out that the todo list in the agenda shows the "subtask" anyway. > > Should it be so? I would guess not. It's not clear to to me it shouldn't be the case. AFAIU, the point of `org-agenda-todo-list-sublevels' is not to skip TODO entries but to limit the tasks you can process at a time. > The reason I'd like to exclude this "subtask" from displaying is > something like this: assume that I have a project, halfway done, which > must be postponed for some reason. I'd like to be able to do this: > > * SOMEDAY cool project > ** DONE preparation > ** TODO hard work > > where SOMEDAY is a done-type keyword. > > And of course, I don't want to be bothered by "hard work" in this case > in my global todo list. > > Is there a way to achieve this? You can use a dedicated function in `org-agenda-skip-function' for that (e.g., ignore task if one of its parents is a done task). Regards, -- Nicolas Goaziou