[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 6728a8649a 396/427: No longer try to clear a buffe
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 6728a8649a 396/427: No longer try to clear a buffer that isn't live anymore |
Date: |
Tue, 13 Dec 2022 03:00:16 -0500 (EST) |
branch: elpa/emacsql
commit 6728a8649ae0209094c8c4b9e9f5786c004ab2ae
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
No longer try to clear a buffer that isn't live anymore
Re #62.
---
emacsql.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/emacsql.el b/emacsql.el
index 7b93c4c819..e33badbeaa 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -149,8 +149,10 @@ MESSAGE should not have a newline on the end."
(cl-defmethod emacsql-clear ((connection emacsql-connection))
"Clear the process buffer for CONNECTION-SPEC."
- (with-current-buffer (emacsql-buffer connection)
- (erase-buffer)))
+ (let ((buffer (emacsql-buffer connection)))
+ (when (and buffer (buffer-live-p buffer))
+ (with-current-buffer buffer
+ (erase-buffer)))))
(cl-defgeneric emacsql-waiting-p (connection)
"Return non-nil if CONNECTION is ready for more input.")
- [nongnu] elpa/emacsql ef4bcec524 321/427: Conform to elisp header conventions, (continued)
- [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, 2022/12/13
- [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 <=
- [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
- [nongnu] elpa/emacsql 6d8cd93662 382/427: README: Remove a duplicate word, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b6a0336d62 405/427: make: Compile SQLite binary before Elisp, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b9d848fa9c 407/427: make: Don't warn about implicit fallthroughs, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql dbf0598731 087/427: Add "-interactive" argument (fixes #1)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 79fb8cb223 230/427: Heavy compiler rework., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql dcb9a903c7 284/427: Put emacsql-thread inside a transaction., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4a570e3016 301/427: Predict new location when compiling binary., ELPA Syncer, 2022/12/13