emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 5083499: Fix Bug#23883


From: Michael Albinus
Subject: [Emacs-diffs] master 5083499: Fix Bug#23883
Date: Tue, 2 Aug 2016 20:38:17 +0000 (UTC)

branch: master
commit 508349920555ac02dcba71c4d4c60c5a6bb509b6
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Fix Bug#23883
    
    * lisp/net/tramp-sh.el (tramp-maybe-open-connection):
    Call `process-actions' with adapted position.  The connection
    buffer might have been cleaned up already.  (Bug#23883)
---
 lisp/net/tramp-sh.el |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index abfd56e..62bf1a6 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4853,7 +4853,10 @@ connection if a previous connection has died for some 
reason."
                    (tramp-message vec 3 "Sending command `%s'" command)
                    (tramp-send-command vec command t t)
                    (tramp-process-actions
-                    p vec pos tramp-actions-before-shell
+                    p vec
+                    (min
+                     pos (with-current-buffer (process-buffer p) (point-max)))
+                    tramp-actions-before-shell
                     (or connection-timeout tramp-connection-timeout))
                    (tramp-message
                     vec 3 "Found remote shell prompt on `%s'" l-host))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]