aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/sql.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index ebbef8d89ee..f907a01d8cf 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -4031,16 +4031,15 @@ Writes the input history to a history file using
4031 4031
4032This function is a sentinel watching the SQL interpreter process. 4032This function is a sentinel watching the SQL interpreter process.
4033Sentinels will always get the two parameters PROCESS and EVENT." 4033Sentinels will always get the two parameters PROCESS and EVENT."
4034 (when (buffer-live-p (process-buffer process)) 4034 (with-current-buffer (process-buffer process)
4035 (with-current-buffer (process-buffer process) 4035 (let
4036 (let 4036 ((comint-input-ring-separator sql-input-ring-separator)
4037 ((comint-input-ring-separator sql-input-ring-separator) 4037 (comint-input-ring-file-name sql-input-ring-file-name))
4038 (comint-input-ring-file-name sql-input-ring-file-name)) 4038 (comint-write-input-ring))
4039 (comint-write-input-ring)) 4039
4040 4040 (if (not buffer-read-only)
4041 (if (not buffer-read-only) 4041 (insert (format "\nProcess %s %s\n" process event))
4042 (insert (format "\nProcess %s %s\n" process event)) 4042 (message "Process %s %s" process event))))
4043 (message "Process %s %s" process event)))))
4044 4043
4045 4044
4046 4045