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

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

[nongnu] elpa/emacsql 1ebbc22411 212/427: Disable undo in process buffer


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 1ebbc22411 212/427: Disable undo in process buffers.
Date: Tue, 13 Dec 2022 02:59:43 -0500 (EST)

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

    Disable undo in process buffers.
---
 emacsql-psql.el   | 1 +
 emacsql-sqlite.el | 1 +
 2 files changed, 2 insertions(+)

diff --git a/emacsql-psql.el b/emacsql-psql.el
index fe697ff855..ecb8bfb4b6 100644
--- a/emacsql-psql.el
+++ b/emacsql-psql.el
@@ -59,6 +59,7 @@
                                       :dbname dbname)))
       (setf (process-sentinel process)
             (lambda (proc _) (kill-buffer (process-buffer proc))))
+      (buffer-disable-undo buffer)
       (when debug
         (setf (emacsql-log-buffer connection)
               (generate-new-buffer "*emacsql-log*")))
diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index 778e3b9c44..db4d4922e7 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -56,6 +56,7 @@ buffer. This is for debugging purposes."
                                     :file (when file fullfile))))
     (setf (process-sentinel process)
           (lambda (proc _) (kill-buffer (process-buffer proc))))
+    (buffer-disable-undo buffer)
     (mapc (lambda (s) (emacsql-send-string connection s :no-log))
           '(".mode list"
             ".separator ' '"



reply via email to

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