From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Emacs unconditionally loads tramp.el Date: Sat, 29 Apr 2006 20:30:56 +0200 Message-ID: <87slnwjktb.fsf@gmx.de> 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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146335490 27127 80.91.229.2 (29 Apr 2006 18:31:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Apr 2006 18:31:30 +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 20:31:29 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 1FZuDx-0006Xq-F6 for ged-emacs-devel@m.gmane.org; Sat, 29 Apr 2006 20:31:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZuDw-00088x-Sa for ged-emacs-devel@m.gmane.org; Sat, 29 Apr 2006 14:31:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FZuDX-00083R-Rd for emacs-devel@gnu.org; Sat, 29 Apr 2006 14:30:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FZuDX-00082s-2C for emacs-devel@gnu.org; Sat, 29 Apr 2006 14:30:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZuDW-00082o-VS for emacs-devel@gnu.org; Sat, 29 Apr 2006 14:30:54 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FZuGw-0000k3-HD for emacs-devel@gnu.org; Sat, 29 Apr 2006 14:34:26 -0400 Original-Received: (qmail invoked by alias); 29 Apr 2006 18:30:53 -0000 Original-Received: from p54BD9FA9.dip0.t-ipconnect.de (EHLO localhost.local) [84.189.159.169] by mail.gmx.net (mp030) with SMTP; 29 Apr 2006 20:30:53 +0200 X-Authenticated: #3708877 Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Sat, 29 Apr 2006 19:55:38 +0300") User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 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:53608 Archived-At: Eli Zaretskii writes: >> 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? Might be possible. But still enough code to extract, because "/ssh" can mean either method, either user name, either host name. And there are different expansion strategies for all these cases, which must be tried one after the other. What might make life more complex finding the "least code to be extracted" is the XEmacs case. Another syntax is used there. Not relevant for this mailing list, I know, but I'ld like to keep the code together. I will think about your proposal. Best regards, Michael.