From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: testing for a remote file to include file on a Windows mapped drive Date: Sat, 26 Jan 2008 19:26:34 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1201368448 29275 80.91.229.12 (26 Jan 2008 17:27:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2008 17:27:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 26 18:27:47 2008 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 1JIood-00028I-64 for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 18:27:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIooC-0007Yz-Lz for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 12:27:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIont-0007LG-Jy for emacs-devel@gnu.org; Sat, 26 Jan 2008 12:26:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIons-0007Jv-GR for emacs-devel@gnu.org; Sat, 26 Jan 2008 12:26:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIons-0007Jj-C7 for emacs-devel@gnu.org; Sat, 26 Jan 2008 12:26:52 -0500 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIons-0004Kd-0P for emacs-devel@gnu.org; Sat, 26 Jan 2008 12:26:52 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-218-76.inter.net.il [83.130.218.76]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id KAP08986 (AUTH halo1); Sat, 26 Jan 2008 19:26:11 +0200 (IST) In-reply-to: X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:87588 Archived-At: > From: "Drew Adams" > Cc: > Date: Sat, 26 Jan 2008 08:55:48 -0800 > > > These all make sense only in the context of the features that define > > them. In general, Emacs does not consider files on a mounted volume > > to be remote. The notion of remote files is in conjunction with Emacs > > features that access files in ways that are not the normal filesystem > > APIs. > > > > It sounds like you want something entirely different > > As I said, I want to know if a file name is likely to represent a remote > file (in the Emacs sense you cited) or a file on a mapped network drive. > > The reason is to avoid the time needed to access the remote machine. What kind of access is that, and how much time does it take, that you want to avoid it? Do you have any numbers, even approximate ones, that compare access to local vs remote files on mounted volumes? > That's the same reason that most of the above were defined, but they > don't handle the network-drive case. Accessing a remote file via the normal filesystem API (which is what happens with remote drives and NFS-mounted volumes) is several orders of magnitude faster than Tramp or ange-ftp. So I find it hard to believe that the same primitive would fulfill both of these needs.