diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-06-08 01:29:05 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-06-08 01:29:05 +0000 |
commit | c181b168f442309d3b3b96720f945795f9d4e512 (patch) | |
tree | 2f0993f89d14eec8f2af76b21c1685a9b27bbd2d /lisp/telnet.el | |
parent | 004e284a7ed495bfbfd5560fc759dacd2617bbdd (diff) | |
download | emacs-c181b168f442309d3b3b96720f945795f9d4e512.tar.gz |
(telnet-simple-send): New function.
(telnet): Arrange to use that.
Diffstat (limited to 'lisp/telnet.el')
-rw-r--r-- | lisp/telnet.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/telnet.el b/lisp/telnet.el index d115f3e4326..fec7f9c976e 100644 --- a/lisp/telnet.el +++ b/lisp/telnet.el @@ -132,6 +132,12 @@ rejecting one login and prompting for the again for a username and password.") (set-process-filter proc 'telnet-filter)) (t (setq telnet-count (1+ telnet-count))))))) +;; Identical to comint-simple-send, except that it sends telnet-new-line +;; instead of "\n". +(defun telnet-simple-send (proc string) + (comint-send-string proc string) + (comint-send-string proc telnet-new-line)) + (defun telnet-filter (proc string) (let ((at-end (and (eq (process-buffer proc) (current-buffer)) @@ -178,6 +184,7 @@ Normally input is edited in Emacs and sent a line at a time." (erase-buffer) (send-string name (concat "open " arg "\n")) (telnet-mode) + (setq comint-input-sender 'telnet-simple-send) (setq telnet-count telnet-initial-count))) (defun telnet-mode () |