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 46bc177
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 (not (require 'org-element-ast nil t))
;; they moved the functions we need to this file
;; if it's not present, fallback to the old one
(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")
;; we need to account for the move of these functions to a different file
(declare-function org-element-property nil)
(declare-function org-element-type nil)

(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 46bc177

Please sign in to comment.