[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bb9d81d5144: Fix sending input to SQL when point is not at EOB
From: |
Eli Zaretskii |
Subject: |
master bb9d81d5144: Fix sending input to SQL when point is not at EOB |
Date: |
Thu, 18 Apr 2024 04:54:27 -0400 (EDT) |
branch: master
commit bb9d81d5144ae497809c416eef91d126f8ac5df5
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix sending input to SQL when point is not at EOB
* lisp/progmodes/sql.el (sql-send-string): Move point to EOB
before sending input to the SQL process. Suggested by Gary Hollis
<ghollisjr@gmail.com>. (Bug#69420)
---
lisp/progmodes/sql.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 604f04a3d57..5273ba2bee1 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -3721,6 +3721,8 @@ prompts (`sql-output-newline-count' is positive). In
this case:
(save-excursion
;; Set product context
(with-current-buffer sql-buffer
+ ;; Make sure point is at EOB before sending input to SQL.
+ (goto-char (point-max))
(when sql-debug-send
(message ">>SQL> %S" s))
(insert "\n")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master bb9d81d5144: Fix sending input to SQL when point is not at EOB,
Eli Zaretskii <=