(telnet): Use comint-arguments.

This commit is contained in:
Richard M. Stallman 1993-12-24 04:00:16 +00:00
parent 457a9beede
commit 6cc0778f31

View file

@ -184,7 +184,8 @@ Communication with HOST is recorded in a buffer *HOST-telnet*.
Normally input is edited in Emacs and sent a line at a time."
(interactive "sOpen telnet connection to host: ")
(setq host (comint-canonicalize-args host))
(let* ((name (concat host "-telnet" ))
(let* ((comint-delimiter-argument-list '(" " "\t"))
(name (concat (comint-arguments host 0 nil) "-telnet" ))
(buffer (get-buffer (concat "*" name "*"))))
(if (and buffer (get-buffer-process buffer))
(switch-to-buffer (concat "*" name "*"))