From c9bcc580e8286ee32840dae5aacdcc930cfee2da Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 18 Feb 2013 20:13:21 +0100 Subject: * eshell/em-unix.el (eshell/su): Require tramp. (eshell/sudo): Require tramp. Remove now unnecessary check. * net/tramp-sh.el (tramp-sh-handle-start-file-process): Let-bind `tramp-current-connection' in order to avoid an error when several commands are invoked in a short time in eshell and friends. --- lisp/net/tramp-sh.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp/net') diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 2152ba1e270..29a6344734f 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -2739,7 +2739,11 @@ the result will be a local, non-Tramp, filename." (or (null program) tramp-process-connection-type)) (bmp (and (buffer-live-p buffer) (buffer-modified-p buffer))) (name1 name) - (i 0)) + (i 0) + ;; We do not want to raise an error when + ;; `start-file-process' has been started several time in + ;; `eshell' and friends. + (tramp-current-connection nil)) (unless buffer ;; BUFFER can be nil. We use a temporary buffer. -- cgit v1.2.3