[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql d3fa5b908f 234/427: Add funcall operator.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql d3fa5b908f 234/427: Add funcall operator. |
Date: |
Tue, 13 Dec 2022 02:59:47 -0500 (EST) |
branch: elpa/emacsql
commit d3fa5b908f37c41586e8a76e42569a91be107035
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Add funcall operator.
---
emacsql-compiler.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/emacsql-compiler.el b/emacsql-compiler.el
index 1b209f09fc..5fa0fed840 100644
--- a/emacsql-compiler.el
+++ b/emacsql-compiler.el
@@ -252,6 +252,16 @@ which will be combined with variable definitions."
(format "%s %s" (recur 0) (upcase (symbol-name op))))
;; Special case quote
((quote) (scalar (nth 0 args)))
+ ;; Special case funcall
+ ((funcall)
+ (format "%s(%s)" (recur 0)
+ (if (and (= 2 (length args))
+ (eq '* (nth 1 args)))
+ "*"
+ (mapconcat
+ #'recur (cl-loop for i from 1 below (length args)
+ collect i)
+ ", "))))
;; Guess
(otherwise
(mapconcat
- [nongnu] elpa/emacsql 3f38b357c3 206/427: Detect empty SQL vectors (better error messages)., (continued)
- [nongnu] elpa/emacsql 3f38b357c3 206/427: Detect empty SQL vectors (better error messages)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ad24b1c508 208/427: Add JOIN syntax., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql fe2eef212c 210/427: Fix header typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 89654ad76b 211/427: Add identifier note., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 543189295d 215/427: Drop the pointless autoloads., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3127283cd1 218/427: Clean up middleware a bit., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql cf16cdb2f8 217/427: Add a special characters test., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 2db4a84598 225/427: Allow os tuples to be specified as an env var., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ba2fac7701 228/427: Update the README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql af2cdddca1 231/427: Squash a bunch of bugs., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d3fa5b908f 234/427: Add funcall operator.,
ELPA Syncer <=
- [nongnu] elpa/emacsql b29ea275d4 236/427: Tweak limitations notes., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 45ac14390a 239/427: Fix up emacsql.el header to match new syntax., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 7c774ffe12 248/427: Improve MySQL error parsing., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 89e42aed13 253/427: Add docstring to emacsql-mysql., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5c423307a8 254/427: Fix README typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c5e1ccef73 257/427: Flesh out the rest of mysql-connection's constructor., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql be9c46c274 259/427: Change the way tuples are computed., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql de9b3633d2 262/427: Oops do clean with distclean., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 0f5f560f8b 267/427: Fix README example typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 203cff9007 269/427: Rename the project to EmacSQL., ELPA Syncer, 2022/12/13