emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testing for a remote file to include file on a Windows mapped drive


From: Stefan Monnier
Subject: Re: testing for a remote file to include file on a Windows mapped drive
Date: Mon, 05 May 2008 14:31:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> `file-remote-p' already tests using some regexps - why not add the ffap
>> regexp(s)? You already agreed to that, in fact:
>> 
>> >> That's what ffap-rfs-regexp tries to do.  And yes, I think it 
>> >> should be added to file-remote-p.

> Please don't forget that `file-remote-p' is based on file name
> handlers. If you want to add `ffap-rfs-regexp', there shall be a
> corresponding implementation of such a handler.

I don't think so.  The way I look at it, file-remote-p is a normal file
operation: i.e. it first dispatches to file-name-handlers if any, and if
none it handles the case of files accessed directly via the
OS's filesystem.  Currently, this part of the implementation just always
returns nil, but it should be improved with a file-remote-regexp so
users can tell Emacs that /afs, /net, /sshfs are "OS-local filesystems
but with performance and reliability-semantics of remote files".


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]