From 2473e9127a8f8ece2bcb1052d5450834bbbbb4c8 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 17 Jan 2024 03:26:48 +0200 Subject: gnosis-db-init: Redo without length= Length= is available only for Emacs 28.1 > Pointed out by Nicholas Vollmer --- gnosis.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnosis.el b/gnosis.el index a1c356e..e25a59e 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1390,7 +1390,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 -- cgit v1.2.3