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: Mon, 24 Apr 2006 21:43:08 +0200 Message-ID: <87u08iyd2r.fsf@gmx.de> References: <87r73n5o5x.fsf@pacem.orebokech.com> <87iroz5g0z.fsf@pacem.orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1145907825 23915 80.91.229.2 (24 Apr 2006 19:43:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Apr 2006 19:43:45 +0000 (UTC) Cc: Romain Francoise , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 24 21:43:42 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 1FY6xy-0004dK-9S for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2006 21:43:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FY6xx-0004K1-OH for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2006 15:43:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FY6xl-0004H1-7u for emacs-devel@gnu.org; Mon, 24 Apr 2006 15:43:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FY6xj-0004FG-By for emacs-devel@gnu.org; Mon, 24 Apr 2006 15:43:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FY6xj-0004FD-8M for emacs-devel@gnu.org; Mon, 24 Apr 2006 15:43:11 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FY701-0007G9-Ie for emacs-devel@gnu.org; Mon, 24 Apr 2006 15:45:33 -0400 Original-Received: (qmail invoked by alias); 24 Apr 2006 19:43:09 -0000 Original-Received: from p54BD8744.dip0.t-ipconnect.de (EHLO localhost.local) [84.189.135.68] by mail.gmx.net (mp027) with SMTP; 24 Apr 2006 21:43:09 +0200 X-Authenticated: #3708877 Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Mon, 24 Apr 2006 09:33:43 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) 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:53351 Archived-At: Stefan Monnier writes: >>> In that case, tramp.el and regexp-opt should probably be preloaded, >>> rather than be loaded every time via `emacs-startup-hook'. >> ... or revert the change to the previous behaviour: method/ username/ >> hostname completion are active only after loading the first remote >> file. I'm really undecided what's better. > > Or do as ange-ftp does: only load the completion code when the user hits TAB > at something like "/". After all, it's rather uncommon to do that (at least > for me) unless I use Tramp. That's what I've tried first. But this fails dumping with temacs (see corresponding thread some days ago). The reason that I fail with this approach (and ange-ftp succeeded) is that `tramp-completion-file-name-handler´ is defined in tramp.el, but `ange-ftp-completion-hook-function´ is defined in files.el. That's why temacs tries to load tramp.el ... No, I don't request that `tramp-completion-file-name-handler´ must be moved to files.el or suchalike. I could live with the behaviour that hostname completion is active after loading the first remote file only. That's the behaviour we've got for years, and nobody did complain. > Stefan Best regards, Michael.