]> git.eshelyaron.com Git - emacs.git/commitdiff
(telnet-mode): Set comint-use-prompt-regexp to t.
authorGlenn Morris <rgm@gnu.org>
Fri, 3 Aug 2007 03:20:00 +0000 (03:20 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 3 Aug 2007 03:20:00 +0000 (03:20 +0000)
lisp/net/telnet.el

index c7b37050ed267d3ffa5d23aff46d4887d5621645..28f7d1ddb46a480aee5ebcb218e946c7066245c0 100644 (file)
@@ -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]*>\\)")