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: Eli Zaretskii
Subject: Re: Slow access to files using UNC path
Date: Sun, 18 Jul 2004 07:09:32 +0200

> From: David Kastrup <address@hidden>
> Date: 18 Jul 2004 04:31:54 +0200
> 
> That's not the same.  The first matches either // or \ at the start
> of a filename, the latter matches either / or \ at the start of a
> filename.
> 
> I don't know the context, though: maybe the second actually was what
> was desired.  Or maybe it was // or \\ in which case we'd need
> (string-match "^\(//\|\\\\\\\\\)")

AFAIK, Windows behaves the same no matter if you pass it a forward
slash or a backslash.  But a UNC _must_ start with two of them, so
"^[/\\]" is not good enough.  It should be "^[/\\][/\\]" or something
similar.




reply via email to

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