+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
;; 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