emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/emacsql 1fb97f7d4a 092/427: Drop unusable macro emacsql-wi


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 1fb97f7d4a 092/427: Drop unusable macro emacsql-with-connection.
Date: Tue, 13 Dec 2022 02:59:31 -0500 (EST)

branch: elpa/emacsql
commit 1fb97f7d4a896f4af94f2c544066887922e9c7da
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Drop unusable macro emacsql-with-connection.
    
    Can't start a process and accept it within the same turn. This would
    need to be async at best.
---
 emacsql.el | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/emacsql.el b/emacsql.el
index 4722a628ca..10ae4eb93f 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -119,13 +119,6 @@ buffer. This is for debugging purposes."
     (when (and process (process-live-p process))
       (process-send-string process ".exit\n"))))
 
-(defmacro emacsql-with-connection (conn-spec &rest body)
-  (declare (indent 1))
-  `(let ((,(car conn-spec) (emacsql-connect ,@(cdr conn-spec))))
-     (unwind-protect
-         (progn ,@body)
-       (emacsql-close ,(car conn-spec)))))
-
 (defun emacsql-buffer (conn)
   "Get proccess buffer for CONN."
   (process-buffer (emacsql-process conn)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]