"Jacob S. Gordon" <[email protected]> writes: >> I am looking at this again and wondering if a simple >> org-with-wide-buffer would be more robust. POS may be within >> narrowing, the containing heading could still be outside. > > In other words, just unconditionally widen? Sounds like more work, and > I’m not sure what you’d gain, the macro is just: > > (save-excursion (save-restriction (widen) ,@body)))
I am talking about the following edge case: 1. Create test.org * TODO Heading SCHEDULED: <2026-06-27 Sat> Some text. Narrow to here, starting from beginning of =SCHEDULED=. ** Sub-heading 2. Open it 3. M-x org-agenda RET < a 4. Narrow test.org between SCHEDULED and the end of paragraph. 5. In org-agenda, M-x org-agenda-tree-to-indirect-buffer 6. Observe SCHEDULED: <2026-06-27 Sat> Some text. Narrow to here, starting from beginning of =SCHEDULED=. No subtree visible. -- 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>
