[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 3ec2c96e58 02/11: emacsql-log-buffer: Deprecate th
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 3ec2c96e58 02/11: emacsql-log-buffer: Deprecate this accessor for log-buffer slot |
Date: |
Fri, 19 Jan 2024 19:00:24 -0500 (EST) |
branch: elpa/emacsql
commit 3ec2c96e58df39e955531333d6f30fc2332d7cd4
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
emacsql-log-buffer: Deprecate this accessor for log-buffer slot
We don't provide accessors for other slots either.
---
emacsql.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/emacsql.el b/emacsql.el
index bd8bc0d24b..cfa8bb4dd3 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -104,6 +104,9 @@ may return `process', `user-ptr' or `sqlite' for this
value.")
"A connection to a SQL database."
:abstract t)
+(make-obsolete 'emacsql-log-buffer "use (oref obj log-buffer) instead."
+ "EmacSQL 4.0.0")
+
(cl-defgeneric emacsql-close (connection)
"Close CONNECTION and free all resources.")
@@ -127,14 +130,13 @@ SQL expression.")
(cl-defmethod emacsql-enable-debugging ((connection emacsql-connection))
"Enable debugging on CONNECTION."
- (unless (buffer-live-p (emacsql-log-buffer connection))
- (setf (emacsql-log-buffer connection)
- (generate-new-buffer " *emacsql-log*"))))
+ (unless (buffer-live-p (oref connection log-buffer))
+ (oset connection log-buffer (generate-new-buffer " *emacsql-log*"))))
(cl-defmethod emacsql-log ((connection emacsql-connection) message)
"Log MESSAGE into CONNECTION's log.
MESSAGE should not have a newline on the end."
- (let ((buffer (emacsql-log-buffer connection)))
+ (let ((buffer (oref connection log-buffer)))
(when buffer
(unless (buffer-live-p buffer)
(setq buffer (emacsql-enable-debugging connection)))
- [nongnu] elpa/emacsql updated (e2b2df570d -> ffd501a588), ELPA Syncer, 2024/01/19
- [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 <=
- [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, 2024/01/19