diff options
| author | Richard M. Stallman | 1993-11-23 21:51:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-23 21:51:54 +0000 |
| commit | f603e513068f687d40ebd5f50cf48b33e29754de (patch) | |
| tree | b2129d85b2b0e6d123748e5a955f793f84982f25 | |
| parent | be2c35e4f0824c53356e2198740eff50ea61300b (diff) | |
| download | emacs-f603e513068f687d40ebd5f50cf48b33e29754de.tar.gz emacs-f603e513068f687d40ebd5f50cf48b33e29754de.zip | |
(telnet-rsh-program): New variable.
(rsh): Use it.
(telnet-count): Now buffer-local.
| -rw-r--r-- | lisp/telnet.el | 11 |
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.") |
| 64 | while 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))) |