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