(fix): Check sqlite3’s executability using boundp (#954)

Fixes #837. The existing merged fixes do not actually work, because fboundp tests for a function.
This commit is contained in:
endgame 2020-07-21 17:51:43 +10:00 committed by GitHub
parent c24fb51b03
commit c20c8f9a0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1297,7 +1297,7 @@ Otherwise, behave as if called interactively."
:global t :global t
(cond (cond
(org-roam-mode (org-roam-mode
(unless (or (and (fboundp 'emacsql-sqlite3-executable) (unless (or (and (boundp 'emacsql-sqlite3-executable)
(file-executable-p emacsql-sqlite3-executable)) (file-executable-p emacsql-sqlite3-executable))
(executable-find "sqlite3")) (executable-find "sqlite3"))
(lwarn '(org-roam) :error "Cannot find executable 'sqlite3'. \ (lwarn '(org-roam) :error "Cannot find executable 'sqlite3'. \