diff options
| -rw-r--r-- | lisp/net/tramp.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 2a8a5ef15fa..2361b078c99 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1314,8 +1314,8 @@ necessary only. This function will be used in file name completion." | |||
| 1314 | "Get the connection buffer to be used for VEC." | 1314 | "Get the connection buffer to be used for VEC." |
| 1315 | (or (get-buffer (tramp-buffer-name vec)) | 1315 | (or (get-buffer (tramp-buffer-name vec)) |
| 1316 | (with-current-buffer (get-buffer-create (tramp-buffer-name vec)) | 1316 | (with-current-buffer (get-buffer-create (tramp-buffer-name vec)) |
| 1317 | ;; We use existence of connection property "process-buffer" as | 1317 | ;; We use the existence of connection property "process-buffer" |
| 1318 | ;; indication, whether a connection is active. | 1318 | ;; as indication, whether a connection is active. |
| 1319 | (tramp-set-connection-property | 1319 | (tramp-set-connection-property |
| 1320 | vec "process-buffer" | 1320 | vec "process-buffer" |
| 1321 | (tramp-get-connection-property vec "process-buffer" nil)) | 1321 | (tramp-get-connection-property vec "process-buffer" nil)) |
| @@ -4194,6 +4194,14 @@ Invokes `password-read' if available, `read-passwd' else." | |||
| 4194 | (replace-regexp-in-string | 4194 | (replace-regexp-in-string |
| 4195 | (concat tramp-postfix-hop-regexp "$") | 4195 | (concat tramp-postfix-hop-regexp "$") |
| 4196 | tramp-postfix-host-format hop)))))) | 4196 | tramp-postfix-host-format hop)))))) |
| 4197 | ;; `auth-source-forget' has been obsoleted with Emacs 24.1. But | ||
| 4198 | ;; there is no known replacement. | ||
| 4199 | (when (fboundp 'auth-source-forget) | ||
| 4200 | (auth-source-forget | ||
| 4201 | `(:max 1 | ||
| 4202 | :user ,(or (tramp-file-name-user vec) t) | ||
| 4203 | :host ,(tramp-file-name-host vec) | ||
| 4204 | :port ,(tramp-file-name-method vec)))) | ||
| 4197 | (password-cache-remove | 4205 | (password-cache-remove |
| 4198 | (tramp-make-tramp-file-name | 4206 | (tramp-make-tramp-file-name |
| 4199 | (tramp-file-name-method vec) | 4207 | (tramp-file-name-method vec) |