summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-19 00:51:17 +0200
committerThanos Apollo <[email protected]>2024-01-19 00:51:17 +0200
commit015a160f2a259cf7c7a723a6135a6f5e839d329e (patch)
tree0ea5a5c0270117ede0927986f284bd1b2fe53841 /gnosis.el
parent5359697d5e8ee44567fba710e11ad73845fcc953 (diff)
Revert "gnosis-db-init: Redo without length="
This reverts commit 2473e9127a8f8ece2bcb1052d5450834bbbbb4c8. During the this pull request on MELPA <https://github.com/melpa/melpa/pull/8890> Nicholas Vollmer pointed out that length= does not exist in Emacs < 28.1, but since we are using compat we can still use it. This was also suggested by Philip Kaludercic in this email in emacs-devel: <https://lists.gnu.org/archive/html/emacs-devel/2024-01/msg00682.html> I verified this by running emacs-27.2, length= was available thanks to compat
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index 08e803c..24a8309 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1377,7 +1377,7 @@ review."
;; Make sure gnosis-db is initialized
(setf gnosis-db (emacsql-sqlite (concat (file-name-as-directory gnosis-dir) "gnosis.db"))))
;; Create database tables
- (unless (= (length (emacsql gnosis-db [:select name :from sqlite-master :where (= type table)])) 6)
+ (unless (length= (emacsql gnosis-db [:select name :from sqlite-master :where (= type table)]) 6)
;; Enable foreign keys
(emacsql gnosis-db "PRAGMA foreign_keys = ON")
;; Gnosis version