From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: About headlines, checkboxes and heritage Date: Fri, 06 Jan 2012 14:40:12 +0100 Message-ID: <87pqext0eb.fsf@gmail.com> References: <1325785003.32912.YahooMailNeo@web29906.mail.ird.yahoo.com> <1325785260.90346.YahooMailNeo@web29901.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjA3a-0000Rj-Jn for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 08:42:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjA3Z-0004uf-7I for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 08:42:06 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:39112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjA3Z-0004uW-2v for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 08:42:05 -0500 Received: by wgbdt12 with SMTP id dt12so1704288wgb.0 for ; Fri, 06 Jan 2012 05:42:04 -0800 (PST) In-Reply-To: <1325785260.90346.YahooMailNeo@web29901.mail.ird.yahoo.com> (Ab Cd's message of "Thu, 5 Jan 2012 17:41:00 +0000 (GMT)") 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: Ab Cd Cc: "emacs-orgmode@gnu.org" Hello, Ab Cd writes: > Please consider the following file : > > * TODO working > ** TODO 1st part of the work > =C2=A0=C2=A0 CLOCK: [2012-01-05 jeu. 17:18] > > ** TODO second part of the work [0/3] > =C2=A0=C2=A0 - [ ] Task 1 > =C2=A0=C2=A0=C2=A0=C2=A0 - [ ] Subtask 1 > =C2=A0=C2=A0=C2=A0=C2=A0 - [ ] Subtask 2 > =C2=A0=C2=A0=C2=A0=C2=A0 - [ ] Subtask 3 > =C2=A0=C2=A0 - [ ] Task 2 > =C2=A0=C2=A0 - [ ] Task 3 > > But why shoudln't a TODO headline containing only checkbox that are > all completed ([3/3] in this case) be switched to done? Because lists and headlines are mostly unrelated. There's no particular reason that completing all tasks from the list should end the second part of the work. There might be some things left to be done, like writing a report... many things that Org can't guess. It's up to the user to tell when it is appropriate to close the task. Now, if the automatic closing of tasks fits your needs, you can make it possible with an appropriate value for `org-checkbox-statistics-hook'. > Also, why can't I toggle "Task 1" ? Let's assume I was away from my > computer when completing some or all of the subtasks. I would really > like to check Task 1 and have all the Subtasks checked automatically. Mark region between "Task 1" and Subtask 3, then use C-c C-x C-b > One last thing. I also think I would be nice that, if I switch "second > part of the work" to DONE, the counter would be set to [3/3] and all > the tasks and subtasks be checked as done. You want to treat lists as lesser headlines, which they are not. At least by default. Though, you can use `org-after-todo-state-change-hook' to call, each time a state change to a "done"-like keyword, `org-toggle-checkbox' on the headline (provided the first check-box in the section is unchecked). Regards, --=20 Nicolas Goaziou