aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2013-11-25 15:51:34 +0100
committerMichael Albinus2013-11-25 15:51:34 +0100
commit05ca27d8bdd231f5c67558decc3d708d263fdcca (patch)
tree80b4c2a2ec9e5aa6189e86c9c0ba3cbb0c10ae1b
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.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-cmds.el9
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9c89b7b1166..3b46af790a1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-11-25 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-cmds.el (tramp-cleanup-connection): Clean up
4 `tramp-current-connection' only when KEEP-PASSWORD is non-nil.
5
12013-11-25 Stefan Monnier <monnier@iro.umontreal.ca> 62013-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * play/gomoku.el: Don't use intangible property. Use lexical-binding. 8 * play/gomoku.el: Don't use intangible property. Use lexical-binding.
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