aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-15 04:20:07 +0000
committerRichard M. Stallman1994-09-15 04:20:07 +0000
commitc4ffc07fd82f1c890ab79ad8e5adc0673a4c86dc (patch)
tree3eec12528e4ce6b4ec13815c67021cd722b4910e
parentf109dfa2789785a8b67583e9f112fec1e34fb030 (diff)
downloademacs-c4ffc07fd82f1c890ab79ad8e5adc0673a4c86dc.tar.gz
emacs-c4ffc07fd82f1c890ab79ad8e5adc0673a4c86dc.zip
(telnet-program): New variable.
(telnet): Use telnet-program. (rsh-program): Renamed from telnet-rsh-program. (rsh): Use new name.
-rw-r--r--lisp/telnet.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/telnet.el b/lisp/telnet.el
index 82f97376b57..6697667ed18 100644
--- a/lisp/telnet.el
+++ b/lisp/telnet.el
@@ -63,7 +63,10 @@
63 "Number of output strings from telnet process while looking for password.") 63 "Number of output strings from telnet process while looking for password.")
64(make-variable-buffer-local 'telnet-count) 64(make-variable-buffer-local 'telnet-count)
65 65
66(defvar telnet-rsh-program 66(defvar telnet-program "telnet"
67 "Program to run to open a telnet connection.")
68
69(defvar rsh-program
67 (if (memq system-type '(hpux usg-unix-v)) 70 (if (memq system-type '(hpux usg-unix-v))
68 "remsh" "rsh") 71 "remsh" "rsh")
69 "Program to run for opening a remote shell.") 72 "Program to run for opening a remote shell.")
@@ -187,7 +190,7 @@ Normally input is edited in Emacs and sent a line at a time."
187 (buffer (get-buffer (concat "*" name "*")))) 190 (buffer (get-buffer (concat "*" name "*"))))
188 (if (and buffer (get-buffer-process buffer)) 191 (if (and buffer (get-buffer-process buffer))
189 (switch-to-buffer (concat "*" name "*")) 192 (switch-to-buffer (concat "*" name "*"))
190 (switch-to-buffer (make-comint name "telnet")) 193 (switch-to-buffer (make-comint name telnet-program))
191 (set-process-filter (get-process name) 'telnet-initial-filter) 194 (set-process-filter (get-process name) 'telnet-initial-filter)
192 ;; Don't send the `open' cmd till telnet is ready for it. 195 ;; Don't send the `open' cmd till telnet is ready for it.
193 (accept-process-output (get-process name)) 196 (accept-process-output (get-process name))
@@ -222,7 +225,7 @@ Normally input is edited in Emacs and sent a line at a time."
222 (interactive "sOpen rsh connection to host: ") 225 (interactive "sOpen rsh connection to host: ")
223 (require 'shell) 226 (require 'shell)
224 (let ((name (concat host "-rsh" ))) 227 (let ((name (concat host "-rsh" )))
225 (switch-to-buffer (make-comint name telnet-rsh-program nil host)) 228 (switch-to-buffer (make-comint name rsh-program nil host))
226 (set-process-filter (get-process name) 'telnet-initial-filter) 229 (set-process-filter (get-process name) 'telnet-initial-filter)
227 (telnet-mode) 230 (telnet-mode)
228 (setq telnet-count -16))) 231 (setq telnet-count -16)))