1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00
emacs/lisp/eshell
Jim Porter cee1cbfd54 Improve handling of $PATH in Eshell for remote directories
* lisp/eshell/esh-util.el (eshell-path-env, eshell-parse-colon-path):
Make obsolete.
(eshell-path-env-list): New variable.
(eshell-connection-default-profile): New connection-local profile.
(eshell-get-path): Reimplement using 'eshell-path-env-list'; add
LITERAL-P argument.
(eshell-set-path): New function.

* lisp/eshell/esh-var.el (eshell-variable-aliases-list): Add entry for
$PATH.
(eshell-var-initialize): Add 'eshell-path-env-list' to
'eshell-subcommand-bindings'.

* lisp/eshell/esh-ext.el (eshell-search-path): Use 'file-name-concat'
instead of 'concat'.
(eshell/addpath): Use 'eshell-get-path' and 'eshell-set-path'.

* lisp/net/tramp-integration.el: Only apply Eshell hooks when
'eshell-path-env-list' is unbound.

* test/lisp/eshell/esh-var-tests.el
(esh-var-test/path-var/local-directory)
(esh-var-test/path-var/remote-directory, esh-var-test/path-var/set)
(esh-var-test/path-var/set-locally)
(esh-var-test/path-var-preserve-across-hosts): New tests.

* test/lisp/eshell/esh-ext-tests.el: New file.

* test/lisp/eshell/eshell-tests-helpers.el
(with-temp-eshell): Set 'eshell-last-dir-ring-file-name' to nil.
(eshell-tests-remote-accessible-p, eshell-last-input)
(eshell-last-output): New functions.
(eshell-match-output, eshell-match-output--explainer): Use
'eshell-last-input' and 'eshell-last-output'.

* doc/misc/eshell.texi (Variables): Document $PATH.

* etc/NEWS: Announce this change (bug#57556).
2022-10-17 18:48:52 -07:00
..
em-alias.el Only set Eshell execution result metavariables when non-nil 2022-08-12 22:07:13 -07:00
em-banner.el
em-basic.el
em-cmpl.el Fix eshell directory and executable completion on action t 2022-09-19 10:22:55 +02:00
em-dirs.el Ensure Eshell variable aliases properly handle indexing 2022-07-12 15:11:00 +02:00
em-elecslash.el
em-extpipe.el Rename recently added macro to follow conventions 2022-08-04 12:18:46 +02:00
em-glob.el Merge from origin/emacs-28 2022-09-21 10:25:06 +02:00
em-hist.el Autoload string-blank-p 2022-08-09 21:58:00 +02:00
em-ls.el
em-pred.el
em-prompt.el
em-rebind.el
em-script.el Remove redundant let-bindings of inhibit-point-motion-hooks 2022-10-07 12:16:47 -04:00
em-smart.el Remove redundant let-bindings of inhibit-point-motion-hooks 2022-10-07 12:16:47 -04:00
em-term.el Allow checking specific Eshell handles for interactive output 2022-09-04 15:15:01 -07:00
em-tramp.el
em-unix.el Rename file-attribute-file-number' to file-attribute-file-identifier' 2022-10-14 21:32:15 +02:00
em-xtra.el
esh-arg.el Remove redundant let-bindings of inhibit-point-motion-hooks 2022-10-07 12:16:47 -04:00
esh-cmd.el Allow setting the values of variable aliases in Eshell 2022-10-17 18:48:52 -07:00
esh-ext.el Improve handling of $PATH in Eshell for remote directories 2022-10-17 18:48:52 -07:00
esh-io.el Add support for more kinds of redirect operators in Eshell 2022-09-04 15:15:01 -07:00
esh-mode.el Remove redundant let-bindings of inhibit-point-motion-hooks 2022-10-07 12:16:47 -04:00
esh-module.el
esh-opt.el
esh-proc.el Fix encoding and decoding of process I/O in Eshell on Windows 2022-10-15 13:59:49 +03:00
esh-util.el Improve handling of $PATH in Eshell for remote directories 2022-10-17 18:48:52 -07:00
esh-var.el Improve handling of $PATH in Eshell for remote directories 2022-10-17 18:48:52 -07:00
eshell.el Delete many items obsolete since 24.3 2022-09-09 11:27:30 +02:00