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:48:12 +0200 Message-ID: <87psj6ycub.fsf@gmx.de> References: <87r73n5o5x.fsf@pacem.orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145908119 25099 80.91.229.2 (24 Apr 2006 19:48:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Apr 2006 19:48:39 +0000 (UTC) Cc: romain@orebokech.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 24 21:48:34 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 1FY72p-0005do-TA for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2006 21:48:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FY72p-0005Yt-H8 for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2006 15:48:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FY72d-0005Xw-IG for emacs-devel@gnu.org; Mon, 24 Apr 2006 15:48:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FY72d-0005Xc-34 for emacs-devel@gnu.org; Mon, 24 Apr 2006 15:48:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FY72c-0005XZ-UQ for emacs-devel@gnu.org; Mon, 24 Apr 2006 15:48:14 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FY74v-0007aG-93 for emacs-devel@gnu.org; Mon, 24 Apr 2006 15:50:37 -0400 Original-Received: (qmail invoked by alias); 24 Apr 2006 19:48:13 -0000 Original-Received: from p54BD8744.dip0.t-ipconnect.de (EHLO localhost.local) [84.189.135.68] by mail.gmx.net (mp029) with SMTP; 24 Apr 2006 21:48:13 +0200 X-Authenticated: #3708877 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 24 Apr 2006 13:52:23 -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:53352 Archived-At: Richard Stallman writes: > That's right. It is due to `tramp-register-file-name-handlers' in > `emacs-startup-hook', which is an autoloaded function. But Tramp would > be loaded anyway when one tries to complete a filename in the > minibuffer, because the intention of my change is to provide > method/username/hostname completion for remote files. "C-x C-f / " > would be sufficient to load Tramp. > > We need to talk about this. I don't want completion to load Tramp > in common cases that don't really involve use of Tramp. I see the point. Maybe it should be customizable somehow, whether the hostname completion regexp is active. OTOH, when ange-ftp was hooked into file-name-handler-alist, it was exactly that behaviour. "C-x C-f / " started hostname completion. See respective (not active) code from ange-ftp: ;;-;;; This regexp recognizes absolute filenames with only one component, ;;-;;; for the sake of hostname completion. ;;-;;;###autoload ;;-(or (assoc "^/[^/:]*\\'" file-name-handler-alist) ;;- (setq file-name-handler-alist ;;- (cons '("^/[^/:]*\\'" . ange-ftp-completion-hook-function) ;;- file-name-handler-alist))) Best regards, Michael.