]> git.eshelyaron.com Git - emacs.git/commit
Simplify Tramp's find-executable
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 19 Feb 2025 18:38:25 +0000 (19:38 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 20 Feb 2025 21:43:31 +0000 (22:43 +0100)
commitc3f0ddc9f833ca55f04122bf083cf6e50942e195
tree79822b9002abfac6ea5b05e5f06b2935f919c0cf
parent2771b86d68f9ef9db648680fc40bf67680286adc
Simplify Tramp's find-executable

* lisp/net/tramp-cache.el (with-tramp-saved-connection-property):
Fix typo.

* lisp/net/tramp-compat.el: Add TODO.

* lisp/net/tramp-sh.el (tramp-find-executable): Simplify, using
"type -P ...".
(tramp-set-remote-path): Better handling of superlong $PATH.
(tramp-get-remote-path): Adapt/use connection properties.

* test/lisp/net/tramp-tests.el (tramp--test-enabled)
(tramp-test03-file-name-host-rules): Don't wrap
`tramp-cleanup-connection' with `ignore-errors'.

(cherry picked from commit ec34bccfee68a521e7a98ce8dce9325a146d095b)
lisp/net/tramp-cache.el
lisp/net/tramp-compat.el
lisp/net/tramp-sh.el
test/lisp/net/tramp-tests.el