[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 3176aeee61 345/427: Use elisp--preceding-sexp if a
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 3176aeee61 345/427: Use elisp--preceding-sexp if available |
Date: |
Tue, 13 Dec 2022 03:00:00 -0500 (EST) |
branch: elpa/emacsql
commit 3176aeee6140e464e1cede60e05b6523d1e38a23
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Use elisp--preceding-sexp if available
in order to avoid a warning from the byte-compiler.
---
emacsql.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/emacsql.el b/emacsql.el
index ea6ba3094b..1703756444 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -373,7 +373,10 @@ Each column must be a plain symbol, no expressions allowed
here."
"Display the compiled SQL of the s-expression SQL expression before point.
A prefix argument causes the SQL to be printed into the current buffer."
(interactive "P")
- (let ((sexp (preceding-sexp)))
+ (let ((sexp (if (fboundp 'elisp--preceding-sexp)
+ (elisp--preceding-sexp)
+ (with-no-warnings
+ (preceding-sexp)))))
(if (emacsql-sql-p sexp)
(let ((sql (emacsql-flatten-sql sexp)))
(if prefix
- [nongnu] elpa/emacsql fd73d37df8 319/427: Ignore the generated executable, (continued)
- [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, 2022/12/13
- [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 <=
- [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
- [nongnu] elpa/emacsql e91bac3a20 350/427: Add cl-generic require to emacsql.el (#32)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b65c5b03d5 351/427: Fix up Cask file., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e3bc9b105f 354/427: Finish removing Cask, including updating the README, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 83a278aa6b 356/427: Remove trailing &key in method definition, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 67ca8124bc 425/427: make: Suppress warning about obsolete autoload package, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e318a6c8f6 426/427: Add new SQLite back-ends, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9f0a19280c 296/427: Enhance emacsql-with-transaction to retry., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 616dde3752 361/427: An identifier named * means select all columns (#19), ELPA Syncer, 2022/12/13