# HG changeset patch # User Richard M. Stallman # Date 786806268 0 # Node ID c2fa03370e73090439d9f0a0c42b56441d69d6b2 # Parent 59ccd063e0166191e54e8a2ec9e5d1160fa12de7 (telnet): Don't make assumptions about process name. (telnet-send-process-next-char): Renamed from send-... diff -r 59ccd063e016 -r c2fa03370e73 lisp/telnet.el --- a/lisp/telnet.el Wed Dec 07 13:03:48 1994 +0000 +++ b/lisp/telnet.el Wed Dec 07 13:17:48 1994 +0000 @@ -187,15 +187,17 @@ (interactive "sOpen telnet connection to host: ") (let* ((comint-delimiter-argument-list '(?\ ?\t)) (name (concat "telnet-" (comint-arguments host 0 nil) )) - (buffer (get-buffer (concat "*" name "*")))) + (buffer (get-buffer (concat "*" name "*"))) + process) (if (and buffer (get-buffer-process buffer)) (switch-to-buffer (concat "*" name "*")) (switch-to-buffer (make-comint name telnet-program)) - (set-process-filter (get-process name) 'telnet-initial-filter) + (setq process (get-buffer-process (current-buffer))) + (set-process-filter process 'telnet-initial-filter) ;; Don't send the `open' cmd till telnet is ready for it. - (accept-process-output (get-process name)) + (accept-process-output process) (erase-buffer) - (send-string name (concat "open " host "\n")) + (send-string process (concat "open " host "\n")) (telnet-mode) (setq comint-input-sender 'telnet-simple-send) (setq telnet-count telnet-initial-count))))