summaryrefslogtreecommitdiff
path: root/lisp/telnet.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-01-08 06:56:06 +0000
committerRichard M. Stallman <rms@gnu.org>1997-01-08 06:56:06 +0000
commit05a9a6cf6b60e3af72d2cdcc22768081071a35a8 (patch)
treee7538da033304fcb897fea342082592979d76600 /lisp/telnet.el
parentd927af1b23d45482aa73bec8c247042a3c77cd33 (diff)
downloademacs-05a9a6cf6b60e3af72d2cdcc22768081071a35a8.tar.gz
(telnet-initial-filter): Fix error message.
Bind case-fold-search to t.
Diffstat (limited to 'lisp/telnet.el')
-rw-r--r--lisp/telnet.el25
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.")
(defun telnet-initial-filter (proc string)
;For reading up to and including password; also will get machine type.
- (cond ((string-match "No such host" string)
- (kill-buffer (process-buffer proc))
- (error "No such host."))
- ((string-match "passw" string)
- (telnet-filter proc string)
- (setq telnet-count 0)
- (send-string proc (concat (comint-read-noecho "Password: " t)
- telnet-new-line)))
- (t (telnet-check-software-type-initialize string)
+ (let ((case-fold-search t))
+ (cond ((string-match "No such host" string)
+ (kill-buffer (process-buffer proc))
+ (error "No such host"))
+ ((string-match "passw" string)
(telnet-filter proc string)
- (cond ((> telnet-count telnet-maximum-count)
- (set-process-filter proc 'telnet-filter))
- (t (setq telnet-count (1+ telnet-count)))))))
+ (setq telnet-count 0)
+ (send-string proc (concat (comint-read-noecho "Password: " t)
+ telnet-new-line)))
+ (t (telnet-check-software-type-initialize string)
+ (telnet-filter proc string)
+ (cond ((> telnet-count telnet-maximum-count)
+ (set-process-filter proc 'telnet-filter))
+ (t (setq telnet-count (1+ telnet-count))))))))
;; Identical to comint-simple-send, except that it sends telnet-new-line
;; instead of "\n".