aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2012-08-20 16:06:06 +0200
committerMichael Albinus2012-08-20 16:06:06 +0200
commita32fbbcf262a71891032ef84f596bf5525f9124a (patch)
tree9e65d5c4dfd7a089b4cbb4fd35835a17c1f98024
parenta05731a0cc2553af0469bd9b7d6ac10cd2e6a817 (diff)
downloademacs-a32fbbcf262a71891032ef84f596bf5525f9124a.tar.gz
emacs-a32fbbcf262a71891032ef84f596bf5525f9124a.zip
* net/tramp.el (tramp-accept-process-output): Accept only output
from PROC. Otherwise, process filters and sentinels might be confused. (Bug#12145)
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/tramp.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d748214959d..f16d8c36344 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12012-08-20 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-accept-process-output): Accept only output
4 from PROC. Otherwise, process filters and sentinels might be
5 confused. (Bug#12145)
6
12012-08-20 Chong Yidong <cyd@gnu.org> 72012-08-20 Chong Yidong <cyd@gnu.org>
2 8
3 * descr-text.el (describe-text-properties-1): Use overlays-in to 9 * descr-text.el (describe-text-properties-1): Use overlays-in to
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 848599104c5..a17bbfa0d14 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3293,7 +3293,7 @@ for process communication also."
3293 ;; Under Windows XP, accept-process-output doesn't return 3293 ;; Under Windows XP, accept-process-output doesn't return
3294 ;; sometimes. So we add an additional timeout. 3294 ;; sometimes. So we add an additional timeout.
3295 (with-timeout ((or timeout 1)) 3295 (with-timeout ((or timeout 1))
3296 (accept-process-output proc timeout timeout-msecs))) 3296 (accept-process-output proc timeout timeout-msecs (and proc t))))
3297 (tramp-message proc 10 "\n%s" (buffer-string)))) 3297 (tramp-message proc 10 "\n%s" (buffer-string))))
3298 3298
3299(defun tramp-check-for-regexp (proc regexp) 3299(defun tramp-check-for-regexp (proc regexp)