[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60505: 29.0.60; Fido Mode and Tramp Completion
From: |
Stefan Monnier |
Subject: |
bug#60505: 29.0.60; Fido Mode and Tramp Completion |
Date: |
Thu, 02 Feb 2023 10:16:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Yes. But this is not a Tramp fault. Completion styles like flex (and
> substring, didn't test) do ignore Tramp file name syntax. They simply
> think in terms of file name parts, separated by "/". This is not
> appropriate for remote file names.
Actually, completion styles don't know whether they're completing file
names or not and don't really know that "/" is special in file name syntax.
This is done by `completion-file-name-table` instead. This one, in turn
tries not to pay attention to "/" either, and to rely on file-name
functions instead (e.g. `file-name-directory`).
> Tramp knows only file-name-completion and file-name-all-completions.
Tramp could also influence the completion behavior via the other
file-name functions.
E.g. defining (file-name-directory "/ssh:foo") => "/ssh:" could fix some
of the flex completion cases discussed here.
[ Note: I'm not actually suggesting that this is the solution.
It would likely come with its own set of problems. ]
Stefan
- bug#54042: closed (Re: bug#60505: 29.0.60; Fido Mode and Tramp Completion), (continued)
- bug#60505: 29.0.60; Fido Mode and Tramp Completion, Michael Heerdegen, 2023/02/07
- bug#60505: 29.0.60; Fido Mode and Tramp Completion, Michael Albinus, 2023/02/08
- bug#60505: 29.0.60; Fido Mode and Tramp Completion, Michael Heerdegen, 2023/02/08
- bug#60505: 29.0.60; Fido Mode and Tramp Completion, Gregory Heytings, 2023/02/02
- bug#60505: 29.0.60; Fido Mode and Tramp Completion, Juri Linkov, 2023/02/03
- bug#60505: 29.0.60; Fido Mode and Tramp Completion, Michael Albinus, 2023/02/03
- bug#60505: 29.0.60; Fido Mode and Tramp Completion, Eli Zaretskii, 2023/02/03
bug#60505: 29.0.60; Fido Mode and Tramp Completion, Stefan Monnier, 2023/02/02
bug#60505: 29.0.60; Fido Mode and Tramp Completion,
Stefan Monnier <=