Slawomir Grochowski <[email protected]> writes: > Ihor Radchenko <[email protected]> writes: > >> Then, why is that goto-char necessary at all? org-map-entries will map >> over the narrowed portion of the buffer. It does not matter where the >> point position is. > > For local capture, `org-map-entries' is called with scope `tree', so the > scope depends on point.
Right. > `org-columns--prepare-rows' may select an ancestor as the column view > scope, for example because COLUMNS is inherited. The `goto-char' makes > `org-map-entries' use that same scope. > > I added a small test for this in v4; it fails if that line is commented > out. Thanks! LGTM. -- 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>
