diff options
| author | Richard M. Stallman | 1997-01-08 06:56:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-01-08 06:56:06 +0000 |
| commit | e81fd1f7470c2ff0cef31ec94e5a1b839b129829 (patch) | |
| tree | 460c13c762e648d4123ed3f71599aeaca967dc42 | |
| parent | 6ae5bdf58c163da1eca8386ac64a0dee812d0df9 (diff) | |
| download | emacs-e81fd1f7470c2ff0cef31ec94e5a1b839b129829.tar.gz emacs-e81fd1f7470c2ff0cef31ec94e5a1b839b129829.zip | |
(telnet-initial-filter): Fix error message.
Bind case-fold-search to t.
| -rw-r--r-- | lisp/telnet.el | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/lisp/telnet.el b/lisp/telnet.el index f5e61fc1dca..bc646753912 100644 --- a/lisp/telnet.el +++ b/lisp/telnet.el | |||
| @@ -121,19 +121,20 @@ rejecting one login and prompting again for a username and password.") | |||
| 121 | 121 | ||
| 122 | (defun telnet-initial-filter (proc string) | 122 | (defun telnet-initial-filter (proc string) |
| 123 | ;For reading up to and including password; also will get machine type. | 123 | ;For reading up to and including password; also will get machine type. |
| 124 | (cond ((string-match "No such host" string) | 124 | (let ((case-fold-search t)) |
| 125 | (kill-buffer (process-buffer proc)) | 125 | (cond ((string-match "No such host" string) |
| 126 | (error "No such host.")) | 126 | (kill-buffer (process-buffer proc)) |
| 127 | ((string-match "passw" string) | 127 | (error "No such host")) |
| 128 | (telnet-filter proc string) | 128 | ((string-match "passw" string) |
| 129 | (setq telnet-count 0) | ||
| 130 | (send-string proc (concat (comint-read-noecho "Password: " t) | ||
| 131 | telnet-new-line))) | ||
| 132 | (t (telnet-check-software-type-initialize string) | ||
| 133 | (telnet-filter proc string) | 129 | (telnet-filter proc string) |
| 134 | (cond ((> telnet-count telnet-maximum-count) | 130 | (setq telnet-count 0) |
| 135 | (set-process-filter proc 'telnet-filter)) | 131 | (send-string proc (concat (comint-read-noecho "Password: " t) |
| 136 | (t (setq telnet-count (1+ telnet-count))))))) | 132 | telnet-new-line))) |
| 133 | (t (telnet-check-software-type-initialize string) | ||
| 134 | (telnet-filter proc string) | ||
| 135 | (cond ((> telnet-count telnet-maximum-count) | ||
| 136 | (set-process-filter proc 'telnet-filter)) | ||
| 137 | (t (setq telnet-count (1+ telnet-count)))))))) | ||
| 137 | 138 | ||
| 138 | ;; Identical to comint-simple-send, except that it sends telnet-new-line | 139 | ;; Identical to comint-simple-send, except that it sends telnet-new-line |
| 139 | ;; instead of "\n". | 140 | ;; instead of "\n". |