[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slow access to files using UNC path
From: |
Andreas Schwab |
Subject: |
Re: Slow access to files using UNC path |
Date: |
Sun, 18 Jul 2004 11:49:12 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> Andreas Schwab <address@hidden> writes:
>
>> "Dhruva Krishnamurthy" <address@hidden> writes:
>>
>> > (if (or (string-match "^//" file)
>> > (string-match "^\\\\" file))
>>
>> (if (string-match "^[/\\]" file)
>
> 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.
You're right.
> 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 "^\(//\|\\\\\\\\\)")
Still not enough backslashes:
(string-match "^\\(//\\|\\\\\\\\\\)" file)
Remember that there are two levels of quoting: regexp quoting and string
quoting, each adding it's own batch of backslashes.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: Slow access to files using UNC path, (continued)
- Re: Slow access to files using UNC path, Peter Lee, 2004/07/16
- Re: Slow access to files using UNC path, Dhruva Krishnamurthy, 2004/07/17
- Re: Slow access to files using UNC path, Andreas Schwab, 2004/07/17
- Re: Slow access to files using UNC path, David Kastrup, 2004/07/17
- Re: Slow access to files using UNC path, Eli Zaretskii, 2004/07/18
- Re: Slow access to files using UNC path, Dhruva Krishnamurthy, 2004/07/18
- Re: Slow access to files using UNC path, Andreas Schwab, 2004/07/18
- Re: Slow access to files using UNC path, Eli Zaretskii, 2004/07/18
- Re: Slow access to files using UNC path, Dhruva Krishnamurthy, 2004/07/19
- Re: Slow access to files using UNC path, Eli Zaretskii, 2004/07/19
- Re: Slow access to files using UNC path,
Andreas Schwab <=
- Re: Slow access to files using UNC path, Dhruva Krishnamurthy, 2004/07/18
Re: Slow access to files using UNC path, Dhruva Krishnamurthy, 2004/07/18