aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-23 21:51:54 +0000
committerRichard M. Stallman1993-11-23 21:51:54 +0000
commitf603e513068f687d40ebd5f50cf48b33e29754de (patch)
treeb2129d85b2b0e6d123748e5a955f793f84982f25
parentbe2c35e4f0824c53356e2198740eff50ea61300b (diff)
downloademacs-f603e513068f687d40ebd5f50cf48b33e29754de.tar.gz
emacs-f603e513068f687d40ebd5f50cf48b33e29754de.zip
(telnet-rsh-program): New variable.
(rsh): Use it. (telnet-count): Now buffer-local.
-rw-r--r--lisp/telnet.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/telnet.el b/lisp/telnet.el
index e1146a8eedf..e3f17187b35 100644
--- a/lisp/telnet.el
+++ b/lisp/telnet.el
@@ -60,8 +60,13 @@
60 (defvar telnet-interrupt-string "\C-c" "String sent by C-c.")) 60 (defvar telnet-interrupt-string "\C-c" "String sent by C-c."))
61 61
62(defvar telnet-count 0 62(defvar telnet-count 0
63 "Number of output strings read from the telnet process 63 "Number of output strings from telnet process while looking for password.")
64while looking for the initial password.") 64(make-variable-buffer-local 'telnet-count)
65
66(defvar telnet-rsh-program
67 (if (memq system-type '(hpux usg-unix-v))
68 "remsh" "rsh")
69 "Program to run for opening a remote shell.")
65 70
66(defvar telnet-initial-count -50 71(defvar telnet-initial-count -50
67 "Initial value of `telnet-count'. Should be set to the negative of the 72 "Initial value of `telnet-count'. Should be set to the negative of the
@@ -215,7 +220,7 @@ Normally input is edited in Emacs and sent a line at a time."
215 (interactive "sOpen rsh connection to host: ") 220 (interactive "sOpen rsh connection to host: ")
216 (require 'shell) 221 (require 'shell)
217 (let ((name (concat host "-rsh" ))) 222 (let ((name (concat host "-rsh" )))
218 (switch-to-buffer (make-comint name "rsh" nil host)) 223 (switch-to-buffer (make-comint name telnet-rsh-program nil host))
219 (set-process-filter (get-process name) 'telnet-initial-filter) 224 (set-process-filter (get-process name) 'telnet-initial-filter)
220 (telnet-mode) 225 (telnet-mode)
221 (setq telnet-count -16))) 226 (setq telnet-count -16)))