[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 769abe20fa 183/427: Don't rely on a closure in cle
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 769abe20fa 183/427: Don't rely on a closure in cleanup hook. |
Date: |
Tue, 13 Dec 2022 02:59:40 -0500 (EST) |
branch: elpa/emacsql
commit 769abe20fa6182d11e283b1737c40ef16e57ccf8
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Don't rely on a closure in cleanup hook.
It's unnecessary so just skip it.
---
emacsql-psql.el | 2 +-
emacsql-sqlite.el | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/emacsql-psql.el b/emacsql-psql.el
index 9001cef311..ea6358e371 100644
--- a/emacsql-psql.el
+++ b/emacsql-psql.el
@@ -59,7 +59,7 @@
:dbname dbname)))
(prog1 connection
(setf (process-sentinel process)
- (lambda (_proc _) (kill-buffer buffer)))
+ (lambda (proc _) (kill-buffer (process-buffer proc))))
(when debug
(setf (emacsql-log-buffer connection)
(generate-new-buffer "*emacsql-log*")))
diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index 0fa6c7f3f0..06165cc714 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -51,7 +51,8 @@ buffer. This is for debugging purposes."
(sqlite3 emacsql-sqlite3-executable)
(process (start-process "emacsql-sqlite" buffer sqlite3
"-interactive" fullfile)))
- (setf (process-sentinel process) (lambda (_proc _) (kill-buffer buffer)))
+ (setf (process-sentinel process)
+ (lambda (proc _) (kill-buffer (process-buffer proc))))
(process-send-string process ".mode list\n")
(process-send-string process ".separator ' '\n")
(process-send-string process ".nullvalue nil\n")
- [nongnu] elpa/emacsql 5f4c2ed5a7 166/427: Add emacsql-psql-unavailable-p., (continued)
- [nongnu] elpa/emacsql 5f4c2ed5a7 166/427: Add emacsql-psql-unavailable-p., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1d0ef4011c 167/427: Make emacsql-connection abstract., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 64c3a03d62 169/427: Flesh out some more README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9f6c10eca0 172/427: Move error checking out to helper mix-in., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4f76b94f7c 168/427: Set psql to print nil for NULL., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 7434263d82 174/427: Oops, drop leftover function call., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ca62adc4b2 177/427: Add debug argument to emacsql-psql., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql afef528d81 179/427: Fix memoization to include type map., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b2f2dd37cf 178/427: Allow connection to specify their own types., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4aa889882d 182/427: Fix slot allocation on emacsql-connection., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 769abe20fa 183/427: Don't rely on a closure in cleanup hook.,
ELPA Syncer <=
- [nongnu] elpa/emacsql e9efb0803e 185/427: Oops, include the reap source., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5962268f83 184/427: Split off reaper code., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql f8c3d9fce2 369/427: Silence Emacs 25's byte-compiler, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 8e34660ba1 370/427: Allow `gcc` as a separate option for C compilation., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 739c24cab6 389/427: Add kludge to work around `cl-defmethod' bug, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 18b40213fd 403/427: No longer use obsolete generalized variable `point', ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 6d999ba39d 400/427: Update library headers, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a29b9e7ea5 388/427: No longer needlessly require url and url-http, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 20e390ea06 401/427: Add FAQ to README.md, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 30912aa69e 404/427: Include ../.config.mk in sqlite/Makefile, ELPA Syncer, 2022/12/13