mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-02 05:32:08 -08:00
* net/tramp-adb.el (tramp-adb-wait-for-output): Remove spurious " ^H"
sequences.
This commit is contained in:
parent
40d1e43460
commit
d754b364fa
2 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2012-12-13 Jürgen Hötzel <juergen@archlinux.org>
|
||||
|
||||
* net/tramp-adb.el (tramp-adb-wait-for-output): Remove spurious " ^H"
|
||||
sequences.
|
||||
|
||||
2012-12-13 Alan Mackenzie <acm@muc.de>
|
||||
|
||||
Make CC Mode not hang when _some_ lines end in CRLF. Bug #11841.
|
||||
|
|
|
|||
|
|
@ -933,10 +933,15 @@ COMMAND is nil, just sends `echo $?'. Returns the exit status found."
|
|||
(if (tramp-wait-for-regexp proc timeout tramp-adb-prompt)
|
||||
(let (buffer-read-only)
|
||||
(goto-char (point-min))
|
||||
(when (re-search-forward tramp-adb-prompt (point-at-eol) t)
|
||||
;; ADB terminal sends "^H" sequences.
|
||||
(when (re-search-forward "<\b+" (point-at-eol) t)
|
||||
(forward-line 1)
|
||||
(delete-region (point-min) (point)))
|
||||
;; Delete the prompt.
|
||||
(goto-char (point-min))
|
||||
(when (re-search-forward tramp-adb-prompt (point-at-eol) t)
|
||||
(forward-line 1)
|
||||
(delete-region (point-min) (point)))
|
||||
(goto-char (point-max))
|
||||
(re-search-backward tramp-adb-prompt nil t)
|
||||
(delete-region (point) (point-max)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue