Morgan Smith <[email protected]> writes:
> This is a cool initiative that makes Org feel a little more cohesive. It > ensures this feature is available in all the places you'd expect. I don't > want > to block this patch. I especially don't want to block it over pedantics. > > I apologize if my explanations have felt lacking. Let me try again. > > The term (sub)tree describes the region that encompasses the entire contents > of > a tree from start to finish. If we take a looks at this scenario, it's clear > we need to take a look at the entire tree: > > #+begin_src org > - [ ] immediate child > - [ ] sub child > - [ ] 2nd immediate child > #+end_src > > This patch is allowing us to express a tree of this structure as either [0/2] > or [0/3]. However, both expressions require us to inspect the entire region > (as the region ends with an immediate child). > > In fact if there was an option labeled "subtree", I would imagine that the > alternative option would be to not inspect the region at all and simply take > the value in the top level cookie at face value. > > If we imagine this tree represents a file-system, then we could take a look at > the term other Unix tools use to mean "looking in each subdirectory as well > instead of only looking at immediate children". Looking at documentation for > the programs "tree", "grep", and "find" show that they use the terms > "recursive", "recurse", and "recursing" to describe this behavior. > > Now I do admit "recursive" is a somewhat advanced word that my room-mate > had never heard of before I asked them. If there was an alternative, > more common word that we could use instead, that might be preferable. > Unfortunately, I can't think of one. Thanks, I understand your point now: both modes scan the same region, so “subtree” as a description of the region doesn’t distinguish them. I agree with that. But I see the names differently: not as a description of the region that is scanned, but of what ends up being counted. And Org already has a precedent for exactly this pair. Visibility cycling rotates between FOLDED, CHILDREN and SUBTREE. To show the CHILDREN state, Org also has to know the whole region, yet the names work well, because they describe what the user sees, not how Org computes it. Statistics cookies could follow the same model: “children” counts only direct children, “subtree” counts everything below the cookie. Users already know this pair from TAB, so it would be the more common word you were looking for, at least in Org’s own vocabulary. Best, -- Slawomir Grochowski
