Michael Dauer <mick.da...@gmail.com> writes: > Yes, but the missing headings are within the narrowed subtree.
You are right. What is happening here is `org-element-parse-buffer' skipping over the folded heading: When VISIBLE-ONLY is non-nil, don't parse contents of hidden elements. -- Ihor Radchenko // yantar92, Org mode contributor, 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>