From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp shows no user/host completions (solved while writing) Date: Fri, 25 Oct 2019 16:38:56 +0200 Message-ID: <87lft8yjnj.fsf@gmx.de> References: <87v9seb0af.fsf@gnu.org> <874kzyylzw.fsf@gmx.de> <16dff4d0648.27dc.69bc538c4644581689883e654f15bce0@gnu.org> <87a79po1vj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8606"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 25 16:52:34 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iO0x8-00022O-4b for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 16:52:34 +0200 Original-Received: from localhost ([::1]:33222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO0x5-0002kL-I5 for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 10:52:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47402) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO0k5-0007I3-Et for help-gnu-emacs@gnu.org; Fri, 25 Oct 2019 10:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO0k4-00016x-AC for help-gnu-emacs@gnu.org; Fri, 25 Oct 2019 10:39:05 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:50547) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iO0k3-00016E-TP for help-gnu-emacs@gnu.org; Fri, 25 Oct 2019 10:39:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1572014338; bh=qvqKOtZ1XGiv4Kf5Z/aC1SoHnyuSXGiHKHyUPwPzGL0=; h=X-UI-Sender-Class:From:To:Subject:References:Date:In-Reply-To; b=kxl1hfcDo5F75AO6+8Sy3OwnFoXJ/ZZW7c73lEz5iwJTfJHUsr2FC0+iFxDJP8z04 sgvHSfsbTmpFlW1G3OrOSQ+aesStHax1pQ1m6jjlAkEn1eNFHVaYS8VLbmII96k5Dg z6rzbvRCrggK7kKyxFOhj3pkYRDBOltutN/Wcalw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([79.140.117.83]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGhuK-1iAJdY0sYU-00Dsv5 for ; Fri, 25 Oct 2019 16:38:58 +0200 In-Reply-To: <87a79po1vj.fsf@gnu.org> (Tassilo Horn's message of "Fri, 25 Oct 2019 07:00:48 +0200") X-Provags-ID: V03:K1:hbZB+6WBLhPKodrMcUR6+tHvb4HPt0SwSdqQ/xEUnAIYTfB/pBn 89pgRoBuTVvvcEbg26zK3ZWr8KYM8w5Kbt5SPiVlamnTg1eVIjP5X0lZS2vPH1tqADrIU6r 5MRoTGSZYR9nJCdmJ9NzW1o5mEacL+cSNHDTB/IqoktubfAs+sDRzGvk/fVFYqH3rYVh0+o HsTlVpox8lZ1wKXMYVbcA== X-UI-Out-Filterresults: notjunk:1;V03:K0:UHPmgvGFCWw=:gs72QyBbQCuPjVUzaJ+xZe fT/Nympw0Me4nR4GSI3xUddTxEUfIu2X5lu79XvCezcKjBL6sEOKO0PQz03N5xjYb7dX10OIu rAigYg4ub4dl7fq5gmQMvgi2SoWb7baOIvBqTm2HC/2PkCuur0Yg3lkvYrs1OJgCwixzM96/H avinwULhrwX14AJCqM7zYeL8oI6TxjuUXVcfIT6l5WawrtffKJkaYndzWLdJuJ28ZvP2b6hIo ZrAXEIFuaKLTHc8dZCTFxMcKdsJ2rsblQqnI55hrc2EAva9tAUYWQr6D29dQ0S/xbYIddDTUr lr0xpJnIWo42UDvVl3qpII9LgfskV/PXW0ueDCf4y0AhmgkAx3ryq+LIdC1fvp1S4IIFgjzlp dFngIdymlIq3U6CabuafZfrxLUy1rDAsNHEv2AaOQAojOlAnVxrrlBySYDILM80iLQ9ZBLoOl XmMZ17MGRL7M48AigAVybxD1mwQD8AcohCEShye6XD66D1Gxgq8RevRsDZss27DITswTflR9D tPfvQo6YSr710TspbDGssHGbrSLKDm7rbF//GzMxtg8nNFnDbXjuGaeZuZctEBaGfnQH+IHii A4ZUrNWG5Nza+BPb5LywJUbwdjnfqL2a8zhsaNdYuK6O18avc4yiEQoB1xO+F83vCDPM2Z40l iyuIynGzH/A1tSdelbbqNxIYLEC9YAYVOH6iFAxdCutF1o4D+KqrFA0p6ztmUJbv8nhjpQsp3 RbBMsICga9IvX25ric7aC2vLuY1RD5CtCGsuo1AGkvtAA4o6bJEOaRroTkqUPWgmZbmjFXP8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121726 Archived-At: Tassilo Horn 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 =E2=80=98basic=E2=80=99, =E2=80=98emacs21= =E2=80=99, or =E2=80=98emacs22=E2=80=99. *Note (emacs)Completion Styles::. --8<---------------cut here---------------end--------------->8--- > Cheers, > Tassilo Best regards, Michael.