Morgan Smith <[email protected]> writes:

> So I had a conversation with a different room-mate and I think we found
> the word we're looking for.  "Flatten".  I think this has precedence in
> Emacs with 'imenu-flatten'.  It does not seem to have precedence within
> Org Mode though.
>
> We are taking a hierarchy and treating everything equally.  Just as if
> we had flattened that hierarchy!
>
> Please let me know what you think of that word!

Thanks for brainstorming further! While I understand the analogy from a
Lisp/data-structure perspective, "flatten" feels more like an internal
programming operation than a document-level concept that Org users would
intuitively look for.

> So you're trying to use the same language as 'org-cycle'.  That does
> seem like a pretty strong argument.  It does indeed defeat the argument
> from my previous email which relied heavily on what region is being
> used.

To be honest, it was actually thanks to our discussion that I realized this
connection! Explaining it forced me to step back and look at how Org
consistently frames these scopes across the board.

> However, my emails have also hinted at another argument which I will now
> make explicit.
>
> In 'org-cycle' we are choosing how much of a region to reveal.  When we
> reveal parts of the region they still retain their hierarchical value.
> We can still see if heading is 4 levels deep or not.
>
> What this patch is doing is taking a hierarchy and saying that every
> part of it should be treated as if it has equal weight.
>
> I think that is an important distinction that requires us to change our
> language.  Recursive functions tends to flatten a hierarchy which is why
> I gravitated to that word.  However, it would be nice to use a more
> common word.  So I think we should use the word "flatten".

I actually see this a bit differently. The hierarchy is not discarded or
flattened here.

The tree structure is fully preserved: each heading at every depth still
gets its own row and displays its own distinct summary based on its
exact position in the hierarchy. The calculations are aggregated
bottom-up. A checkbox 4 levels deep only contributes to its direct
ancestors, never to sibling branches.

So the hierarchy isn't treated as flat; it strictly defines the boundaries
of the aggregation at each level.

> I will admit though that your arguments have softened my opposition to
> using the word "subtree" a little.  I do appreciate you taking the time
> to indulge me in this discussion :)
>
> Perhaps all this bike-shedding is a waste of time, but it is important
> to me that things are named in a way that is precise and intuitive.

I definitely appreciate the discussion too! It really helped clarify the
reasoning behind these choices.

Given that Ihor is already comfortable with "subtree" / "Xs", and the
hierarchy is preserved in the view, how does this sound to you? Are you
happy to go ahead with "subtree" and "Xs"?

Best,
-- 
Slawomir Grochowski

Reply via email to