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:33:57 -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 1208788516 6004 80.91.229.12 (21 Apr 2008 14:35:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2008 14:35:16 +0000 (UTC) Cc: 'Emacs-Devel' , Drew Adams , 'Jason Rumney' To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 21 16:35:50 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 1Jnx6z-00004w-Jv for ged-emacs-devel@m.gmane.org; Mon, 21 Apr 2008 16:35:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jnx6D-0005Pe-SZ for ged-emacs-devel@m.gmane.org; Mon, 21 Apr 2008 10:34:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jnx6A-0005PZ-Ug for emacs-devel@gnu.org; Mon, 21 Apr 2008 10:34:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jnx63-0005Ou-Hq for emacs-devel@gnu.org; Mon, 21 Apr 2008 10:34:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jnx63-0005Or-Cs for emacs-devel@gnu.org; Mon, 21 Apr 2008 10:34:19 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182] helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jnx5p-000718-3q; Mon, 21 Apr 2008 10:34:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAFAD5CDEhMCpdU/2dsb2JhbACBUahv X-IronPort-AV: E=Sophos;i="4.25,690,1199682000"; d="scan'208";a="18819203" 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:33:57 -0400 Original-Received: from pastel.home ([76.10.151.84]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id BSC56557; Mon, 21 Apr 2008 10:33:57 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3DC308066; Mon, 21 Apr 2008 10:33:57 -0400 (EDT) In-Reply-To: (Michael Albinus's message of "Mon, 21 Apr 2008 09:46:48 +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:95632 Archived-At: > * file-remote-p returns t, if a file is not directly accessible by > underlying operating system's means. Such files always need some > special file name handler functions in Emacs for proper > handling. Such (absolute) file names cannot be used literally > outside functions, which support file name handlers. Please read the docstring of file-remote-p, it has "nothing" to do with the above. What you describe can misclassify both ways: remote access can be provided by the OS (using NFS/AFS/SSHFS/...), and local access can be provided by file-name-handlers (e.g. file:// URLs). What you're describing is the unhandled-file-name function (which currently doesn't exist: the closest is unhandled-file-name-directory). BTW, along the same lines, we may want to provide an unhandled-file-contents function, so as to detected files accessed via auto-compression-mode or auto-encryption-mode. Stefan