diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp-adb.el | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3390a2e8e7c..cfc1601b098 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-13 Jürgen Hötzel <juergen@archlinux.org> | ||
| 2 | |||
| 3 | * net/tramp-adb.el (tramp-adb-wait-for-output): Remove spurious " ^H" | ||
| 4 | sequences. | ||
| 5 | |||
| 1 | 2012-12-13 Alan Mackenzie <acm@muc.de> | 6 | 2012-12-13 Alan Mackenzie <acm@muc.de> |
| 2 | 7 | ||
| 3 | Make CC Mode not hang when _some_ lines end in CRLF. Bug #11841. | 8 | Make CC Mode not hang when _some_ lines end in CRLF. Bug #11841. |
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index fea4cb35ea3..b5b31828bb1 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -933,10 +933,15 @@ COMMAND is nil, just sends `echo $?'. Returns the exit status found." | |||
| 933 | (if (tramp-wait-for-regexp proc timeout tramp-adb-prompt) | 933 | (if (tramp-wait-for-regexp proc timeout tramp-adb-prompt) |
| 934 | (let (buffer-read-only) | 934 | (let (buffer-read-only) |
| 935 | (goto-char (point-min)) | 935 | (goto-char (point-min)) |
| 936 | (when (re-search-forward tramp-adb-prompt (point-at-eol) t) | 936 | ;; ADB terminal sends "^H" sequences. |
| 937 | (when (re-search-forward "<\b+" (point-at-eol) t) | ||
| 937 | (forward-line 1) | 938 | (forward-line 1) |
| 938 | (delete-region (point-min) (point))) | 939 | (delete-region (point-min) (point))) |
| 939 | ;; Delete the prompt. | 940 | ;; Delete the prompt. |
| 941 | (goto-char (point-min)) | ||
| 942 | (when (re-search-forward tramp-adb-prompt (point-at-eol) t) | ||
| 943 | (forward-line 1) | ||
| 944 | (delete-region (point-min) (point))) | ||
| 940 | (goto-char (point-max)) | 945 | (goto-char (point-max)) |
| 941 | (re-search-backward tramp-adb-prompt nil t) | 946 | (re-search-backward tramp-adb-prompt nil t) |
| 942 | (delete-region (point) (point-max))) | 947 | (delete-region (point) (point-max))) |