summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/telnet.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/telnet.el b/lisp/telnet.el
index 752883533e3..9ed833b1938 100644
--- a/lisp/telnet.el
+++ b/lisp/telnet.el
@@ -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 "*"))