emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 1220cdc 6/9: multishell - Be more specific about why we us


From: ken manheimer
Subject: [elpa] master 1220cdc 6/9: multishell - Be more specific about why we use tramp-cleanup-connection.
Date: Fri, 12 Feb 2016 09:23:10 +0000

branch: master
commit 1220cdce470b640175faf2093250acc7b7fad16f
Author: Ken Manheimer <address@hidden>
Commit: Ken Manheimer <address@hidden>

    multishell - Be more specific about why we use tramp-cleanup-connection.
---
 multishell.el |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/multishell.el b/multishell.el
index 3043ad7..da24034 100644
--- a/multishell.el
+++ b/multishell.el
@@ -706,7 +706,11 @@ and path nil if none is resolved."
 
       (when (and (derived-mode-p 'shell-mode) (file-remote-p path))
         ;; Returning to disconnected remote shell - do some tidying.
-        ;; Prevents an "Args out of range" failure when reconnecting.
+        ;; Without this cleanup, occasionally restarting a disconnected
+        ;; remote session, particularly one that includes sudo, results in
+        ;; an untraceable "Args out of range" error. That never happens if
+        ;; we precedeed connection attempts with this cleanup -
+        ;; prophylactic.
         (tramp-cleanup-connection
          (tramp-dissect-file-name default-directory 'noexpand)
          'keep-debug 'keep-password))



reply via email to

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