From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Manzyuk Newsgroups: gmane.emacs.bugs Subject: bug#10911: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330520090 21373 80.91.229.3 (29 Feb 2012 12:54:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Feb 2012 12:54:50 +0000 (UTC) To: 10911@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 29 13:54:49 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S2j3Q-00058u-Qc for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Feb 2012 13:54:49 +0100 Original-Received: from localhost ([::1]:57211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2j3Q-0001DU-3I for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Feb 2012 07:54:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2j2z-0001DA-LA for bug-gnu-emacs@gnu.org; Wed, 29 Feb 2012 07:54:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2j2s-0008FY-Tj for bug-gnu-emacs@gnu.org; Wed, 29 Feb 2012 07:54:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2j2s-0008FT-Ke for bug-gnu-emacs@gnu.org; Wed, 29 Feb 2012 07:54:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S2j2g-0006hr-Dn for bug-gnu-emacs@gnu.org; Wed, 29 Feb 2012 07:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Oleksandr Manzyuk Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Feb 2012 12:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10911 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133052001225739 (code B ref -1); Wed, 29 Feb 2012 12:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Feb 2012 12:53:32 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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= Original-Received: by 10.180.100.33 with SMTP id ev1mr590951wib.3.1330519941349; Wed, 29 Feb 2012 04:52:21 -0800 (PST) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57396 Archived-At: 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)