* net/tramp.el (tramp-action-password): Let-bind enable-recursive-minibuffers to t.
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 19 Apr 2012 08:37:10 +0000 (10:37 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 19 Apr 2012 08:37:10 +0000 (10:37 +0200)
lisp/ChangeLog
lisp/net/tramp.el

index edfe575..434e1a7 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-19  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-action-password): Let-bind
+       `enable-recursive-minibuffers' to t.
+
 2012-04-18  Sam Steingold  <sds@gnu.org>
 
        * progmodes/gud.el (gud-key-prefix): Use :type 'key-sequence
index 5b4ea1e..95848ac 100644 (file)
@@ -3133,11 +3133,12 @@ beginning of local filename are not substituted."
 (defun tramp-action-password (proc vec)
   "Query the user for a password."
   (with-current-buffer (process-buffer proc)
-    (tramp-check-for-regexp proc tramp-password-prompt-regexp)
-    (tramp-message vec 3 "Sending %s" (match-string 1))
-    (tramp-enter-password proc)
-    ;; Hide password prompt.
-    (narrow-to-region (point-max) (point-max))))
+    (let ((enable-recursive-minibuffers t))
+      (tramp-check-for-regexp proc tramp-password-prompt-regexp)
+      (tramp-message vec 3 "Sending %s" (match-string 1))
+      (tramp-enter-password proc)
+      ;; Hide password prompt.
+      (narrow-to-region (point-max) (point-max)))))
 
 (defun tramp-action-succeed (proc vec)
   "Signal success in finding shell prompt."