emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Ulf Stegemann <ulf-news@zeitform.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Counter cookies and mixed checkbox lists/subtasks
Date: Wed, 8 Apr 2009 16:47:37 +0200	[thread overview]
Message-ID: <7F5AF424-5413-44D5-A73C-A4BA6B9FB5F9@gmail.com> (raw)
In-Reply-To: <zf.upnws9v5yi5.fsf@zeitform.de>

Hi Ulf,

there is no way currently to force a cookie either way.

I think the the right solution is to modify the structure, so
that the check boxes are only in entries without children.
Seems to me that this is always possible - in your case
you could just create a "first child" that gets the checkboxes.

- Carsten

On Apr 8, 2009, at 10:40 AM, Ulf Stegemann wrote:

> The following applies to Emacs 23.0.92 and Org 6.25trans, both checked
> out a few minutes ago.
>
> I'm quite fond of using counter cookies in headlines (`[/]' or `[%]').
> However, when using those cookies in headlines where the body mixes up
> checkbox lists and subtasks org-mode changes reference of the cookie
> between list items and tasks depending on what has been last updated
> (probably due to the fact that the cookies may refer to both types).
>
> To give an example:
>
> --8<--------------------------snip-------------------------->8---
> * TODO Something to do [/]
>
>  - [ ] first item
>  - [ ] second item
>  - [ ] third item
>
> ** TODO first subtask
> ** TODO second subtask
> --8<--------------------------snap-------------------------->8---
>
> Now, when checking a check box this would look like:
>
> --8<--------------------------snip-------------------------->8---
> * TODO Something to do [1/3]
>
>  - [x] first item
>  - [ ] second item
>  - [ ] third item
>
> ** TODO first subtask
> ** TODO second subtask
> --8<--------------------------snap-------------------------->8---
>
> Given that, changing the state of a subtask will lead to:
>
> --8<--------------------------snip-------------------------->8---
> * TODO Something to do [1/2]
>
>  - [x] first item
>  - [ ] second item
>  - [ ] third item
>
> ** DONE first subtask
> ** TODO second subtask
> --8<--------------------------snap-------------------------->8---
>
> So the question is: Is it possible to give the counter cookie a clear
> reference, i.e. always counting the checkbox list *or* the subtasks?
>
> Ulf
>
>
>
> _______________________________________________
> 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

  reply	other threads:[~2009-04-08 14:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08  8:40 Counter cookies and mixed checkbox lists/subtasks Ulf Stegemann
2009-04-08 14:47 ` Carsten Dominik [this message]
2009-04-16  9:05   ` Ulf Stegemann
2009-04-16 11:45     ` Carsten Dominik
2009-04-16 13:24       ` Ulf Stegemann
2009-04-17 16:50         ` Carsten Dominik
2009-04-20  8:00           ` Ulf Stegemann
2009-04-22  4:16             ` Carsten Dominik
2009-04-22  8:08               ` Ulf Stegemann

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=7F5AF424-5413-44D5-A73C-A4BA6B9FB5F9@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ulf-news@zeitform.de \
    /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).