diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2009-11-24 10:25:54 +0000 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2009-11-24 10:25:54 +0000 |
commit | 605a20a98823768578d6faed5f04cb00e57da2bb (patch) | |
tree | 525322a2fc9fbabb9d8bebc014e51d061aeff7c2 /lisp/eshell/em-unix.el | |
parent | 937e60c88bfbbc44d44806a7cf43d5f982a8026f (diff) | |
download | emacs-605a20a98823768578d6faed5f04cb00e57da2bb.tar.gz emacs-605a20a98823768578d6faed5f04cb00e57da2bb.tar.bz2 emacs-605a20a98823768578d6faed5f04cb00e57da2bb.zip |
Improve handling of processes on remote hosts.
* eshell/esh-util.el (eshell-path-env): New defvar.
(eshell-parse-colon-path): New defun.
(eshell-file-attributes): Use `eshell-parse-colon-path'.
* eshell/esh-ext.el (eshell-search-path): Use
`eshell-parse-colon-path'.
(eshell-remote-command): Remove argument HANDLER.
(eshell-external-command): Check for FTP remote connection.
* eshell/esh-proc.el (eshell-gather-process-output): Use
`file-truename', in order to start also symlinked files. Apply
`start-file-process' instead of `start-process'. Shorten `command'
to the local file name part.
* eshell/em-cmpl.el (eshell-complete-commands-list): Use
`eshell-parse-colon-path'.
* eshell/em-unix.el (eshell/du): Check for FTP remote connection.
* net/tramp.el (tramp-eshell-directory-change): New defun. Add it
to `eshell-directory-change-hook'.
Diffstat (limited to 'lisp/eshell/em-unix.el')
-rw-r--r-- | lisp/eshell/em-unix.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el index dab1ab8f955..d6ba970b6bb 100644 --- a/lisp/eshell/em-unix.el +++ b/lisp/eshell/em-unix.el @@ -859,9 +859,8 @@ external command." (if (and ext-du (not (catch 'have-ange-path (eshell-for arg args - (if (eq (find-file-name-handler (expand-file-name arg) - 'directory-files) - 'ange-ftp-hook-function) + (if (string-equal + (file-remote-p (expand-file-name arg) 'method) "ftp") (throw 'have-ange-path t)))))) (throw 'eshell-replace-command (eshell-parse-command ext-du args)) |