diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index c59bd0c99..e80f36fde 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -114,7 +114,10 @@ you will need to run the following command after the change: \\[universal-argument] \\[org-element-cache-reset]" :group 'org-footnote :initialize 'custom-initialize-set - :set (lambda (var val) (set var val) (org-element-cache-reset 'all)) + :set (lambda (var val) + (set var val) + (when (fboundp 'org-element-cache-reset) + (org-element-cache-reset 'all))) :type '(choice (string :tag "Collect footnotes under heading") (const :tag "Define footnotes locally" nil)))