Skip to content

Commit

Permalink
fix: Require org-info instead of ol-info if old Org version detected
Browse files Browse the repository at this point in the history
If a user is running Emacs 26.3 with the default Org installation,
they would be using Org 9.1.9 and so they will need to use org-info
instead of ol-info.
  • Loading branch information
kaushalmodi committed May 9, 2022
1 parent 3c699a1 commit 772d53d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ox-hugo.el
Expand Up @@ -99,7 +99,14 @@

(require 'org)
(require 'org-id) ;For `org-id-find'
(require 'ol-info) ;For `org-info-emacs-documents', `org-info-other-documents'

;; For `org-info-emacs-documents', `org-info-other-documents'
;; org-info.el got renamed to ol-info.el in Org version 9.3. Remove
;; below if condition after the minimum emacs dependency is raised to
;; emacs 27.x. The Org version shipped with Emacs 26.3 is 9.1.9.
(if (version< (org-version) "9.3")
(require 'org-info)
(require 'ol-info))

(declare-function org-hugo-pandoc-cite--parse-citations-maybe "ox-hugo-pandoc-cite")
(declare-function org-hugo-pandoc-cite--meta-data-generator "ox-hugo-pandoc-cite")
Expand Down

0 comments on commit 772d53d

Please sign in to comment.