From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#7308: [patch] locate under windoze Date: Sun, 31 Oct 2010 10:48:20 +0100 Organization: ThierryVolpiatto Message-ID: <87hbg2snff.fsf@tux.homenetwork> References: <87hbg3piit.fsf@pusto.de> <83mxpv5qde.fsf@gnu.org> <87eib6d7qi.fsf@pusto.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1288520019 13382 80.91.229.12 (31 Oct 2010 10:13:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Oct 2010 10:13:39 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 31 11:13:35 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 1PCUus-0004kA-2O for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Oct 2010 11:13:34 +0100 Original-Received: from localhost ([127.0.0.1]:40284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCUur-0008Gr-0o for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Oct 2010 06:13:33 -0400 Original-Received: from [140.186.70.92] (port=42178 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCUue-0008Gd-J5 for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 06:13:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCUuZ-0003i5-0w for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 06:13:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCUuY-0003i1-UP for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 06:13:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PCUUD-00077V-SV; Sun, 31 Oct 2010 05:46:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87hbg3piit.fsf@pusto.de> Resent-From: Thierry Volpiatto 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:46:01 +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 submit@debbugs.gnu.org id=B.128851834527361 (code B ref -1); Sun, 31 Oct 2010 09:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2010 09:45:45 +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 1PCUTw-00077G-VI for submit@debbugs.gnu.org; Sun, 31 Oct 2010 05:45:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCUTu-00077B-GF for submit@debbugs.gnu.org; Sun, 31 Oct 2010 05:45:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCUY2-0000RI-Cb for submit@debbugs.gnu.org; Sun, 31 Oct 2010 05:49:59 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:59518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCUY2-0000RE-AA for submit@debbugs.gnu.org; Sun, 31 Oct 2010 05:49:58 -0400 Original-Received: from [140.186.70.92] (port=53061 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCUY1-0005PY-5f for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 05:49:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCUXz-0000Ql-Ty for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 05:49:57 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:50409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCUXz-0000Q9-J4 for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 05:49:55 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PCUXw-0003dF-Ny for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 10:49:52 +0100 Original-Received: from 67.211.85-79.rev.gaoland.net ([79.85.211.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 Oct 2010 10:49:52 +0100 Original-Received: from thierry.volpiatto by 67.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 Oct 2010 10:49:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 57 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 67.211.85-79.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) Cancel-Lock: sha1:wE1Cvw1uauZ4BRmOxx79uVgC09o= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 31 Oct 2010 05:46:01 -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:41298 Archived-At: Eduard Wiebe writes: > 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. So if you use this, you should try anything-locate that work fine with everything.(no setting needed) >> 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. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997