From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eduard Wiebe Newsgroups: gmane.emacs.bugs Subject: bug#7308: [patch] locate under windoze Date: Sun, 31 Oct 2010 10:36:21 +0100 Message-ID: <87eib6d7qi.fsf@pusto.de> References: <87hbg3piit.fsf@pusto.de> <83mxpv5qde.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288518234 7260 80.91.229.12 (31 Oct 2010 09:43:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Oct 2010 09:43:54 +0000 (UTC) Cc: 7308@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 31 10:43:49 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCUS5-0001Bo-5X for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Oct 2010 10:43:49 +0100 Original-Received: from localhost ([127.0.0.1]:33800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCUS4-0004cT-LD for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Oct 2010 05:43:48 -0400 Original-Received: from [140.186.70.92] (port=41871 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCURm-0004cE-Tx for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 05:43:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCURW-0007r7-TM for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 05:43:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCURW-0007qx-Rt for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 05:43:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PCUIc-000726-72; Sun, 31 Oct 2010 05:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eduard Wiebe Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2010 09:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 7308-submit@debbugs.gnu.org id=B7308.128851761127027 (code B ref 7308); Sun, 31 Oct 2010 09:34:02 +0000 Original-Received: (at 7308) by debbugs.gnu.org; 31 Oct 2010 09:33:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCUI6-00071s-C4 for submit@debbugs.gnu.org; Sun, 31 Oct 2010 05:33:30 -0400 Original-Received: from wp093.webpack.hosteurope.de ([80.237.132.100]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCUI4-00071l-79 for 7308@debbugs.gnu.org; Sun, 31 Oct 2010 05:33:29 -0400 Original-Received: from g225193250.adsl.alicedsl.de ([92.225.193.250] helo=nirvana); authenticated by wp093.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) id 1PCUMC-0007ut-50; Sun, 31 Oct 2010 10:37:44 +0100 Original-Received: from ew by nirvana with local (Exim 4.69) (envelope-from ) id 1PCUKr-0001Xs-Q8; Sun, 31 Oct 2010 10:36:21 +0100 In-Reply-To: <83mxpv5qde.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 30 Oct 2010 23:21:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-bounce-key: webpack.hosteurope.de;ew@pusto.de;1288517870;13016d36; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 31 Oct 2010 05:34:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41297 Archived-At: Eli Zaretskii writes: >> From: Eduard Wiebe >> Date: Sat, 30 Oct 2010 21:50:18 +0200 >> Cc: >> >> i want to use `locate' under windoze system. Unfortunately locate (in >> interaction with dired) doesn't work proper in such a case. >> The problem is the unquoted backslash in a located file path. >> So i fix this issue by following patch. > > Thanks. > > Please tell what version of `locate' is that, and in which Emacs > version it happened to you. I use emacs-23.2 with command line interface of everything search engine from http://www.voidtools.com (es.exe) as locate command under MS Windows XP. > I understand that the problem happens because your version of `locate' > returns Windows file names with backslashes as directory separators > (as opposed to forward slashes), is that right? Yes, that is correct. The second culprit is `directory-listing-before-filename-regex', which is to restrict and cause fails under Windoze. Under Linux leads the restricted regexp only to incorrect display (the point is always after the first slash character). I tested the simplyfied version of `directory-listing-before-filename-regex' under Windoze with everything (es.exe)m and Linux with GNU locate and it works well. > If so, wouldn't it be better to replace backslashes with forward > slashes before the unquote loop? Hmm. I'm not sure. How about an UNC path ala \\sever\share\path? If emacs correctly resolve an UNC path with forward slashes so i would agree. > If backslashes as directory separators are not the reason, could you > please elaborate about the reason? See above. -- Eduard Wiebe