jkitchin / org-ref

org-mode modules for citations, cross-references, bibliographies in org-mode and useful bibtex tools to go with it.
GNU General Public License v3.0
1.35k stars 242 forks source link

Fix compilation error for org-ref-refproc under Nix #1098

Closed PhDyellow closed 8 months ago

PhDyellow commented 8 months ago

Fixes

Warning (comp): org-ref-refproc.el: Error: Symbol's function definition is void org-link-set-parameters

When using native compilation and the Nix package manager, each elisp package is native compiled in a separate sandbox.

org-ref-refproc.el requiresorg-ref-ref-links, which in turn was calling org-link-set-parameters, but ol from org-mode had not been required. I am guessing that this is only a problem when the package is being compiled in a sandbox, since ol will almost certainly be loaded in any reasonable init file using org-ref.