Slawomir Grochowski <[email protected]> writes:

> Hi Morgan,
>
> I'm sorry it took so much of your time, though honestly, this seemingly simple
> change cost me a lot of time too and went through several different
> iterations.

Oh my intention was not to express a negative emotion!  I was trying to
express that I have some misconceptions in my brain that I'm trying to
unwind!  So if anything I say doesn't make sense, don't worry, it
doesn't make sense to me either :)

> At first, I also thought "recursive" was the right term. Later on, however, I
> realized that every pass is recursive anyway, and that recursion is an
> implementation detail the user shouldn't have to care about. I'd stick with
> "subtree" because it describes the scope--that checkboxes are counted across
> the entire subtree--rather than the mechanism of how they are counted.

First of all, the scope is the entire tree is question.  Not really sure
where the "sub" comes from.  Although I think it's somewhat common in
the Org repo to use "tree" and "subtree" interchangeably.  This has also
been a source of confusion for me :P

It seems to me that the recursion that happens everytime is to ensure
the data is correct (items marked as completed don't contain incomplete
items).

The question we are asking now is do we only look at the immediate
children to determine the [n/m] or do we recurse into each heading and
add everything up to get the [n/m].

I really think the word recursion describes this and (sub)tree does not.

#+begin_src org
,* test [0/1] [0%]
- [-] partial
  - [ ] nope
  - [X] yes
,* test [1/3] [33%]
:PROPERTIES:
:COOKIE_DATA: recursive
:END:
- [-] partial
  - [ ] nope
  - [X] yes
#+end_src



Reply via email to