Earl Chase <[email protected]> writes:

> .... So, I
> understand the confusion but I don't think this is a bug. However, I
> think it could be interesting to have `org-babel-execute-subtree' also
> check to see if a header is commented. But that would be a separate
> issue and I think you should probably gather some feedback from others
> before you work on that.

Yup. If we make org-babel-execute-subtree skip commented subtrees, we
will still have org-babel-execute-block do it if it is directly called
inside a commented subtree.

AFAIU, the logic behind comments is that they affect things when Org
document is converted to other format - via export to via tangling.
The comments are used for internal notes from the author that are not
intended for publishing the final document.

Of course, the notion of comment can be interpreted differently by
different users. This is probably the reason why we have things like
org-agenda-skip-comment-trees (defaulting to t!).

I guess we might have a customization affecting
org-babel-execute-subtree, but there is already :eval no that can be set
tree-wide.

I think the easiest thing that we can improve is the documentation in
this area.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to