]> git.eshelyaron.com Git - emacs.git/commitdiff
(telnet-simple-send): Handle comint-input-sender-no-newline like
authorRichard M. Stallman <rms@gnu.org>
Sun, 13 Jan 2002 04:45:21 +0000 (04:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 13 Jan 2002 04:45:21 +0000 (04:45 +0000)
comint-simple-send.

lisp/ChangeLog
lisp/net/telnet.el

index d66d18087323785c8ec82d31b7ea203c621e6aac..2354c50a946ec63b7aa23a28147d9b94c8a246b8 100644 (file)
@@ -1,3 +1,19 @@
+2002-01-12  Richard M. Stallman  <rms@gnu.org>
+
+       * net/telnet.el (telnet-simple-send): Handle
+       comint-input-sender-no-newline like comint-simple-send.
+
+       * progmodes/sql.el (sql-query-placeholders-and-send): Handle
+       comint-input-sender-no-newline like comint-simple-send.
+       (sql-escape-newlines-and-send): Likewise.
+
+       * comint.el (comint-input-sender): Doc fix.
+       (comint-input-sender-no-newline): New variable.
+       (comint-simple-send): If comint-input-sender-no-newline,
+       don't output newline, but maybe send eof.
+       (comint-send-input): New arg NO-NEWLINE.
+       (comint-send-eof): Call comint-send-eof with NO-NEWLINE.
+       
 2002-01-12  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
        * textmodes/flyspell.el (flyspell-check-pre-word-p): Prevent
index be4753caf5610727731592d9f0d84bc299f79c93..8cdc2884bab7b472a7bcad88b4c8dbb492b25d3b 100644 (file)
@@ -154,7 +154,10 @@ rejecting one login and prompting again for a username and password.")
 ;; instead of "\n".
 (defun telnet-simple-send (proc string)
   (comint-send-string proc string)
-  (comint-send-string proc telnet-new-line))
+  (if comint-input-sender-no-newline
+      (if (not (string-equal input ""))
+         (process-send-eof))
+    (comint-send-string proc telnet-new-line)))
 
 (defun telnet-filter (proc string)
   (save-excursion