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

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

[nongnu] elpa/emacsql 03aebdecd1 160/427: Rename :log option to :debug.


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 03aebdecd1 160/427: Rename :log option to :debug.
Date: Tue, 13 Dec 2022 02:59:38 -0500 (EST)

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

    Rename :log option to :debug.
---
 emacsql.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/emacsql.el b/emacsql.el
index e22e9f6c6c..1fd1ec00d1 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -188,11 +188,11 @@ This collection exists for cleanup purposes.")
              do (accept-process-output)))
   (emacsql--clear conn))
 
-(cl-defun emacsql-connect (file &key log)
+(cl-defun emacsql-connect (file &key debug)
   "Open a connected to database stored in FILE.
 If FILE is nil use an in-memory database.
 
-:log LOG -- When non-nil, log all SQLite commands to a log
+:debug LOG -- When non-nil, log all SQLite commands to a log
 buffer. This is for debugging purposes."
   (emacsql-start-reap-timer)
   (let* ((buffer (generate-new-buffer "*emacsql-connection*"))
@@ -205,7 +205,7 @@ buffer. This is for debugging purposes."
     (process-send-string process ".separator ' '\n")
     (process-send-string process ".nullvalue nil\n")
     (let ((conn (emacsql--create :process process :file (when file fullfile))))
-      (when log
+      (when debug
         (setf (emacsql-log conn) (generate-new-buffer "*emacsql-log*")))
       (prog1 conn
         (emacsql--flush conn)



reply via email to

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