summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-08-03 03:20:00 +0000
committerGlenn Morris <rgm@gnu.org>2007-08-03 03:20:00 +0000
commit3b7a686f5450b7ebda37082050064fb8c5726ec0 (patch)
treea373c7fd6813c75a3d7e42d44f374872a6a38e8d /lisp
parent62ce2ec5dc6b20be08a36962f88a18eb690b8707 (diff)
downloademacs-3b7a686f5450b7ebda37082050064fb8c5726ec0.tar.gz
emacs-3b7a686f5450b7ebda37082050064fb8c5726ec0.tar.bz2
emacs-3b7a686f5450b7ebda37082050064fb8c5726ec0.zip
(telnet-mode): Set comint-use-prompt-regexp to t.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/telnet.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/telnet.el b/lisp/net/telnet.el
index c7b37050ed2..28f7d1ddb46 100644
--- a/lisp/net/telnet.el
+++ b/lisp/net/telnet.el
@@ -247,7 +247,8 @@ It has most of the same commands as comint-mode.
There is a variable ``telnet-interrupt-string'' which is the character
sent to try to stop execution of a job on the remote host.
Data is sent to the remote host when RET is typed."
- (set (make-local-variable 'comint-prompt-regexp) telnet-prompt-pattern))
+ (set (make-local-variable 'comint-prompt-regexp) telnet-prompt-pattern)
+ (setq comint-use-prompt-regexp t))
;;;###autoload (add-hook 'same-window-regexps "\\*rsh-[^-]*\\*\\(\\|<[0-9]*>\\)")