summaryrefslogtreecommitdiff
path: root/lisp/net/telnet.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2005-05-18 10:18:42 +0000
committerJuanma Barranquero <lekktu@gmail.com>2005-05-18 10:18:42 +0000
commitff660307553247f16a8badc658dee8061f5f89bd (patch)
tree5f9587a7733cbff8c9ef463da87c3bfefefd0dde /lisp/net/telnet.el
parent887195ac8398ff3569c5fc45c4566f3c6bce2e3a (diff)
downloademacs-ff660307553247f16a8badc658dee8061f5f89bd.tar.gz
Replace `send-string' by `process-send-string'.
Diffstat (limited to 'lisp/net/telnet.el')
-rw-r--r--lisp/net/telnet.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/net/telnet.el b/lisp/net/telnet.el
index 67edf6b0d46..94a7b325d0e 100644
--- a/lisp/net/telnet.el
+++ b/lisp/net/telnet.el
@@ -91,19 +91,19 @@ rejecting one login and prompting again for a username and password.")
(defun telnet-interrupt-subjob ()
"Interrupt the program running through telnet on the remote host."
(interactive)
- (send-string nil telnet-interrupt-string))
+ (process-send-string nil telnet-interrupt-string))
(defun telnet-c-z ()
(interactive)
- (send-string nil "\C-z"))
+ (process-send-string nil "\C-z"))
(defun send-process-next-char ()
(interactive)
- (send-string nil
- (char-to-string
- (let ((inhibit-quit t))
- (prog1 (read-char)
- (setq quit-flag nil))))))
+ (process-send-string nil
+ (char-to-string
+ (let ((inhibit-quit t))
+ (prog1 (read-char)
+ (setq quit-flag nil))))))
; initialization on first load.
(if telnet-mode-map
@@ -141,8 +141,8 @@ rejecting one login and prompting again for a username and password.")
((string-match "passw" string)
(telnet-filter proc string)
(setq telnet-count 0)
- (send-string proc (concat (comint-read-noecho "Password: " t)
- telnet-new-line))
+ (process-send-string proc (concat (comint-read-noecho "Password: " t)
+ telnet-new-line))
(clear-this-command-keys))
(t (telnet-check-software-type-initialize string)
(telnet-filter proc string)
@@ -231,9 +231,9 @@ Normally input is edited in Emacs and sent a line at a time."
;; Don't send the `open' cmd till telnet is ready for it.
(accept-process-output process)
(erase-buffer)
- (send-string process (concat "open " host
- (if port " " "") (or port "")
- "\n"))
+ (process-send-string process (concat "open " host
+ (if port " " "") (or port "")
+ "\n"))
(telnet-mode)
(setq comint-input-sender 'telnet-simple-send)
(setq telnet-count telnet-initial-count))))