]> git.eshelyaron.com Git - emacs.git/commit
Use "/local:" prefix in Eshell to run local commands when cwd is remote
authorJim Porter <jporterbugs@gmail.com>
Fri, 10 May 2024 19:22:52 +0000 (12:22 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 16 May 2024 08:22:35 +0000 (10:22 +0200)
commitde25855b85f92e0c730b52dd9fc772b74e84f49c
treed6923a86ae05866c72c724cf45896b1af29d660e
parent1070e49bb103dae100ba62f9eb99c23f38e75c29
Use "/local:" prefix in Eshell to run local commands when cwd is remote

* lisp/eshell/esh-ext.el (eshell-explicit-remote-commands)
(eshell-explicit-command): Update docstrings.
(eshell--local-prefix): New constant.
(eshell-handle-remote-command): Remove.
(eshell-quoted-file-command): New function...
(eshell-ext-initialize): ... add it as a hook.
(eshell-remote-command): Support running commands on localhost.
(eshell-connection-local-command): Rename from
'eshell-external-command'.
(eshell-external-command): New implementation calling
'eshell-remote-command' or 'eshell-connection-local-command' as
appropriate.

* test/lisp/eshell/esh-ext-tests.el
(esh-ext-test/explicitly-local-command): Update test.

* doc/misc/eshell.texi (Remote Access): Update documentation.

* etc/NEWS: Update announcement.

(cherry picked from commit e260bf1be7b03c21988a2090cde31970bd6bbfc9)
doc/misc/eshell.texi
etc/NEWS
lisp/eshell/esh-ext.el
test/lisp/eshell/esh-ext-tests.el