(fix)compat: resolve all the missing compile-time dependencies (#1820)

48a5d01726 was wrong, and the closure wasn't the cause. The source of
the issue stems from a missing compile-time dependency on subr-x.

Emacs 28 doesn't seem to require it for the needed functions anymore,
while older Emacsen still do. What even worse, the byte compiler doesn't
seem to complain about such thing on older Emacsen and the error message
produced at the run-time isn't helpful to identify the cause.

Fixes #1814.
This commit is contained in:
Wetlize
2021-08-29 05:41:36 +03:00
committed by GitHub
parent 48a5d01726
commit 941bd1f6b4
2 changed files with 6 additions and 6 deletions

View File

@ -94,8 +94,6 @@
(eval-when-compile
(require 'subr-x))
(require 'org-roam-compat)
;;; Options
(defgroup org-roam nil
"A database abstraction layer for Org-mode."
@ -309,6 +307,7 @@ E.g. (\".org\") => (\"*.org\" \"*.org.gpg\")"
(provide 'org-roam)
(cl-eval-when (load eval)
(require 'org-roam-compat)
(require 'org-roam-utils)
(require 'org-roam-db)
(require 'org-roam-node)