emacs-devel
[Top][All Lists]
Advanced

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

Re: Slow access to files using UNC path


From: Dhruva Krishnamurthy
Subject: Re: Slow access to files using UNC path
Date: Wed, 1 Sep 2004 18:45:36 +0530

On Wed, 01 Sep 2004 14:13:46 +0200, Andreas Schwab <address@hidden> wrote:
> can be accessed by the normal file operations, so it is not a remote
> location according to file-remote-p.

I meant the function name is somewhat similar to what we want but not
the behavior. IMO, ideally in Emacs, something-p (like symbolp or
functionp..) is used to test the argument, along the same line, I
thought file-remote-p or dir-remote-p would be intuitive to test
whether file/dir is a remote or not.
 A suggestion, to avoid confusion by modifying file-remote-p would be
to use file-local-p

(defvar remote-fs-path-re "\\`\\([\\/][\\/]\\|/net/\\|/afs/\\)") 
(defun file-local-p (file)
 "Returns t if local file or nil for remote file"
 (not (string-match remote-fs-path-re file)))

and use (not (file-local-p dir)) in the earlier patch...

with best regards,
dhruva
-- 
________________________________________
Dhruva Krishnamurthy
Proud FSF member: #1935
http://schemer.fateback.com/




reply via email to

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