branch: elpa/emacsql commit 1fb97f7d4a896f4af94f2c544066887922e9c7da Author: Christopher Wellons <well...@nullprogram.com> Commit: Christopher Wellons <well...@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)))