Browse Source

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

Fixes https://list.orgmode.org/87tugzinxz.fsf@gmail.com/T/#u
Ihor Radchenko 3 years ago
parent
commit
49e2f6c1ab
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-element.el

+ 1 - 0
lisp/org-element.el

@@ -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)))