[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 017cd8460d 329/427: Use own data root in emacsql-s
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 017cd8460d 329/427: Use own data root in emacsql-sqlite. |
Date: |
Tue, 13 Dec 2022 02:59:57 -0500 (EST) |
branch: elpa/emacsql
commit 017cd8460d85aa79af43d3044fdd8fbe15aeecc7
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Use own data root in emacsql-sqlite.
---
emacsql-sqlite.el | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index 73e1f803f4..fae07dd136 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -45,13 +45,18 @@ version."
;;; SQLite connection
+(cl-eval-when (load compile)
+ (defvar emacsql-sqlite-data-root
+ (file-name-directory (or load-file-name buffer-file-name))
+ "Directory where EmacSQL is installed."))
+
(cl-eval-when (load compile)
(defvar emacsql-sqlite-executable
(expand-file-name (format "bin/emacsql-sqlite-%s%s" (emacsql-system-tuple)
(if (memq system-type '(windows-nt cygwin
ms-dos))
".exe"
""))
- emacsql-data-root)
+ emacsql-sqlite-data-root)
"Path to the EmacSQL backend (this is not the sqlite3 shell)."))
(defvar emacsql-sqlite-reserved
@@ -144,7 +149,7 @@ buffer. This is for debugging purposes."
(defun emacsql-sqlite-compile-switches ()
"Return the compilation switches from the Makefile under sqlite/."
- (let ((makefile (expand-file-name "sqlite/Makefile" emacsql-data-root))
+ (let ((makefile (expand-file-name "sqlite/Makefile"
emacsql-sqlite-data-root))
(case-fold-search nil))
(with-temp-buffer
(insert-file-contents makefile)
@@ -156,7 +161,7 @@ buffer. This is for debugging purposes."
"Compile the SQLite back-end for EmacSQL, returning non-nil on success.
If called with non-nil ASYNC the return value is meaningless."
(let* ((cc (executable-find "cc"))
- (src (expand-file-name "sqlite" emacsql-data-root))
+ (src (expand-file-name "sqlite" emacsql-sqlite-data-root))
(files (mapcar (lambda (f) (expand-file-name f src))
'("sqlite3.c" "emacsql.c")))
(cflags (list (format "-I%s" src) (format "-O%d" (or o-level 2))))
@@ -170,7 +175,7 @@ If called with non-nil ASYNC the return value is
meaningless."
((not emacsql-sqlite-automatic-build)
(prog1 nil
(message "Local SQLite build disabled, skipping")))
- (t (mkdir (expand-file-name "bin" emacsql-data-root) t)
+ (t (mkdir (expand-file-name "bin" emacsql-sqlite-data-root) t)
(message "Compiling EmacSQL SQLite binary ...")
(let ((log (get-buffer-create byte-compile-log-buffer)))
(with-current-buffer log
- [nongnu] elpa/emacsql 45f43323ad 275/427: Check the compiler error code., (continued)
- [nongnu] elpa/emacsql 45f43323ad 275/427: Check the compiler error code., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 2f606fdd2d 300/427: Fix with-transaction macro to return results., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 76acd4f8a1 304/427: Add a test for reserved word escaping., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a6155464c7 274/427: Try to build the package locally if possible., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4a58806d64 299/427: Improve new indentation a little bit., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c512f4287c 315/427: Add back-end note to README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a0587f1b5f 311/427: Fix docstring on emacsql-enable-debugging., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9cf4e267cc 310/427: Bump up to version 1.0.2., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql fd73d37df8 319/427: Ignore the generated executable, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 048e81b759 320/427: Add file tests/.nosearch, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 017cd8460d 329/427: Use own data root in emacsql-sqlite.,
ELPA Syncer <=
- [nongnu] elpa/emacsql 03d4788708 332/427: Bump to version 2.0.0 (fix #15)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 0a2b3f6496 337/427: Follow rename of emacsql-with-vars in doc-strings., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a60deae960 335/427: Add NOTNULL and ISNULL special operators (#16)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c634a1b6e1 340/427: Use initialize-instance with emacsql-sqlite (fixes #17)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 176cf10063 342/427: Bump to 2.0.1., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 95a00de3f1 346/427: Save match-data around call to accept-process-output, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 8f3d0d4b81 344/427: Use font-lock-flush and font-lock-ensure if available, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3176aeee61 345/427: Use elisp--preceding-sexp if available, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 327b09b4b9 348/427: Add support for raw strings and raw parameters (#26, #28)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c93f52159f 347/427: Bump to version 2.0.2., ELPA Syncer, 2022/12/13