diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp-cmds.el | 9 |
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 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2013-11-25 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-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 | ||