Skip to content

Commit

Permalink
fix(org): update load, declare-function
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bdarcus committed Oct 27, 2024
1 parent 02e25f3 commit e9a4710
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions citar-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@

(require 'citar)
(require 'org)
(require 'org-element)
(if (not (require 'org-element-ast nil t))
(require 'org-element))
(require 'org-id)
(require 'oc)
(require 'oc-basic)
(require 'oc-csl)

(declare-function org-open-at-point "org")
(declare-function org-element-property "org-element")
(declare-function org-element-type "org-element")
(declare-function org-element-property "ext:org-element")
(declare-function org-element-type "ext:org-element")
(declare-function org-cite-make-insert-processor "oc")
(declare-function org-cite-get-references "oc")
(declare-function embark-act "ext:embark")
Expand Down

0 comments on commit e9a4710

Please sign in to comment.