* net/tramp-cmds.el (tramp-cleanup-connection): Clean up
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 16 Nov 2013 11:37:45 +0000 (12:37 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 16 Nov 2013 11:37:45 +0000 (12:37 +0100)
`tramp-current-connection'.

lisp/ChangeLog
lisp/net/tramp-cmds.el

index aabdbd6..ce887ff 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-16  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-cmds.el (tramp-cleanup-connection): Clean up
+       `tramp-current-connection'.
+
 2013-11-15  Dmitry Gutov  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-font-lock-keywords): End regexp for
index 2f3dfa4..35f23ca 100644 (file)
@@ -85,6 +85,10 @@ When called interactively, a Tramp connection has to be selected."
       ;; Nothing to do.
       (message "No Tramp connection found.")
 
+    ;; Cleanup `tramp-current-connection'.  Otherwise, we would be
+    ;; suppressed in the test suite.
+    (setq tramp-current-connection nil)
+
     ;; Flush password cache.
     (unless keep-password (tramp-clear-passwd vec))