On 2025-07-13, at 08:20, Ihor Radchenko <yanta...@posteo.net> wrote: > mb...@mbork.pl writes: > >>> Try `org-complex-heading-regexp'. >> >> Thanks, this would probably work - I could match it and then get the >> positions. Is it "better" than my approach? I mean, are there any >> obvious pros and cons of both? > > `org-complex-heading-regexp' is more granular - you can exclude tags for > example. There will not be much difference compared to your approach.
Thanks! -- Marcin Borkowski https://mbork.pl https://crimsonelevendelightpetrichor.net/