]> git.eshelyaron.com Git - emacs.git/commit
Provide completion candidates for remote containers over a multi-hop
authorGene Goykhman <gene@indigo1.com>
Tue, 29 Aug 2023 08:10:06 +0000 (10:10 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 29 Aug 2023 08:10:06 +0000 (10:10 +0200)
commit2f5d0606cb7f1629f2fcc8fc4f00a43420a4974a
tree2df891852bb507ecc21ed7cd6edbdc099ef6ae60
parent804a96af28235b8a1a1199fc9c2e96e367ce14f6
Provide completion candidates for remote containers over a multi-hop

* lisp/net/tramp-container.el (tramp-container--completion-function):
Set default directory to last hop.
(tramp-set-completion-function): Don't use executable-find for
container program since it might not be running locally.

* lisp/net/tramp.el (tramp--last-hop-directory): Add new variable.
(tramp-completion-handle-file-name-all-completions): Use container
host directory to execute container program on remote host.
(tramp-set-completion-function): FIXME: for now, don't constrain
allowable completion methods to only those present on the local system.
(tramp-completion-remote-containers): Add customize option to
provide completion candidates for containers running on remote hosts.
lisp/net/tramp-container.el
lisp/net/tramp.el