emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Angel de Vicente <angelv@iac.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: automatically mark DONE when all sub checkboxes are checked
Date: Fri, 10 Feb 2012 16:47:50 -0600	[thread overview]
Message-ID: <CA+M2ft8poe8q8ovXO7O0rvM-Yc4jW+TxpfEh8ZUkm-x=iqdwvw@mail.gmail.com> (raw)
In-Reply-To: <yegsjiie2x3.fsf@carro.ll.iac.es>

On Fri, Feb 10, 2012 at 4:31 PM, Angel de Vicente <angelv@iac.es> wrote:
> Hi,
>
> John Hendy <jw.hendy@gmail.com> 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 -> waiting.

In any case, it seems that with the right setup (probably just
changing the order of my items after the =|=) 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,
> --
> Ángel de Vicente
> http://angel-de-vicente.blogspot.com/
>
>

  reply	other threads:[~2012-02-10 22:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 21:06 automatically mark DONE when all sub checkboxes are checked Peter Salazar
2012-02-10 21:13 ` John Hendy
2012-02-10 22:31   ` Angel de Vicente
2012-02-10 22:47     ` John Hendy [this message]
2012-02-11  0:41       ` Nick Dokos
2012-02-11  2:20         ` John Hendy
2012-02-11 18:17 ` Nick Dokos
2012-02-13  8:08   ` Peter Salazar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+M2ft8poe8q8ovXO7O0rvM-Yc4jW+TxpfEh8ZUkm-x=iqdwvw@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=angelv@iac.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).