From 2a01536358aedb09dfee9f98a2c227185848269d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 15 Oct 1992 07:18:11 +0000 Subject: [PATCH] (telnet): Wait for telnet output before sending `open'. --- lisp/telnet.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/telnet.el b/lisp/telnet.el index 8a90b74f43..26160ac4df 100644 --- a/lisp/telnet.el +++ b/lisp/telnet.el @@ -158,6 +158,8 @@ Normally input is edited in Emacs and sent a line at a time." (switch-to-buffer (make-comint name "telnet")) (set-process-filter (get-process name) 'telnet-initial-filter) (erase-buffer) + ;; Don't send the `open' cmd till telnet is ready for it. + (accept-process-output (get-process name)) (send-string name (concat "open " arg "\n")) (telnet-mode) (setq telnet-count telnet-initial-count))) -- GitLab