[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql e498dd1dea 336/427: Drop emacsql-escape-format's K
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql e498dd1dea 336/427: Drop emacsql-escape-format's KIND argument. |
Date: |
Tue, 13 Dec 2022 02:59:59 -0500 (EST) |
branch: elpa/emacsql
commit e498dd1dea1d1d28f4c0d50776112eb8af9ced7f
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Drop emacsql-escape-format's KIND argument.
No caller actually uses this argument and while it was optional the
documentation strongly indicated that it usually should be provided,
which was confusing.
---
emacsql-compiler.el | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/emacsql-compiler.el b/emacsql-compiler.el
index 36142cc6fd..3f20758225 100644
--- a/emacsql-compiler.el
+++ b/emacsql-compiler.el
@@ -88,15 +88,9 @@
(vector (concat "(" (mapconcat #'emacsql-escape-scalar vector ", ") ")"))
(otherwise (emacsql-error "Invalid vector %S" vector))))
-(defun emacsql-escape-format (thing &optional kind)
- "Escape THING for use as a `format' spec, pre-escaping for KIND.
-KIND should be :scalar or :identifier."
- (replace-regexp-in-string
- "%" "%%" (cl-case kind
- (:scalar (emacsql-escape-scalar thing))
- (:identifier (emacsql-escape-identifier thing))
- (:vector (emacsql-escape-vector thing))
- (otherwise thing))))
+(defun emacsql-escape-format (thing)
+ "Escape THING for use as a `format' spec."
+ (replace-regexp-in-string "%" "%%" thing))
;;; Schema compiler
- [nongnu] elpa/emacsql 20391923d1 292/427: Add option to disable local builds., (continued)
- [nongnu] elpa/emacsql 20391923d1 292/427: Add option to disable local builds., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b375cd7759 294/427: Bump version number due to protocol change., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b60d9e05e2 277/427: Flesh out some docstrings., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ce05c8b2e2 305/427: Fix MySQL quoting., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3e16afce8b 281/427: Escape backslashes as well., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3c57f9a986 308/427: Adjust MySQL isolation level., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c68f11b74e 313/427: Register emacsql-pg for unit testing., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ef4bcec524 321/427: Conform to elisp header conventions, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c1ea25c872 322/427: Drop Windows issue from README (fixed in 24.4)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 2bc599d856 327/427: Add separate package headers for each backend., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e498dd1dea 336/427: Drop emacsql-escape-format's KIND argument.,
ELPA Syncer <=
- [nongnu] elpa/emacsql 3042597a72 343/427: Add note about lack of Windows support., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5ad4d2da9a 355/427: fix ldlibs for berkeley-unix systems, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a96b2587c4 365/427: Update README to mention FTS5 (#40), ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5ebd12b6ff 377/427: Add some support for the ESCAPE operator, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c82a0e6b4d 384/427: Add public domain statement to remaining files, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 97ccd7d9e6 398/427: Update library commentaries of package libraries, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 6728a8649a 396/427: No longer try to clear a buffer that isn't live anymore, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a118b6c95a 381/427: Don't use -lm flag on Windows (#55), ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e7b932a5c9 378/427: Handle read-only emacsql install diretory, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9e48d12e42 402/427: Fix typos in README.md, ELPA Syncer, 2022/12/13