emacs-diffs
[Top][All Lists]
Advanced

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

master e632c7bd80: Ensure that the global sql-buffer variable is set


From: Lars Ingebrigtsen
Subject: master e632c7bd80: Ensure that the global sql-buffer variable is set
Date: Sun, 24 Apr 2022 07:39:50 -0400 (EDT)

branch: master
commit e632c7bd80c728af76873e1358e6f2bfb4ff7c54
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Ensure that the global sql-buffer variable is set
    
    * lisp/progmodes/sql.el (sql-product-interactive): Set the
    expected global value of sql-buffer (bug#55088).
---
 lisp/progmodes/sql.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 18b0274fbf..5e5f5e13fe 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -4644,6 +4644,9 @@ the call to \\[sql-product-interactive] with
                   (setq sql-buffer (buffer-name new-sqli-buffer))
                   (run-hooks 'sql-set-sqli-hook)))
 
+              ;; Also set the global value.
+              (setq-default sql-buffer (buffer-name new-sqli-buffer))
+
               ;; Make sure the connection is complete
               ;; (Sometimes start up can be slow)
               ;;  and call the login hook



reply via email to

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