]> git.eshelyaron.com Git - emacs.git/commitdiff
* tramp.el (tramp-wait-for-output): Ignore escape sequences in the
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 5 Nov 2007 20:52:29 +0000 (20:52 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 5 Nov 2007 20:52:29 +0000 (20:52 +0000)
prompt.

lisp/ChangeLog
lisp/net/tramp.el

index 382355a05bb9440ecb6d1ab055ce880630efb96a..653c8ab7a1e33c26bbf9ebfc6c4f97a3fda2607b 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-05  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-wait-for-output): Ignore escape sequences in
+       the prompt.
+
 2007-10-05  Chris Moore  <christopher.ian.moore@gmail.com>
 
        * wdired.el (wdired-use-dired-vertical-movement): Doc fix.
index f28d8b7aec7a9cf92c32c7c7f1fe464a9c0e78bf..8b50e034b477634fbe9462861c4f9c8b00d4ad30 100644 (file)
@@ -6197,7 +6197,9 @@ function waits for output unless NOOUTPUT is set."
     (let ((found
           (tramp-wait-for-regexp
            proc timeout
-           (format "^%s\r?$" (regexp-quote tramp-end-of-output)))))
+           ;; Initially, `tramp-end-of-output' is "$ ".  There might
+           ;; be leading escape sequences, which must be ignored.
+           (format "^[^$\n]*%s\r?$" (regexp-quote tramp-end-of-output)))))
       (if found
          (let (buffer-read-only)
            (goto-char (point-max))