"Christopher M. Miles" <numbch...@gmail.com> writes: > Re: [BUG] (org-element-context) caused (re-search-forward <regexp>) + > (match-string-no-properties 1) returned matched data wrong
`org-element-context' does not guarantee that match data is not altered. You need to wrap it into `save-match-data' if necessary. <help:org-element-context>: org-element-context is an autoloaded and natively compiled function defined in org-element.el. ... This function may modify match data. Not a bug. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, 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>