From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#10911: 24.0.94; `ido-read-directory-name' should offer known hosts for completion Date: Wed, 27 Oct 2021 17:27:34 +0200 Message-ID: <871r46o5cp.fsf@gmx.de> References: <87sjhtzts0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37966"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Oleksandr Manzyuk , 10911@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 27 18:09:50 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mflUs-0009gf-03 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Oct 2021 18:09:50 +0200 Original-Received: from localhost ([::1]:53390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mflUq-0007kP-VO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Oct 2021 12:09:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfkqS-0007IN-3a for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2021 11:28:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfkqQ-0003wK-Aq for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2021 11:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfkqQ-0000wa-7v for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2021 11:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Oct 2021 15:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10911 X-GNU-PR-Package: emacs Original-Received: via spool by 10911-submit@debbugs.gnu.org id=B10911.16353484653600 (code B ref 10911); Wed, 27 Oct 2021 15:28:02 +0000 Original-Received: (at 10911) by debbugs.gnu.org; 27 Oct 2021 15:27:45 +0000 Original-Received: from localhost ([127.0.0.1]:50232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfkq9-0000w0-37 for submit@debbugs.gnu.org; Wed, 27 Oct 2021 11:27:45 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:53373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfkq6-0000vj-JS for 10911@debbugs.gnu.org; Wed, 27 Oct 2021 11:27:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635348456; bh=qBmCspx5Da+al191g7picmoYoKAci9zt8e5EHaK2D/4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=WK/9Jgll5ZhHew7LckmYY74upZIyfRVg2H1b2In8UmgC1Lyq1SdytPpk9cDyChEnh Up0vZeFtyK4/Py5SW32ynxjajwlQjkqLxumL7g3DJV0Zyof2ZAm+LigbO2Xta+q6EW XbiOrM/bOYLt0Wzzr1boNNypNCgQ8xm61fEYwDAo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.242.69]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M6DWs-1mZACO0PFI-006j4l; Wed, 27 Oct 2021 17:27:36 +0200 In-Reply-To: (Stefan Kangas's message of "Fri, 22 Oct 2021 20:03:04 -0700") X-Provags-ID: V03:K1:PPA45MazJh7qyZBhCFPNr0vcIgYu60gxWx55qg9i5Gw4ByK9a6h 4l3acuu4kvT0h4dCyWaT49w+4WE8YuEx117t57BOsjDZ8nZsKlxj443FgbZKnMSRozuEOkA oIaTpgOALlkwVATUNJEtTkJq5+aDjj8Vlnxm5bG1h25l5BAQ0vOrJfz8SY3uOTykE3AU9bD Kt5pCKGmtfUqrJnmXHQ+Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:rQ1Uwgbm1J4=:AFEnrSeHXtvZ9qwEb75iwm vFuJJ2mKUCD0SV8nzf25tGbqBXq1mBqLhSjZtp1qTFZeu1NxtBi4plRskuIKxsqymxMMEdCKt krd+neGJqZYaM4YJUuwy+mZRnAtX8veQoKJH+JnnfUuNvCYHoiXeU2VwJ3EjMXSrFtBdHYmzj XCxLQc+Eh5RUiqJ6d276ycY5WmiTb88+BKZWskhlq7o2gtKwEkWfEK8R7jhcYXYyI/8aWEeLo UD7liXxp34uQyYjOOR1sCfk8mWXY3ORG3tmmHnXVQCenExo4r8y/zZD6ZPFq2y55nhnPYOncp ZY/jB8PoUyNxIpTgLy5Fkk1yAn1Z9CuknD1bq2rMtDEt+jmlECSvluxjf6YM4oi+cdTANJrE1 MGF49cDdrh8txnk9SKkeKgOGCf+myrA0QF8pGeVqmNU83V/nx4R0josYZHkjSpnRwJlkSSZxm OSm5NAkc5PbHBX0Eq1APoSDcUapcjaHtoDX3IeYJYlJP/g1ZTVk+6mYmpEaqQ+rWgRtHEkqv1 Ic2Jid5N4A+TQY3ArYCh0S2OenfW1d1bkDqWq9DfYkStiUVCQYAQvLIgAL0qxLGCcDAef2mKR RyQl+PgcwgyLwnQRxKjkqHEPKu3QKyJhSDuTtpJzLOBRjZRhaRt6hGNXan1UX+sYvFbuA3qgk ihimOSPShTryFcE1LBrnmBrqlewBaJX0rtz31inf2eCB3KavIkqtljlhAO998k8cvN9Wkg+PO g/+NpMRN77E9+7pPp0PCwClNbOuQqy0AV5QVq/OaNKgJTn1gbtkg66DoqKZbFF8WCBE2TaQS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218457 Archived-At: Stefan Kangas writes: > Hi Michael, Hi, > Could you perhaps take a look at the below bug? It seems to relate to > completions when using Tramp. Somehow, I did miss the bug. I don't read all bug reports, and likely the subject line was too long in order to get my attention with the words "known hosts". So be it just now. > Oleksandr Manzyuk writes: > >> This is a feature request rather than a bug. `ido-read-directory-name' >> doesn't offer known hosts for completion, unlike `ido-read-file-name'. >> Here is what I mean by that. I'm assuming that `ido-mode' is on. >> Please forgive me if I belabor the point. >> >> When I type C-x C-f // and hit TAB, I obtain an *Ido Completions* buffer >> containing not only local directory names (bin/, boot/, dev/ etc.), but >> also known hosts, which is very convenient in conjunction with TRAMP. I >> can type C-x C-f // g o RET, which expands into /golconda.cs.nuim.ie:, >> and if I already have a remote shell running on that host, I can see a >> list of files and directories there. If there is no remote shell yet, I >> can simply hit RET, and it will be opened using TRAMP. Of course, I can >> open a dired buffer visiting a remote directory this way, but it should >> also be equally convenient to do that with `ido-dired'. While it is >> possible, it is also less convenient: I have to type C-x d //, type the >> host name followed by colon *in full and without completion*. >> >> Summarizing, there is a discrepancy in how `ido-read-directory-name' and >> `ido-read-file-name' generate completions, and I don't see why this >> should be the case. Well, time has passed, and Tramp has changed. Meanwhile, a method name is mandatory. I've tried with recent master (Emacs 29.0.50). If I call emacs -Q -L ~/src/tramp/lisp/ -l tramp -f ido-mode I can type "C-x d /ss TAB", and the method "ssh" is not offered. So I continue with "h: TAB", and again, the host name is not offered. If I read a file name, via "C-x C-f /ss TAB", it completes to "/ssh:" (and the similar methods). Typing ": TAB" gives me host name completion. So the situation is similar to what the OP has reported. However, I don't know ido.el pretty good, so some body else, who knows this beast, might continue with analysis. If there are questions from Tramp, don't hesitate to ask. Best regards, Michael.