org-element-cache-map: Check if `native-comp-available-p' is defined

Fixes https://list.orgmode.org/87tugzinxz.fsf@gmail.com/T/#u
This commit is contained in:
Ihor Radchenko 2021-10-30 10:05:17 +08:00
parent 9f87b1cc33
commit 49e2f6c1ab
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 0 deletions

View File

@ -7131,6 +7131,7 @@ of FUNC. Changes to elements made in FUNC will also alter the cache."
(and (symbolp func)
(subrp (symbol-function func)))
(and (symbolp func)
(fboundp 'native-comp-available-p)
(native-comp-available-p)
(fboundp 'subr-native-elisp-p)
(subr-native-elisp-p (symbol-function func)))