]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure that the global sql-buffer variable is set
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 24 Apr 2022 11:39:36 +0000 (13:39 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 24 Apr 2022 11:39:36 +0000 (13:39 +0200)
* lisp/progmodes/sql.el (sql-product-interactive): Set the
expected global value of sql-buffer (bug#55088).

lisp/progmodes/sql.el

index 18b0274fbfdb91300f23b33f820aab56e358e995..5e5f5e13fe63300590a59a1fcd85c30466e70b00 100644 (file)
@@ -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