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: testing for a remote file to include file on a Windows mappeddrive Date: Sat, 26 Jan 2008 12:29:56 +0100 Message-ID: <871w844yff.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201346771 1534 80.91.229.12 (26 Jan 2008 11:26:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2008 11:26:11 +0000 (UTC) Cc: Jason Rumney , Drew Adams , Emacs-Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 26 12:26:30 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 1JIjB7-0001d1-Uq for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 12:26:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIjAh-0006Hh-08 for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 06:26:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIjAc-0006Gj-QX for emacs-devel@gnu.org; Sat, 26 Jan 2008 06:25:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIjAY-0006DD-Lr for emacs-devel@gnu.org; Sat, 26 Jan 2008 06:25:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIjAY-0006D2-ER for emacs-devel@gnu.org; Sat, 26 Jan 2008 06:25:54 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JIjAX-0001zS-6a for emacs-devel@gnu.org; Sat, 26 Jan 2008 06:25:54 -0500 Original-Received: (qmail invoked by alias); 26 Jan 2008 11:25:50 -0000 Original-Received: from p57A23F24.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.63.36] by mail.gmx.net (mp039) with SMTP; 26 Jan 2008 12:25:50 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+eXn54NS6eQlBR1Heh50fN8MUjWACIpgAD6GrvhW JZ9vaQnGhlyfCZ In-Reply-To: (Stefan Monnier's message of "Fri, 25 Jan 2008 21:56:00 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:87565 Archived-At: Stefan Monnier writes: > (let ((file-name-handlers-alist nil)) (file-readable-p )). (and (not (file-remote-p file)) (file-readable-p file)) There could be file name handlers, which have an own implementation of file-readable-p for local files. > I think file-remote-p should really give a kind of performance and > reliability info: is the file available from local (i.e. fast and > reliable) storage, or is it only available via a network access which > may be slow and may fail. file-remote-p returns information about the *file name*, and not necessarily about the file: "Can the file name be used literally on the local host?" I believe this meaning shall be kept, for example, it is needed to determine whether a file name must be trimmed when used as argument of process-file and alike. The new function you are looking for is file-mounted-p or so. > Stefan Best regards, Michael.