From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [david.reitter@gmail.com: file-remote-p malfunctions at site-start (file-name-handler-alist init)] Date: Mon, 26 Mar 2007 11:21:25 -0400 Message-ID: References: <87bqigk47a.fsf@stupidchicken.com> <87wt14ay4k.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174922613 21257 80.91.229.12 (26 Mar 2007 15:23:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 15:23:33 +0000 (UTC) Cc: Chong Yidong , rms@gnu.org, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 17:23:26 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVr2Z-0004kg-Bt for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 17:23:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVr4o-0007E0-Q0 for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 10:25:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVr2z-00056b-Nf for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:23:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVr2x-00053A-VL for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:23:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVr2x-00052J-MA for emacs-devel@gnu.org; Mon, 26 Mar 2007 10:23:47 -0500 Original-Received: from tomts13.bellnexxia.net ([209.226.175.34] helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVr0g-0003iT-JI; Mon, 26 Mar 2007 11:21:26 -0400 Original-Received: from pastel.home ([70.55.83.113]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070326152125.BUHJ1593.tomts13-srv.bellnexxia.net@pastel.home>; Mon, 26 Mar 2007 11:21:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 527927F6C; Mon, 26 Mar 2007 11:21:25 -0400 (EDT) In-Reply-To: (Michael Albinus's message of "Mon\, 26 Mar 2007 16\:44\:16 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:68617 Archived-At: > Note that removing tramp-register-file-name-handlers from > after-init-hook is not necessary, the registration is re-entrant. ^^^^^^^^^^ idempotent > OTOH, the OP gave as practical example recentf-mode problems with > remote files (handled in site-init). It would require changes in > recentf at least. It looks like we can't do much about it at this stage. We should probably leave it as is for Emacs-22 and improve it afterwards. How to improve it should probably look like: 1 - register Tramp at dump time. 2 - make sure that registering does not cause Tramp to be loaded. 3 - when completion is requested, Tramp is not loaded, and the config says that completion should obey Tramp (e.g. because partial-completion-mode is ON), then load Tramp. -- Stefan