# HG changeset patch # User Michael Albinus # Date 1258622719 0 # Node ID 94327931be14876daa2f6f99c8859c366fd1d333 # Parent 9436bfeee055ffcbd934b422d80233a888d9c320 * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set variables for computing the prompt for reading password. diff -r 9436bfeee055 -r 94327931be14 lisp/net/tramp.el --- a/lisp/net/tramp.el Thu Nov 19 07:42:20 2009 +0000 +++ b/lisp/net/tramp.el Thu Nov 19 09:25:19 2009 +0000 @@ -3804,6 +3804,12 @@ (tramp-error v 'file-error "Cannot find copy program: %s" copy-program)) + ;; Set variables for computing the prompt for reading + ;; password. + (setq tramp-current-method (tramp-file-name-method v) + tramp-current-user (tramp-file-name-user v) + tramp-current-host (tramp-file-name-host v)) + (unwind-protect (with-temp-buffer ;; The default directory must be remote.