diff options
| author | Michael Albinus | 2012-06-20 08:51:53 +0200 |
|---|---|---|
| committer | Michael Albinus | 2012-06-20 08:51:53 +0200 |
| commit | 493c66882d491bcd6178e580abea92787f3e1555 (patch) | |
| tree | 255c1206e1724bd24f53be3500fe49a5a5e0e63f | |
| parent | 8b5257e1d4cc94e8982916ed5ca616b4f9d8222b (diff) | |
| download | emacs-493c66882d491bcd6178e580abea92787f3e1555.tar.gz emacs-493c66882d491bcd6178e580abea92787f3e1555.zip | |
* net/ange-ftp.el (ange-ftp-get-passwd): Bind
`enable-recursive-minibuffers'.
(ange-ftp-get-process): Throw if `non-essential' is non-nil.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9146b523a43..494ea5a13ca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-06-20 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/ange-ftp.el (ange-ftp-get-passwd): Bind | ||
| 4 | `enable-recursive-minibuffers'. | ||
| 5 | (ange-ftp-get-process): Throw if `non-essential' is non-nil. | ||
| 6 | |||
| 1 | 2012-06-19 David Röthlisberger <david@rothlis.net> (tiny change) | 7 | 2012-06-19 David Röthlisberger <david@rothlis.net> (tiny change) |
| 2 | 8 | ||
| 3 | * ido.el (ido-find-file): Mention C-d binding in docstring (bug#11244). | 9 | * ido.el (ido-find-file): Mention C-d binding in docstring (bug#11244). |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 4ca40fdabef..6ac01a1cd69 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -1230,7 +1230,8 @@ only return the directory part of FILE." | |||
| 1230 | ;; see if same user has logged in to other hosts; if so then prompt | 1230 | ;; see if same user has logged in to other hosts; if so then prompt |
| 1231 | ;; with the password that was used there. | 1231 | ;; with the password that was used there. |
| 1232 | (t | 1232 | (t |
| 1233 | (let* ((other (ange-ftp-get-host-with-passwd user)) | 1233 | (let* ((enable-recursive-minibuffers t) |
| 1234 | (other (ange-ftp-get-host-with-passwd user)) | ||
| 1234 | (passwd (if other | 1235 | (passwd (if other |
| 1235 | 1236 | ||
| 1236 | ;; found another machine with the same user. | 1237 | ;; found another machine with the same user. |
| @@ -2131,6 +2132,11 @@ Create a new process if needed." | |||
| 2131 | (proc (get-process name))) | 2132 | (proc (get-process name))) |
| 2132 | (if (and proc (memq (process-status proc) '(run open))) | 2133 | (if (and proc (memq (process-status proc) '(run open))) |
| 2133 | proc | 2134 | proc |
| 2135 | ;; If `non-essential' is non-nil, don't reopen a new connection. It | ||
| 2136 | ;; will be catched in Tramp. | ||
| 2137 | (when non-essential | ||
| 2138 | (throw 'non-essential 'non-essential)) | ||
| 2139 | |||
| 2134 | ;; Must delete dead process so that new process can reuse the name. | 2140 | ;; Must delete dead process so that new process can reuse the name. |
| 2135 | (if proc (delete-process proc)) | 2141 | (if proc (delete-process proc)) |
| 2136 | (let ((pass (ange-ftp-quote-string | 2142 | (let ((pass (ange-ftp-quote-string |