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, depending on version.

Signed-off-by: Bruce D'Arcus <[email protected]>
  • Loading branch information
bdarcus committed Oct 26, 2024
1 parent 0f1786b commit abdd5c0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions citar-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,20 @@

(require 'citar)
(require 'org)
(require 'org-element)
(if (require 'org-element-ast nil 'noerror)
(require 'org-element)
(message "Loaded 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")
(if (locate-library "org-element-ast")
(declare-function org-element-property "org-element-ast")
(declare-function org-element-type "org-element-ast")
(declare-function org-element-type "org-element")
(declare-function org-element-property "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 abdd5c0

Please sign in to comment.