org-export--prepare-file-contents: Drop redundant `save-match-data'

`save-match-data' is costly.  We should not use it unless necessary.
This commit is contained in:
Ihor Radchenko 2023-08-26 14:28:51 +03:00
parent 99c40177ad
commit f299fbbbb0
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

@ -3736,7 +3736,7 @@ is to happen."
(while (re-search-forward org-link-any-re nil t)
(let ((link (save-excursion
(forward-char -1)
(save-match-data (org-element-context)))))
(org-element-context))))
(when (org-element-type-p link 'link)
;; Look for file links within link's description.
;; Org doesn't support such construct, but