]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert hunk mistakenly applied in last patch
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 17 Apr 2018 21:26:11 +0000 (23:26 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 17 Apr 2018 21:26:11 +0000 (23:26 +0200)
lisp/progmodes/sql.el

index ebbef8d89eeeb72cb0e89f654cb739457375e473..f907a01d8cffa4dc9a38db362ad9001950cd7861 100644 (file)
@@ -4031,16 +4031,15 @@ Writes the input history to a history file using
 
 This function is a sentinel watching the SQL interpreter process.
 Sentinels will always get the two parameters PROCESS and EVENT."
-  (when (buffer-live-p (process-buffer process))
-    (with-current-buffer (process-buffer process)
-      (let
-          ((comint-input-ring-separator sql-input-ring-separator)
-           (comint-input-ring-file-name sql-input-ring-file-name))
-        (comint-write-input-ring))
-
-      (if (not buffer-read-only)
-          (insert (format "\nProcess %s %s\n" process event))
-        (message "Process %s %s" process event)))))
+  (with-current-buffer (process-buffer process)
+    (let
+        ((comint-input-ring-separator sql-input-ring-separator)
+         (comint-input-ring-file-name sql-input-ring-file-name))
+      (comint-write-input-ring))
+
+    (if (not buffer-read-only)
+        (insert (format "\nProcess %s %s\n" process event))
+      (message "Process %s %s" process event))))
 
 \f