From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#7583: 23.2; ido loads tramp too eagerly Date: Mon, 17 Oct 2011 08:16:44 +0200 Message-ID: <87ty78rvlf.fsf@gmail.com> References: <8739esu4p6.fsf@gmail.com> <8739eslo7f.fsf@gmx.de> <87y5wkskfd.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318832310 7638 80.91.229.12 (17 Oct 2011 06:18:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2011 06:18:30 +0000 (UTC) To: 7583@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 17 08:18:26 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RFgWn-0003fn-BU for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2011 08:18:25 +0200 Original-Received: from localhost ([::1]:57488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFgWm-0000ZH-Iv for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2011 02:18:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFgWf-0000ZB-Om for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 02:18:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFgWa-0003X6-NQ for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 02:18:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFgWa-0003X0-Lv for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 02:18:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RFgXN-0003YO-S0 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 02:19:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2011 06:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7583 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.131883229413593 (code B ref -1); Mon, 17 Oct 2011 06:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Oct 2011 06:18:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RFgWb-0003XB-TV for submit@debbugs.gnu.org; Mon, 17 Oct 2011 02:18:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RFgWZ-0003Wy-1Z for submit@debbugs.gnu.org; Mon, 17 Oct 2011 02:18:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFgVa-0003MP-Ve for submit@debbugs.gnu.org; Mon, 17 Oct 2011 02:17:16 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:54052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFgVa-0003MJ-U1 for submit@debbugs.gnu.org; Mon, 17 Oct 2011 02:17:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFgVW-0000YU-5V for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 02:17:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFgVQ-0003Km-NL for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 02:17:06 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFgVQ-0003KT-DC for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 02:17:00 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RFgVO-000360-Fi for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 08:16:58 +0200 Original-Received: from 242.77.197.77.rev.sfr.net ([77.197.77.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Oct 2011 08:16:58 +0200 Original-Received: from thierry.volpiatto by 242.77.197.77.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Oct 2011 08:16:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 65 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 242.77.197.77.rev.sfr.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:D8LvsgDM/MbiFVUtqRGB3j14aWc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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.11 Precedence: list Resent-Date: Mon, 17 Oct 2011 02:19:01 -0400 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:52706 Archived-At: Thierry Volpiatto writes: > Michael Albinus writes: > >> Thierry Volpiatto writes: >> >>> The problem, I guess is tramp start immediately when you enter the first >>> ":" due to `tramp-file-name-regexp'. This is a common problem for all >>> incremental UI with tramp. >>> In anything i let bound `tramp-file-name-regexp' to another value that >>> wait you type in the second ":". >>> I don't know for ido but due to it's nature, i guess it's the same.> >>> See `anything-ff-set-pattern' in anything-config.el. >>> http://repo.or.cz/w/anything-config.git >>> >>> (let ((methods (mapcar 'car tramp-methods)) >>> (reg "\\`/\\([^[/:]+\\|[^/]+]\\):.*:") >>> cur-method tramp-name) >>> >>> Where reg replace the tramp regexp. >> >> You disable then method / user name / host name completion. If you want >> so, you shall make it configurable, at least. > Actually yes, this completion is disabled, but why do you have to start > tramp to have such completion? > i.e There is no need to start tramp to make a completion based on the > content of ~/.ssh/config > > Maybe tramp should have other regexp(s) that (try to) complete this without > starting tramp. Not needed i think. example1: 1a)prompt: /t! => complete on all hostname/method/directories starting by t without starting tramp now i choose thievol in list completion, i have now: 1b)prompt: /thievol:! => enter the ":" if thievol is member of hostname completion list and not a directory and start tramp. example2: prompt: /s! => same as in 1a now i choose scpc in list completion, i have now: prompt: /scpc: => same as in 1b and now i complete on only hostname list now i choose thievol in list, i have now: prompt: /scpc:thievol => i do not start tramp, waiting user enter the last ":", when it's done start tramp only now. > Note that this kind of completion lead to bugs in other places in Emacs. > e.g create an ssh hostname in ~/.ssh/config that start by "t", and in > eshell, write /t and to complete to "/tmp"; tramp will start and > fail. I will submit a bug report for this. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997