help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp shows no user/host completions (solved while writing)


From: Michael Albinus
Subject: Re: Tramp shows no user/host completions (solved while writing)
Date: Fri, 25 Oct 2019 16:38:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Tassilo Horn <tsdh@gnu.org> writes:

> Hi Michael,

Hi Tassilo,

> Now I've had the time to test.  With
>
>   emacs -Q --eval "(setq completion-styles '(partial-completion
> substring initials flex) completion-category-overrides nil)"
>
> I also don't get user/hostname completion.  So my statement must be
> corrected to "you must use the basic or emacs22 (or possibly emacs21)
> completion style" (which are essentially the basic styles of these
> respective emacs versions).

Indeed. When I complete "/ssh:f TAB" with one of `emacs21', `emacs22' or
`basic' in `completion-styles', I see the call

(file-name-all-completions "ssh:f" "/")

which performs host name completion in Tramp. For the other completion
styles, there is just

(file-name-all-completions "ssh" "/") ;; for `partial-completion'

or

(file-name-all-completions "" "/") ;; for `substring' and `flex'

or even no call for `initials'. So I have added the following sentence
to the Tramp manual:

--8<---------------cut here---------------start------------->8---
User name and host name completion is activated only, if file name
completion has one of the styles ‘basic’, ‘emacs21’, or ‘emacs22’.
*Note (emacs)Completion Styles::.
--8<---------------cut here---------------end--------------->8---

> Cheers,
> Tassilo

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]