diff options
| author | Michael Albinus | 2025-03-12 20:56:24 +0100 |
|---|---|---|
| committer | Michael Albinus | 2025-03-12 20:56:24 +0100 |
| commit | 13a043fec95f9f6b9721b3c6ff0a3248b14d40cc (patch) | |
| tree | ae07a6c34da88218c6ccf01417497356ef5f1713 /doc/misc | |
| parent | 85c00405b9e349eeabbdb305e5f8da41600d0b89 (diff) | |
| download | emacs-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.texi | 13 |
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 | |||
| 3798 | there are invalid entries in the persistency file, for example if the | 3798 | there are invalid entries in the persistency file, for example if the |
| 3799 | host configuration changes often, or if you plug your laptop to | 3799 | host configuration changes often, or if you plug your laptop to |
| 3800 | different networks frequently, you can set the user option | 3800 | different 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 |
| 3802 | default for all container-based methods, like @option{docker} or | ||
| 3803 | @option{podman}. If you want to suppress this for other connections, | ||
| 3804 | you 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 | ||
| 3803 | After remote host name completion comes completion of file names on | 3814 | After remote host name completion comes completion of file names on |
| 3804 | the remote host. It works the same as with local host file completion | 3815 | the remote host. It works the same as with local host file completion |