summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/telnet.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/telnet.el b/lisp/telnet.el
index 8a90b74f43e..26160ac4df4 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)))