Andreas Matthias <[email protected]> writes:

> test.org:
>
> #+include: a.org
> #+include: b.org
>
> a.org:
>
> * AAA
> * COMMENT BBB
>
> b.org:
>
> * CCC
> * DDD
>
> When I export test.org the only section that is exported is section AAA.
> But sections CCC and DDD are missing. This is probably due to the
> COMMENT keyword in section BBB.

This is because includes are expanded one by one, so you end up with

* AAA
* COMMENT BBB
#+include: b.org

Then, Org looks at #+include: b.org, notice that it is inside
_commented_ heading, and skips over :)

This is a bug.
Confirmed.

-- 
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