aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorMichael Albinus2013-11-25 15:51:34 +0100
committerMichael Albinus2013-11-25 15:51:34 +0100
commit05ca27d8bdd231f5c67558decc3d708d263fdcca (patch)
tree80b4c2a2ec9e5aa6189e86c9c0ba3cbb0c10ae1b /lisp/net
parente82ad66cd05a4fd9da7e54d90f562d5d8c472098 (diff)
downloademacs-05ca27d8bdd231f5c67558decc3d708d263fdcca.tar.gz
emacs-05ca27d8bdd231f5c67558decc3d708d263fdcca.zip
* net/tramp-cmds.el (tramp-cleanup-connection): Clean up
`tramp-current-connection' only when KEEP-PASSWORD is non-nil.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp-cmds.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el
index 35f23caa51a..276651576d7 100644
--- a/lisp/net/tramp-cmds.el
+++ b/lisp/net/tramp-cmds.el
@@ -85,13 +85,14 @@ When called interactively, a Tramp connection has to be selected."
85 ;; Nothing to do. 85 ;; Nothing to do.
86 (message "No Tramp connection found.") 86 (message "No Tramp connection found.")
87 87
88 ;; Cleanup `tramp-current-connection'. Otherwise, we would be
89 ;; suppressed in the test suite.
90 (setq tramp-current-connection nil)
91
92 ;; Flush password cache. 88 ;; Flush password cache.
93 (unless keep-password (tramp-clear-passwd vec)) 89 (unless keep-password (tramp-clear-passwd vec))
94 90
91 ;; Cleanup `tramp-current-connection'. Otherwise, we would be
92 ;; suppressed in the test suite. We use `keep-password' as
93 ;; indicator; it is not worth to add a new argument.
94 (when keep-password (setq tramp-current-connection nil))
95
95 ;; Flush file cache. 96 ;; Flush file cache.
96 (tramp-flush-directory-property vec "") 97 (tramp-flush-directory-property vec "")
97 98