aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2025-03-12 20:56:24 +0100
committerMichael Albinus2025-03-12 20:56:24 +0100
commit13a043fec95f9f6b9721b3c6ff0a3248b14d40cc (patch)
treeae07a6c34da88218c6ccf01417497356ef5f1713 /doc/misc
parent85c00405b9e349eeabbdb305e5f8da41600d0b89 (diff)
downloademacs-13a043fec95f9f6b9721b3c6ff0a3248b14d40cc.tar.gz
emacs-13a043fec95f9f6b9721b3c6ff0a3248b14d40cc.zip
Tramp: Don't offer non-existing containers in completion
* doc/misc/tramp.texi (File name completion): Explain "completion-use-cache" property. * lisp/net/tramp-cache.el (tramp-get-method-parameter): Declare. (tramp-get-hash-table): Mark connection properties. (tramp-dump-connection-properties): Remove empty lists. (tramp-parse-connection-properties): Take connection property "completion-use-cache" into account. (Bug#76950) * lisp/net/tramp-container.el (tramp-methods) <docker, dockercp, podman> <podmancp, kubernetes, toolbox, distrobox, flatpak, apptainer, nspawn>: Add `tramp-completion-use-cache' argument.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi13
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 0f9ffced90c..81feb56ec31 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -3798,7 +3798,18 @@ completion lists. If you want to suppress this completion because
3798there are invalid entries in the persistency file, for example if the 3798there are invalid entries in the persistency file, for example if the
3799host configuration changes often, or if you plug your laptop to 3799host configuration changes often, or if you plug your laptop to
3800different networks frequently, you can set the user option 3800different networks frequently, you can set the user option
3801@code{tramp-completion-use-cache} to @code{nil}. 3801@code{tramp-completion-use-cache} to @code{nil}. This is set per
3802default for all container-based methods, like @option{docker} or
3803@option{podman}. If you want to suppress this for other connections,
3804you can use the connection property @t{"completion-use-cache"},
3805@xref{Predefined connection information}. Example:
3806
3807@lisp
3808@group
3809(add-to-list 'tramp-connection-properties
3810 (list "^/sshfs:" "completion-use-cache" nil))
3811@end group
3812@end lisp
3802 3813
3803After remote host name completion comes completion of file names on 3814After remote host name completion comes completion of file names on
3804the remote host. It works the same as with local host file completion 3815the remote host. It works the same as with local host file completion