aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-03-13 05:29:11 +0000
committerRichard M. Stallman1995-03-13 05:29:11 +0000
commit7d21d421d0fbe9023ff8e51c55d9aaecdae7fc7e (patch)
treee62f0fdb5371b262bed21d67c608e60111eb923c
parent752e8dd9c81f9cdb9c013aa35a7711715a18ef1a (diff)
downloademacs-7d21d421d0fbe9023ff8e51c55d9aaecdae7fc7e.tar.gz
emacs-7d21d421d0fbe9023ff8e51c55d9aaecdae7fc7e.zip
(rsh): Name the buffer *rsh-HOST*.
-rw-r--r--lisp/telnet.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/telnet.el b/lisp/telnet.el
index 3bcf803ff4e..0be43dc80b7 100644
--- a/lisp/telnet.el
+++ b/lisp/telnet.el
@@ -216,16 +216,16 @@ Data is sent to the remote host when RET is typed.
216 (use-local-map telnet-mode-map) 216 (use-local-map telnet-mode-map)
217 (run-hooks 'telnet-mode-hook)) 217 (run-hooks 'telnet-mode-hook))
218 218
219;;;###autoload (add-hook 'same-window-regexps "\\*[^-]*-rsh\\*\\(\\|<[0-9]*>\\)") 219;;;###autoload (add-hook 'same-window-regexps "\\*rsh-[^-]*\\*\\(\\|<[0-9]*>\\)")
220 220
221;;;###autoload 221;;;###autoload
222(defun rsh (host) 222(defun rsh (host)
223 "Open a network login connection to host named HOST (a string). 223 "Open a network login connection to host named HOST (a string).
224Communication with HOST is recorded in a buffer `*HOST-rsh*'. 224Communication with HOST is recorded in a buffer `*rsh-HOST*'.
225Normally input is edited in Emacs and sent a line at a time." 225Normally input is edited in Emacs and sent a line at a time."
226 (interactive "sOpen rsh connection to host: ") 226 (interactive "sOpen rsh connection to host: ")
227 (require 'shell) 227 (require 'shell)
228 (let ((name (concat host "-rsh" ))) 228 (let ((name (concat "rsh-" host )))
229 (pop-to-buffer (make-comint name remote-shell-program nil host)) 229 (pop-to-buffer (make-comint name remote-shell-program nil host))
230 (set-process-filter (get-process name) 'telnet-initial-filter) 230 (set-process-filter (get-process name) 'telnet-initial-filter)
231 (telnet-mode) 231 (telnet-mode)