[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql fdd0dbec38 10/11: Use `oset' instead of `setf' and
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql fdd0dbec38 10/11: Use `oset' instead of `setf' and `slot-value' |
Date: |
Fri, 19 Jan 2024 19:00:24 -0500 (EST) |
branch: elpa/emacsql
commit fdd0dbec38d8d1089dfeadc52f4c6a901c1bd22b
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Use `oset' instead of `setf' and `slot-value'
---
emacsql.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/emacsql.el b/emacsql.el
index 755e985c60..16c75bd291 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -260,9 +260,9 @@ specific error conditions."
(defun emacsql-register (connection)
"Register CONNECTION for automatic cleanup and return CONNECTION."
- (let ((finalizer (make-finalizer (lambda () (emacsql-close connection)))))
- (prog1 connection
- (setf (slot-value connection 'finalizer) finalizer))))
+ (prog1 connection
+ (oset connection finalizer
+ (make-finalizer (lambda () (emacsql-close connection))))))
;;; Useful macros
- [nongnu] elpa/emacsql ce25410db4 03/11: Update cl-flet indentation, (continued)
- [nongnu] elpa/emacsql ce25410db4 03/11: Update cl-flet indentation, ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql 1bea33bd45 04/11: test: Fix indentation, ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql 8be75b66b1 05/11: Use `and' instead of `when' if value matters, ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql 1b8297b671 06/11: Use `setq' instead of `setf', ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql a4b4dce9a5 07/11: Use `put' instead of `setf' and `get', ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql 777abb9e9e 09/11: Use `oref' instead of `slot-value', ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql ffd501a588 11/11: Newline cosmetics, ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql 3ec2c96e58 02/11: emacsql-log-buffer: Deprecate this accessor for log-buffer slot, ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql 49b9858683 01/11: Change case of EmacSQL in deprecation warning, ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql dacc764567 08/11: Use `oref' instead of `eieio-oref', ELPA Syncer, 2024/01/19
- [nongnu] elpa/emacsql fdd0dbec38 10/11: Use `oset' instead of `setf' and `slot-value',
ELPA Syncer <=