"Rick Lupton" <[email protected]> writes:

> I've found that org-element-cache-map can hang when using the :to-pos option.
>
> ;;; test-final.el
> ...
> It seems to work if you remove the "Content" line, or either of the following 
> Headline 2/3.  It also works if you remove :to-pos or increase its value by 
> one, but I don't see why it shouldn't work like this?

Confirmed.
Possibly a duplicate of 
https://list.orgmode.org/orgmode/875xwbq6mb.fsf@localhost/

That function grew too complex to debug efficiently. It should be split
into smaller pieces first. At least, mutable cache data structure
iteration should likely be factored out.

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