From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: automatically mark DONE when all sub checkboxes are checked Date: Fri, 10 Feb 2012 16:47:50 -0600 Message-ID: References: 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]:41297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvzFx-0005Er-Ee for emacs-orgmode@gnu.org; Fri, 10 Feb 2012 17:47:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvzFv-0004tY-RH for emacs-orgmode@gnu.org; Fri, 10 Feb 2012 17:47:53 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:44373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvzFv-0004tT-I3 for emacs-orgmode@gnu.org; Fri, 10 Feb 2012 17:47:51 -0500 Received: by bkty12 with SMTP id y12so497064bkt.0 for ; Fri, 10 Feb 2012 14:47:50 -0800 (PST) In-Reply-To: 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: Angel de Vicente Cc: emacs-orgmode@gnu.org On Fri, Feb 10, 2012 at 4:31 PM, Angel de Vicente wrote: > Hi, > > John Hendy writes: >> I don't get any error, but it doesn't work. Also, the example in worg >> had an extra parenthesis at the end of it... not sure if that's >> goofing it up. I don't know lisp, so I just deleted one of the last >> parentheses and loading my .emacs stopped complaining. Not sure if >> that last trailing one was the offender or not. In any case, this is >> not working for me on an up to date org install (pulled yesterday). > > Perhaps you are trying a TODO heading that doesn't have one of the > progress indicators? > > I have just tried it, and with TODOs headings as follows works OK. If > you don't put the progress indicators then it doesn't work, since the > function is looking for the 100% text or for n/n (which indicates that > you have completed all the tasks). > > * TODO try [%] > > * TODO try [/] Yup -- that was the ticket. Though the function just seems to cycle the state to the first done one in the list. My states are: -- todo next | waiting cancelled done Thus, when I complete all checkboxes, it actually moves it from todo -> wai= ting. In any case, it seems that with the right setup (probably just changing the order of my items after the =3D|=3D) it does work. As a general note, I think the manual would be improved with concrete examples of what this means: ,--- | Note that the code requires that a checkbox statistics | cookie be present in order for it to work. `--- I had no idea what that meant and thought it was just reiterating that you actually need checkboxes for this to work. Now it makes sense. Even inserting "(a statistics cookie is [/] or [%] in the parent todo headline)" would make it crystal clear. Thanks, John > > Actually, I wonder why this is not the default behaviour. It looks > natural that if a task is made of checkboxes and you complete all of > them the task should be DONE. > > Cheers, > -- > =C3=81ngel de Vicente > http://angel-de-vicente.blogspot.com/ > >