From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Slow access to files using UNC path Date: 18 Jul 2004 04:31:54 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <1089978045.7826.200489429@webmail.messagingengine.com> <1090070598.482.200548261@webmail.messagingengine.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090117960 6269 80.91.224.253 (18 Jul 2004 02:32:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2004 02:32:40 +0000 (UTC) Cc: Peter Lee , Dhruva Krishnamurthy , Emacs Devel Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 18 04:32:28 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bm1TX-00055F-00 for ; Sun, 18 Jul 2004 04:32:27 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bm1TX-0002Ya-00 for ; Sun, 18 Jul 2004 04:32:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bm1W9-00048x-6I for emacs-devel@quimby.gnus.org; Sat, 17 Jul 2004 22:35:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bm1W4-00048q-33 for emacs-devel@gnu.org; Sat, 17 Jul 2004 22:35:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bm1W3-00048d-4y for emacs-devel@gnu.org; Sat, 17 Jul 2004 22:35:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bm1W2-00048a-Uh for emacs-devel@gnu.org; Sat, 17 Jul 2004 22:35:03 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bm1T5-0005RJ-1n for emacs-devel@gnu.org; Sat, 17 Jul 2004 22:31:59 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Bm1T3-0006li-OY; Sat, 17 Jul 2004 22:31:58 -0400 Original-To: Andreas Schwab In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 19 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: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25803 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25803 Andreas Schwab writes: > "Dhruva Krishnamurthy" 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. 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 "^\(//\|\\\\\\\\\)") -- David Kastrup, Kriemhildstr. 15, 44793 Bochum