From: Michael Albinus <michael.albinus@gmx.de>
To: <help-gnu-emacs@gnu.org>
Subject: Re: Tramp shows no user/host completions (solved while writing)
Date: Fri, 25 Oct 2019 16:38:56 +0200 [thread overview]
Message-ID: <87lft8yjnj.fsf@gmx.de> (raw)
In-Reply-To: <87a79po1vj.fsf@gnu.org> (Tassilo Horn's message of "Fri, 25 Oct 2019 07:00:48 +0200")
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.
next prev parent reply other threads:[~2019-10-25 14:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-24 16:01 Tramp shows no user/host completions (solved while writing) Tassilo Horn
2019-10-24 16:47 ` Drew Adams
2019-10-24 19:40 ` Michael Albinus
2019-10-24 20:08 ` Drew Adams
2019-10-24 19:36 ` Michael Albinus
2019-10-24 19:45 ` Tassilo Horn
2019-10-25 5:00 ` Tassilo Horn
2019-10-25 14:38 ` Michael Albinus [this message]
2019-10-26 21:51 ` Tassilo Horn
2019-10-27 8:01 ` Michael Albinus
2019-10-27 21:30 ` Stefan Monnier
2019-10-28 6:57 ` Tassilo Horn
2019-10-28 7:44 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lft8yjnj.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.