From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 29 07:53:32 2012 Received: (at submit) by debbugs.gnu.org; 29 Feb 2012 12:53:32 +0000 Received: from localhost ([127.0.0.1]:55252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S2j26-0006gr-5t for submit@debbugs.gnu.org; Wed, 29 Feb 2012 07:53:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50598) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S2j1f-0006fz-3o for submit@debbugs.gnu.org; Wed, 29 Feb 2012 07:53:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2j1H-0007ra-5t for submit@debbugs.gnu.org; Wed, 29 Feb 2012 07:52:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:51068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2j1G-0007rW-WB for submit@debbugs.gnu.org; Wed, 29 Feb 2012 07:52:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2j1C-0000OP-Jf for bug-gnu-emacs@gnu.org; Wed, 29 Feb 2012 07:52:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2j16-0007q7-Id for bug-gnu-emacs@gnu.org; Wed, 29 Feb 2012 07:52:29 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:56953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2j16-0007ps-66 for bug-gnu-emacs@gnu.org; Wed, 29 Feb 2012 07:52:24 -0500 Received: by wibhi20 with SMTP id hi20so1285975wib.0 for ; Wed, 29 Feb 2012 04:52:21 -0800 (PST) Received-SPF: pass (google.com: domain of manzyuk@gmail.com designates 10.180.100.33 as permitted sender) client-ip=10.180.100.33; Authentication-Results: mr.google.com; spf=pass (google.com: domain of manzyuk@gmail.com designates 10.180.100.33 as permitted sender) smtp.mail=manzyuk@gmail.com; dkim=pass header.i=manzyuk@gmail.com Received: from mr.google.com ([10.180.100.33]) by 10.180.100.33 with SMTP id ev1mr728726wib.3.1330519941403 (num_hops = 1); Wed, 29 Feb 2012 04:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; bh=npa6FMzEPBdLHMLPr+QuypOy9corsN/SY07i9MOBqo8=; b=jQHbhUXkTo6dEjpc8pQw19fDBKITcwHJJVXsdja/56qbd4OOW/dzcf0BV+VjRwNMyE EBElzlZwHo5yOt92GHtnNtRrt0QlZDbchXpZLEr5WzFCf5OUGyKyzCvhNTovetwf3rkJ 6aAj4lubXXZI5HtFJbkT+UwGF2yynVFiRaZhU= Received: by 10.180.100.33 with SMTP id ev1mr590951wib.3.1330519941349; Wed, 29 Feb 2012 04:52:21 -0800 (PST) Received: from pandora.hamilton.local (hamilton-nat.nuim.ie. [149.157.192.251]) by mx.google.com with ESMTPS id m16sm86728483wie.9.2012.02.29.04.52.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Feb 2012 04:52:20 -0800 (PST) From: Oleksandr Manzyuk To: bug-gnu-emacs@gnu.org Subject: 24.0.94; `ido-read-directory-name' should offer known hosts for completion Date: Wed, 29 Feb 2012 12:52:15 +0000 Message-ID: <87sjhtzts0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.7 RCVD_IN_PSBL RBL: Received via a relay in PSBL [208.118.235.92 listed in psbl.surriel.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manzyuk[at]gmail.com) 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.7 RCVD_IN_PSBL RBL: Received via a relay in PSBL [208.118.235.92 listed in psbl.surriel.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manzyuk[at]gmail.com) 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 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. While I'm happy with C-x C-f for opening dired buffers, also on remote hosts, having `ido-read-directory-name' complete known hosts would make this function more useful for other purposes. For example, I have the following function: (defun named-shell (name directory) "Open a named shell. NAME is the base name of the shell buffer, and DIRECTORY is the directory to open the shell in." (interactive "MName: \nDDirectory: ") (switch-to-buffer (concat "*" name "*")) (cd directory) (shell (current-buffer))) I introduced it primarily to be able to quickly open inferior remote shells. However, when I'm queried for the directory to open the shell in, I still have to type in the host name in full. In GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-02-28 on pandora Windowing system distributor `The X.Org Foundation', version 11.0.10707000 Configured using: `configure '--prefix=/home/manzyuk'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_IE.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: eldoc-mode: t diff-auto-refine-mode: t paredit-mode: t ido-everywhere: t shell-dirtrack-mode: t savehist-mode: t icomplete-mode: t global-auto-revert-mode: t show-paren-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p r o t o r t SPC e m a c s SPC b u g Recent messages: Loading /home/manzyuk/emacs-preamble/init.el (source)... Loading /home/manzyuk/.emacs.d/elpa/haskell-mode-2.8.0/haskell-site-file.el (source)...done Loading /home/manzyuk/quicklisp/slime-helper.el (source)...done Loading /home/manzyuk/emacs-preamble/init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort flyspell ispell mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader eldoc preamble-scheme preamble-ruby inf-ruby ruby-mode compile preamble-org org-install preamble-magit preamble-diff magit-bisect magit-key-mode magit diff-mode log-edit easy-mmode pcvs-util add-log preamble-lisp info-look slime-autoloads preamble-haskell ghci-completion preamble-google-translate google-translate json url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mailcap preamble-emacs-lisp preamble-paredit paredit preamble-auctex reftex reftex-vars preamble-package finder-inf auctex-autoloads tex-site info easymenu ghci-completion-autoloads google-translate-autoloads haskell-mode-autoloads inf-ruby-autoloads magit-autoloads paredit-autoloads package tabulated-list preamble-text preamble-shell preamble-prog preamble-makefile preamble-mail smtpmail sendmail rfc2047 rfc2045 ietf-drums mail-utils preamble-ido ido preamble-ibuffer preamble-hippie-expand preamble-ediff preamble-dired preamble-comint preamble-ansi-color preamble-windows preamble-tramp tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util mm-util mail-prsvr password-cache shell pcomplete comint ansi-color ring format-spec tramp-loaddefs regexp-opt preamble-server server preamble-mouse preamble-mode-line preamble-minibuffer savehist icomplete preamble-keyboard preamble-initialization preamble-frames preamble-files uniquify advice help-fns advice-preload autorevert preamble-env preamble-editing paren delsel edmacro kmacro preamble-data saveplace preamble-browse-url preamble-bookmarks preamble-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 22 23:03:14 2021 Received: (at 10911) by debbugs.gnu.org; 23 Oct 2021 03:03:14 +0000 Received: from localhost ([127.0.0.1]:34091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me7JR-0001aQ-DW for submit@debbugs.gnu.org; Fri, 22 Oct 2021 23:03:13 -0400 Received: from mail-pg1-f179.google.com ([209.85.215.179]:38817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me7JP-0001Wb-0G for 10911@debbugs.gnu.org; Fri, 22 Oct 2021 23:03:12 -0400 Received: by mail-pg1-f179.google.com with SMTP id e65so5003535pgc.5 for <10911@debbugs.gnu.org>; Fri, 22 Oct 2021 20:03:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=shDJUVIUKVBWmEztkVYWrfsaiV9tyDL8rUyht1z/a2o=; b=GgolgwlDgvoTKUXplyAOG6+VOBNzLL/+PuZifBPq0GjAFfq3GdrbfvxCNnc7g3ksgo 2wLLBjHwR/7tKAc4vi3QbqONvWq6qpLNVQYVjoio6AKsDlP4iGo3JiYHn7KTdcf2uXkl sUW4YyFRWVPmxTkL6l9oGjoFkpgFzMkfRB1O/0rwPkaybTHpDQKyZdkk39bS8lHjWxok nfsscF0xHHKusoaGyfhV4aUOZJHh3yvzCNj+jM5eiWAjSTCEiGQ+xVaKrnFDoXRPhZgY pl3CB/24CirLVLfvaKCK4bZDreSiz4bDKT7ghheQpQ48At2xFuwOQsCt3H2a0Q47ks+l m1wA== X-Gm-Message-State: AOAM5313Bjr0xDe6bawdvzAQapr78oxanVo8Fy9NHgTcRR8EjTpNmhRj v1Zm3YeQKwIrvtSp2qReY/9rQoOzaffDKq+T4TA= X-Google-Smtp-Source: ABdhPJwlcivZahdAas14WhS89hSl/9hc4coViaAjuEJ4MB6sBwbphejlVfflk2Bu82v869Yj5EQOQ2Dn2qMhJ8tp/NQ= X-Received: by 2002:a05:6a00:1950:b0:44d:9402:3396 with SMTP id s16-20020a056a00195000b0044d94023396mr3903140pfk.70.1634958185259; Fri, 22 Oct 2021 20:03:05 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Oct 2021 20:03:04 -0700 From: Stefan Kangas In-Reply-To: <87sjhtzts0.fsf@gmail.com> (Oleksandr Manzyuk's message of "Wed, 29 Feb 2012 12:52:15 +0000") References: <87sjhtzts0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Date: Fri, 22 Oct 2021 20:03:04 -0700 Message-ID: Subject: Re: bug#10911: 24.0.94; `ido-read-directory-name' should offer known hosts for completion To: Oleksandr Manzyuk Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 10911 Cc: Michael Albinus , 10911@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Michael, Could you perhaps take a look at the below bug? It seems to relate to completions when using Tramp. 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. > > While I'm happy with C-x C-f for opening dired buffers, also on remote > hosts, having `ido-read-directory-name' complete known hosts would make > this function more useful for other purposes. For example, I have the > following function: > > (defun named-shell (name directory) > "Open a named shell. NAME is the base name of the shell buffer, > and DIRECTORY is the directory to open the shell in." > (interactive "MName: \nDDirectory: ") > (switch-to-buffer (concat "*" name "*")) > (cd directory) > (shell (current-buffer))) > > I introduced it primarily to be able to quickly open inferior remote > shells. However, when I'm queried for the directory to open the shell > in, I still have to type in the host name in full. > > > In GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) > of 2012-02-28 on pandora > Windowing system distributor `The X.Org Foundation', version 11.0.10707000 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 27 11:27:45 2021 Received: (at 10911) by debbugs.gnu.org; 27 Oct 2021 15:27:45 +0000 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 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 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 From: Michael Albinus To: Stefan Kangas Subject: Re: bug#10911: 24.0.94; `ido-read-directory-name' should offer known hosts for completion References: <87sjhtzts0.fsf@gmail.com> Date: Wed, 27 Oct 2021 17:27:34 +0200 In-Reply-To: (Stefan Kangas's message of "Fri, 22 Oct 2021 20:03:04 -0700") Message-ID: <871r46o5cp.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:PPA45MazJh7qyZBhCFPNr0vcIgYu60gxWx55qg9i5Gw4ByK9a6h 4l3acuu4kvT0h4dCyWaT49w+4WE8YuEx117t57BOsjDZ8nZsKlxj443FgbZKnMSRozuEOkA oIaTpgOALlkwVATUNJEtTkJq5+aDjj8Vlnxm5bG1h25l5BAQ0vOrJfz8SY3uOTykE3AU9bD Kt5pCKGmtfUqrJnmXHQ+Q== X-Spam-Flag: NO 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/OaNKgJTn1gbtkg66DoqKZbFF8WCBE2TaQSw LSN3Ph25adMpACCosLztYVAT6NzWM3+1i2ybad0nRmLG8y42rHudl+pciPKcMahLblp4PsDWI 2CdEsGnpUcrPtsConaPkMOmx0L7dxR7dvJMRheGQvKEPIHfe6mibPDE93EcAE2xcUU24y3bxT OzoAW15ymq1dpfnhDaxEONHASqOEb8/cGzeiB6P49ieiUu6sLt+XEGeUxYUsTGVGw5E4WmOJU vqpC33Xu4SdPtqh0YWm8xxUdZymUiUIqZytsMFrMdwSWTlmCH63mR6sQHvrlGS3vW6A4aNcqv p5UkWqJvB4waZw= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 10911 Cc: Oleksandr Manzyuk , 10911@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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.