From: Memnon Anon <gegendosenfleisch@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: Checkbox Statistics (was: Todo state for [un]ordered list items?)
Date: Sat, 27 Mar 2010 22:09:08 +0000 (UTC) [thread overview]
Message-ID: <871vf5cvcy.fsf@mean.albasani.net> (raw)
In-Reply-To: a037f7361003271407p945bfe9k6a1ee2ee2bc44e4d@mail.gmail.com
Hi,
btw, it is easier to keep multiple questions in separate mails with
separate subjects.
Thus, more people will read and answer (easier to identify the topic,
shorter so quicker to skim over etc.).
John Hendy <jw.hendy@gmail.com> writes:
> P.S. Somewhat un-related, but while taking about lists... In an
> unordered list like this (my todo list for today)
[...]
> Still under the todo headline whether -floors is a checkbox or not?
> Shouldn't they be counted? Based on the example here (
> http://www.gnu.org/software/emacs/manual/html_node/org/Checkboxes.html),
> I should get the behavior I expect. In fact, when yanking it into my
> file, I get this instead of what's shown on the tutorial page:
>
> * TODO Organize party [1/3] (instead of [3/6]
> - call people [1/3]
> - [ ] Peter
> - [X] Sarah
> - [ ] Sam
> - [X] order food
> - [ ] think about what music to play
> - [X] talk to the neighbors
>
> Bug or something in .emacs that I'm unaware of?
This is not the current example:
,----[ (info "(org)Checkboxes") ]
| * TODO Organize party [2/4]
| - [-] call people [1/3]
| - [ ] Peter
| - [X] Sarah
| - [ ] Sam
| - [X] order food
| - [ ] think about what music to play
| - [X] talk to the neighbors
`----
See the [-] cookie? Always use the documentation provided for your
version! Orgmode is a moving quickly.
Using C-h a org checkbox, I found this var:
,----[ (info "(dir)Top") ]
| org-hierarchical-checkbox-statistics is a variable defined in `org-list.el'.
|
| Documentation:
| Non-nil means, checkbox statistics counts only the state of direct children.
| When nil, all boxes below the cookie are counted.
| This can be set to nil on a per-node basis using a COOKIE_DATA property
| with the word "recursive" in the value.
`----
and in the manual
,----[ (info "(org)Checkboxes") ]
| (1) Set the variable `org-hierarchical-checkbox-statistics' if you
| want such cookies to represent the all checkboxes below the cookie, not
| just the direct children.
`----
So, for general behaviour, use
(setq org-hierarchical-checkbox-statistics nil)
On a file-wide basis, add something like:
#+PROPERTY: COOKIE_DATA recursive
On a per-headline basis, use
* Task [/]
:PROPERTIES:
:COOKIE_DATA: recursive
:END:
I do not use checkboxes, but that should do.
#+PROPERTY: COOKIE_DATA recursive checkbox
* TODO Organize party [2/7]
:PROPERTIES:
:COOKIE_DATA: recursive checkbox
:END:
- [-] call people [1/2]
- [ ] Peter
- [X] Sarah
- [ ] Sam
- [X] order food
- [ ] think about what music to play
- [ ] talk to the neighbors
Problem solved ;)
Memnon
prev parent reply other threads:[~2010-03-27 22:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-27 19:41 Todo state for [un]ordered list items? John Hendy
2010-03-27 20:15 ` Memnon Anon
2010-03-27 21:07 ` John Hendy
2010-03-27 22:09 ` Memnon Anon [this message]
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=871vf5cvcy.fsf@mean.albasani.net \
--to=gegendosenfleisch@googlemail.com \
--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).