(telnet): Do erase-buffer after the initial output.
authorRichard M. Stallman <rms@gnu.org>
Fri, 16 Oct 1992 01:35:47 +0000 (01:35 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 16 Oct 1992 01:35:47 +0000 (01:35 +0000)
lisp/telnet.el

index 26160ac..ad13c05 100644 (file)
@@ -157,9 +157,9 @@ Normally input is edited in Emacs and sent a line at a time."
   (let ((name (concat arg "-telnet" )))
     (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))
+    (erase-buffer)
     (send-string  name (concat "open " arg "\n"))
     (telnet-mode)
     (setq telnet-count telnet-initial-count)))