changeset 5142:2d8ae66d6906

(telnet-rsh-program): New variable. (rsh): Use it. (telnet-count): Now buffer-local.
author Richard M. Stallman <rms@gnu.org>
date Tue, 23 Nov 1993 21:51:54 +0000
parents 3efae588d663
children f051791645a2
files lisp/telnet.el
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/telnet.el	Tue Nov 23 20:14:17 1993 +0000
+++ b/lisp/telnet.el	Tue Nov 23 21:51:54 1993 +0000
@@ -60,8 +60,13 @@
  (defvar telnet-interrupt-string "\C-c" "String sent by C-c."))
 
 (defvar telnet-count 0
-  "Number of output strings read from the telnet process
-while looking for the initial password.")
+  "Number of output strings from telnet process while looking for password.")
+(make-variable-buffer-local 'telnet-count)
+
+(defvar telnet-rsh-program
+  (if (memq system-type '(hpux usg-unix-v)) 
+      "remsh" "rsh")
+  "Program to run for opening a remote shell.")
 
 (defvar telnet-initial-count -50
   "Initial value of `telnet-count'.  Should be set to the negative of the
@@ -215,7 +220,7 @@
   (interactive "sOpen rsh connection to host: ")
   (require 'shell)
   (let ((name (concat host "-rsh" )))
-    (switch-to-buffer (make-comint name "rsh" nil host))
+    (switch-to-buffer (make-comint name telnet-rsh-program nil host))
     (set-process-filter (get-process name) 'telnet-initial-filter)
     (telnet-mode)
     (setq telnet-count -16)))