From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong 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 00:40:25 -0400 Message-ID: <87bqigk47a.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174884073 18664 80.91.229.12 (26 Mar 2007 04:41:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 04:41:13 +0000 (UTC) Cc: Michael Albinus , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 06:41:07 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 1HVh10-0007pi-LR for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 06:41:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVh3B-0005Fd-Uh for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2007 23:43:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVh39-0005FK-97 for emacs-devel@gnu.org; Mon, 26 Mar 2007 00:43:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVh38-0005F9-Kw for emacs-devel@gnu.org; Sun, 25 Mar 2007 23:43:18 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVh0t-0005Fs-BC; Mon, 26 Mar 2007 00:41:00 -0400 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l2Q4elSV026123; Sun, 25 Mar 2007 23:40:47 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l2Q4ecNR016790; Mon, 26 Mar 2007 00:40:38 -0400 (EDT) Original-Received: from localhost (SYDNEYPACIFIC-THREE-NINETY-FIVE.MIT.EDU [18.95.6.140]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l2Q4eVQ3023803; Mon, 26 Mar 2007 00:40:33 -0400 (EDT) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HVh0L-0000rs-00; Mon, 26 Mar 2007 00:40:25 -0400 In-Reply-To: (Richard Stallman's message of "Sun\, 25 Mar 2007 23\:52\:48 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-detected-kernel: Solaris 9.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:68569 Archived-At: > If a site-start.el file is created with the following contents: > > (print file-name-handler-alist) > (print (file-remote-p "/ssh:dreitter@ssh:/home/dreitter/test2")) > > the output of the last expression is nil for me. > It should (correctly) be non-nil. > > The reason for that is that `file-name-handler-alist' does not > contain handlers for tramp file names when the site-start file is > loaded - at a later point, the appropriate handlers are added. This could conceivably be achieved by moving tramp-register-file-name-handlers from after-init-hook to before-init-hook. On the other hand, the risk of making a change to the init sequence at this stage probably outweighs the marginal benefit; I don't think the above is a very common scenario. What do people think?