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: [david.reitter@gmail.com: file-remote-p malfunctions at site-start (file-name-handler-alist init)] Date: Mon, 26 Mar 2007 16:44:16 +0200 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 1174920294 8231 80.91.229.12 (26 Mar 2007 14:44:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 14:44:54 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , rms@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 16:44:46 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 1HVqR7-0004Am-PH for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 16:44:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVqTN-0003p4-33 for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 09:47:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVqT7-0003RT-5D for emacs-devel@gnu.org; Mon, 26 Mar 2007 10:46:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVqT5-0003OD-8g for emacs-devel@gnu.org; Mon, 26 Mar 2007 10:46:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVqT5-0003NX-1G for emacs-devel@gnu.org; Mon, 26 Mar 2007 09:46:43 -0500 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVqQn-0005hm-D6; Mon, 26 Mar 2007 10:44:21 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay1.alcatel.de (8.13.4/8.13.4/ICT) with ESMTP id l2QEiGbe029121; Mon, 26 Mar 2007 16:44:17 +0200 In-Reply-To: <87wt14ay4k.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 26 Mar 2007 10:16:27 -0400") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.51 on 149.204.45.72 X-detected-kernel: Linux 2.4-2.6 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:68607 Archived-At: Chong Yidong writes: >> It was there initially. Then it was changed, because people didn't >> want to get Tramp enabled mandatory for file name completion. Now the >> registration is done only in case `partial-completion-mode' is >> active, which must be checked. > > In that case, I suggest documenting this in PROBLEMS: if you want to > use Tramp in your site-start file, run tramp-register-file-name-handlers > first (and remove it from after-init-hook). I haven't a better idea. Maybe one should argue that it isn't a good idea to access remote files in site-init files. Note that removing tramp-register-file-name-handlers from after-init-hook is not necessary, the registration is re-entrant. 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. Best regards, Michael.