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: testing for a remote file to include file on a Windows mapped drive Date: Mon, 21 Apr 2008 10:36:44 -0400 Message-ID: References: <87bq781bf7.fsf@gmx.de> <000a01c8a314$5fff7630$0200a8c0@us.oracle.com> <000d01c8a324$97820590$0200a8c0@us.oracle.com> <000f01c8a334$b2a40660$0200a8c0@us.oracle.com> <000101c8a37f$eeb543d0$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208788740 6887 80.91.229.12 (21 Apr 2008 14:39:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2008 14:39:00 +0000 (UTC) Cc: Andreas Schwab , 'Jason Rumney' , Drew Adams , 'Emacs-Devel' To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 21 16:39:25 2008 connect(): Connection refused 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 1Jnx9n-0001Kp-LF for ged-emacs-devel@m.gmane.org; Mon, 21 Apr 2008 16:38:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jnx92-0005xc-LP for ged-emacs-devel@m.gmane.org; Mon, 21 Apr 2008 10:37:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jnx8z-0005xX-HZ for emacs-devel@gnu.org; Mon, 21 Apr 2008 10:37:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jnx8s-0005wi-S2 for emacs-devel@gnu.org; Mon, 21 Apr 2008 10:37:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jnx8s-0005we-OB for emacs-devel@gnu.org; Mon, 21 Apr 2008 10:37:14 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jnx8W-0007cI-9T; Mon, 21 Apr 2008 10:36:53 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAFAGtDDEhMCpdU/2dsb2JhbACBUahv X-IronPort-AV: E=Sophos;i="4.25,690,1199682000"; d="scan'208";a="18819345" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 21 Apr 2008 10:36:45 -0400 Original-Received: from pastel.home ([76.10.151.84]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id BSF31445; Mon, 21 Apr 2008 10:36:45 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 014FA8066; Mon, 21 Apr 2008 10:36:44 -0400 (EDT) In-Reply-To: (Michael Albinus's message of "Mon, 21 Apr 2008 11:11:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:95633 Archived-At: > I would prefer a function which returns "fast" or "slow". We have that. It's called `file-remote-p': A file is considered "remote" if accessing it is likely to be slower or less reliable than accessing local files. Admittedly, the current implementation is not always good enough. > One could consider additional regexps, which tell "when the mount > point matches this regexp, return `t' for file-mounted-p", and the > contrary case with the other regexp. But this would make the handling > more complex. That's what ffap-rfs-regexp tries to do. And yes, I think it should be added to file-remote-p. Stefan