emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Thomas Albers <tgalbers2000@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-checkbox-hierarchical-statistics not working as expected
Date: Sun, 02 Aug 2020 00:06:13 -0400	[thread overview]
Message-ID: <87wo2h4rpm.fsf@kyleam.com> (raw)
In-Reply-To: <87y2n2e2ys.fsf@gmail.com>

Thomas Albers writes:

> Footnote 2 in the chapter 5.6 talks about the
> 'org-checkbox-hierarchical-statistics' variable, which I have set to
> nil. But the top level header still does no show the count of checked off
> items.
>
> I have also used the :COOKIE_DATA: property set to recursive with the
> same results.
>
> What I would expect based on the documentation:
>      * Some header [1/2]
>      :PROPERTIES:
>      :COOKIE_DATA: recursive
>      :END:
>      ** Another header [1/2]
>        - [X] some item 1
>        - [ ] some item 2
>        
> What I get:
>      * Some header [0/0]
>      :PROPERTIES:
>      :COOKIE_DATA: recursive
>      :END:
>      ** Another header [1/2]
>        - [X] some item 1
>        - [ ] some item 2
>
> Am I interpreting something wrong?

My understanding is that org-checkbox-hierarchical-statistics isn't
about counting boxes from children headings but instead about counting
children checkboxes.  For example, here's a count with the default value
of t for org-checkbox-hierarchical-statistics:

    * h [0/2]
    - [-] a
      - [ ] a.1
      - [X] a.2
    - [-] b
      - [ ] b.1
      - [X] b.2

With org-checkbox-hierarchical-statistics to nil, the count is instead

    * h [2/6]
    - [-] a
      - [ ] a.1
      - [X] a.2
    - [-] b
      - [ ] b.1
      - [X] b.2


      reply	other threads:[~2020-08-02  4:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-29 15:49 org-checkbox-hierarchical-statistics not working as expected Thomas Albers
2020-08-02  4:06 ` Kyle Meyer [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=87wo2h4rpm.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tgalbers2000@gmail.com \
    /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).