changeset 82243:54e0d414b1de

(telnet-mode): Set comint-use-prompt-regexp to t.
author Glenn Morris <rgm@gnu.org>
date Fri, 03 Aug 2007 03:20:00 +0000
parents ea6a4238388e
children 9928f84fd32b
files lisp/net/telnet.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/telnet.el	Fri Aug 03 03:19:36 2007 +0000
+++ b/lisp/net/telnet.el	Fri Aug 03 03:20:00 2007 +0000
@@ -247,7 +247,8 @@
 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]*>\\)")