Earl Chase <[email protected]> writes:

> If you take a look at, `org-babel-expand-noweb-references', you will see that 
> it uses `org-in-commented-heading' to check if
> a heading is commented before it expands noweb references. So this isn’t a 
> bug. I do think it should be better documented. 

Ah yes, I see. After thinking about it, using COMMENT is a more powerful
tool that impacts noweb expansion and source block evaluation while
exporting and tangling.

> Not sure if that works in this case as I don't know why COMMENT was
> chosen over "noexport".

I think I started using COMMENT because M-; was so easy to
remember and often I don't want sections tangled out yet into a source
file along with the literate code. From a programmer point of view,
COMMENT was my natural response to accomplish my immediate
goal of preventing tangling and export.

> Yes, the noexport tag is what you need if you want to prevent headers
> from exporting in a situation where you need noweb
> references to expand.

This should work for me. I can control tangling as needed and perhaps
i'll finally learn more about tags.

Thanks again!
Grant

Reply via email to