[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] (org-element-context) caused (re-search-forward <regexp>) + (m
From: |
Ihor Radchenko |
Subject: |
Re: [BUG] (org-element-context) caused (re-search-forward <regexp>) + (match-string-no-properties 1) returned matched data wrong |
Date: |
Mon, 01 Apr 2024 12:47:34 +0000 |
"Christopher M. Miles" <numbchild@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>