diff options
| author | Joakim Verona | 2012-12-13 09:47:27 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-13 09:47:27 +0100 |
| commit | a9d34ef10eae3e4ca9facc905ab05653a2fa27ea (patch) | |
| tree | 0a8cbdf51ec4133c61b638ca66431fdb9c9bf7bc | |
| parent | 8186a9f04f4cdbc5af8d78aa1a8128434676b94f (diff) | |
| parent | 6ce2146306d4d76fcb365ac64110ca0a99b5530d (diff) | |
| download | emacs-a9d34ef10eae3e4ca9facc905ab05653a2fa27ea.tar.gz emacs-a9d34ef10eae3e4ca9facc905ab05653a2fa27ea.zip | |
auto upstream
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/net/tramp-adb.el | 9 |
2 files changed, 17 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3390a2e8e7c..22069406451 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2012-12-13 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp-adb.el (tramp-adb-file-name-p): Make it a defsubst. | ||
| 4 | Otherwise, there could be errors in autoloading. (Bug#13151) | ||
| 5 | |||
| 6 | 2012-12-13 Jürgen Hötzel <juergen@archlinux.org> | ||
| 7 | |||
| 8 | * net/tramp-adb.el (tramp-adb-wait-for-output): Remove spurious " ^H" | ||
| 9 | sequences. | ||
| 10 | |||
| 1 | 2012-12-13 Alan Mackenzie <acm@muc.de> | 11 | 2012-12-13 Alan Mackenzie <acm@muc.de> |
| 2 | 12 | ||
| 3 | Make CC Mode not hang when _some_ lines end in CRLF. Bug #11841. | 13 | 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..5d13d56f638 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -112,7 +112,7 @@ | |||
| 112 | "Alist of handler functions for Tramp ADB method.") | 112 | "Alist of handler functions for Tramp ADB method.") |
| 113 | 113 | ||
| 114 | ;;;###tramp-autoload | 114 | ;;;###tramp-autoload |
| 115 | (defun tramp-adb-file-name-p (filename) | 115 | (defsubst tramp-adb-file-name-p (filename) |
| 116 | "Check if it's a filename for ADB." | 116 | "Check if it's a filename for ADB." |
| 117 | (let ((v (tramp-dissect-file-name filename))) | 117 | (let ((v (tramp-dissect-file-name filename))) |
| 118 | (string= (tramp-file-name-method v) tramp-adb-method))) | 118 | (string= (tramp-file-name-method v) tramp-adb-method))) |
| @@ -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))) |