Fix void-function org-export--prepare-file-contents error
`org-glossary--include-once` calls `org-export--prepare-file-contents`, which is defined in `ox`, but `ox` is not loaded. This happens because `org-export--prepare-file-contents` (defined in `ox`) is called in `org-glossary--include-once`, which is called if org-glossary-mode is given an external source to look up terms in. E.g. (setq org-glossary-global-terms (list "~/path/to/glossary.org"))
This commit is contained in:
parent
6da6d51ca2
commit
943d6b9edf
|
@ -400,6 +400,7 @@ The PATH-SPEC is formed with respect to the current buffer."
|
|||
(defun org-glossary--include-once (parameters)
|
||||
"Include content based on PARAMETERS."
|
||||
(unless (eq (plist-get parameters :env) 'literal)
|
||||
(require 'ox)
|
||||
(let ((lines (plist-get parameters :lines))
|
||||
(file (plist-get parameters :file))
|
||||
(location (plist-get parameters :location))
|
||||
|
|
Loading…
Reference in New Issue