From 6330c57bce3756ce29b326afb2675d7b219cc109 Mon Sep 17 00:00:00 2001 From: Wetlize Date: Sat, 24 Jul 2021 18:59:46 +0300 Subject: [PATCH] Sniff for a different symbol in +org-roam-suppress-sqlite-build-a `org-roam-db-location` is redefined in the :preface section, so we need to rely on a different symbol to determine whether `org-roam` is loading or not. --- modules/lang/org/contrib/roam2.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/org/contrib/roam2.el b/modules/lang/org/contrib/roam2.el index fe98141b5..3e4389ebd 100644 --- a/modules/lang/org/contrib/roam2.el +++ b/modules/lang/org/contrib/roam2.el @@ -35,7 +35,7 @@ This is a blocking operation that can take a while to complete and better be deferred when there will be an actual demand for the database. See `+org-init-roam-h' for the launch process." :around #'emacsql-sqlite-ensure-binary - (if (not (boundp 'org-roam-db-location)) + (if (not (boundp 'org-roam-db-version)) (apply orig-fn args) (advice-remove #'emacsql-sqlite-ensure-binary #'+org-roam-suppress-sqlite-build-a) nil))