Mercurial > emacs
diff lisp/eshell/em-cmpl.el @ 106219:16b061d2742d
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'.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Tue, 24 Nov 2009 10:25:54 +0000 |
parents | a9dc0e7c3f2b |
children | 1d1d5d9bd884 |
line wrap: on
line diff
--- a/lisp/eshell/em-cmpl.el Tue Nov 24 09:19:09 2009 +0000 +++ b/lisp/eshell/em-cmpl.el Tue Nov 24 10:25:54 2009 +0000 @@ -402,7 +402,7 @@ (setq filename (substring filename 1) pcomplete-stub filename glob-name t)) - (let* ((paths (split-string (getenv "PATH") path-separator)) + (let* ((paths (eshell-parse-colon-path eshell-path-env)) (cwd (file-name-as-directory (expand-file-name default-directory))) (path "") (comps-in-path ())