From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs unconditionally loads tramp.el Date: Sat, 29 Apr 2006 19:55:38 +0300 Message-ID: References: <87r73n5o5x.fsf@pacem.orebokech.com> <87iroz5g0z.fsf@pacem.orebokech.com> <87u08iyd2r.fsf@gmx.de> <87hd4ewcj0.fsf@gmx.de> <87odyltqof.fsf@gmx.de> <87k698l5ww.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1146329763 10866 80.91.229.2 (29 Apr 2006 16:56:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Apr 2006 16:56:03 +0000 (UTC) Cc: romain@orebokech.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 29 18:56:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FZsjg-0006Oa-PK for ged-emacs-devel@m.gmane.org; Sat, 29 Apr 2006 18:56:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZsjg-0007Pf-Bp for ged-emacs-devel@m.gmane.org; Sat, 29 Apr 2006 12:56:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FZsjN-0007N4-Kk for emacs-devel@gnu.org; Sat, 29 Apr 2006 12:55:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FZsjM-0007MU-Kl for emacs-devel@gnu.org; Sat, 29 Apr 2006 12:55:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZsjM-0007MO-EG for emacs-devel@gnu.org; Sat, 29 Apr 2006 12:55:40 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FZsml-0000pi-0a for emacs-devel@gnu.org; Sat, 29 Apr 2006 12:59:11 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-161-154.inter.net.il [84.228.161.154]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DFU94342 (AUTH halo1); Sat, 29 Apr 2006 19:55:37 +0300 (IDT) Original-To: Michael Albinus In-reply-to: <87k698l5ww.fsf@gmx.de> (message from Michael Albinus on Sat, 29 Apr 2006 18:09:51 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53602 Archived-At: > From: Michael Albinus > Cc: romain@orebokech.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Sat, 29 Apr 2006 18:09:51 +0200 > > Eli Zaretskii writes: > > > Can you please point me to the right function in Tramp's sources? I'd > > like to understand why it is so hard to complete on host names. > > Look for "tramp-completion-*". It's not only host names, but also > methods and user names which need to be expanded. And what/how to > expand depends on the method. And there are syntax ambiguities > ("/ssh:" can be a method or a host name). And in the ftp case it must > be given to ange-ftp, IIRC. I didn't yet read the sources, so I might talk nonsense, but couldn't we have just host-name expansion outside Tramp, and if the expanded host name is accepted (e.g., if the user types `:'), load Tramp only _then_? Similarly with methods like /ssh: etc. Would that work?