Skip to content

Commit e9a4710

Browse files
committed
fix(org): update load, declare-function
In Emacs 31, org-element-property and org-element-type have moved to a new file: org-element-ast. Update code to handle this properly. Signed-off-by: Bruce D'Arcus <[email protected]>
1 parent 02e25f3 commit e9a4710

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

citar-org.el

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@
2121

2222
(require 'citar)
2323
(require 'org)
24-
(require 'org-element)
24+
(if (not (require 'org-element-ast nil t))
25+
(require 'org-element))
2526
(require 'org-id)
2627
(require 'oc)
2728
(require 'oc-basic)
2829
(require 'oc-csl)
2930

3031
(declare-function org-open-at-point "org")
31-
(declare-function org-element-property "org-element")
32-
(declare-function org-element-type "org-element")
32+
(declare-function org-element-property "ext:org-element")
33+
(declare-function org-element-type "ext:org-element")
3334
(declare-function org-cite-make-insert-processor "oc")
3435
(declare-function org-cite-get-references "oc")
3536
(declare-function embark-act "ext:embark")

0 commit comments

Comments
 (0)