From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.windows Subject: Re: find-dired does not work on emacs24 + win + mingw Date: Fri, 27 Jan 2012 09:12:55 +0200 Message-ID: <83r4ylzki0.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1327648513 7755 80.91.229.12 (27 Jan 2012 07:15:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2012 07:15:13 +0000 (UTC) Cc: help-emacs-windows@gnu.org, emacs-devel@gnu.org To: sthfrnth Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 27 08:15:09 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rqg1c-0007he-VX for ged-emacs-devel@m.gmane.org; Fri, 27 Jan 2012 08:15:09 +0100 Original-Received: from localhost ([::1]:34825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqg1b-0003hI-GN for ged-emacs-devel@m.gmane.org; Fri, 27 Jan 2012 02:15:07 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqg1Y-0003g7-ML for emacs-devel@gnu.org; Fri, 27 Jan 2012 02:15:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqg1X-00071x-8V for emacs-devel@gnu.org; Fri, 27 Jan 2012 02:15:04 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:57212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqg1W-00071o-Sj; Fri, 27 Jan 2012 02:15:03 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LYG001003T77200@a-mtaout20.012.net.il>; Fri, 27 Jan 2012 09:15:01 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.102.195]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYG000KS44YJNK0@a-mtaout20.012.net.il>; Fri, 27 Jan 2012 09:14:59 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147970 gmane.emacs.windows:5233 Archived-At: > Date: Fri, 27 Jan 2012 13:26:10 +0800 > From: sthfrnth > > My env. is Window 7 64bit + MinGW. > I find that find-dired of emacs24 does not work on this env. (I got emacs24 > from http://alpha.gnu.org/gnu/**emacs/windows/ > ) And where did you get the port of GNU Find? > The output of find-dired is like below: > > * c:/emacs/lisp/:* > * find . "(" -name "*find-dired*" ")" -ls* > * 227084 7 -rw-r--r-- 1 sthfrnth Administrators 12792 Jan 19:38 find-dired.el* > * 956351 6 -rw-r--r-- 1 sthfrnth Administrators 11411 Jan 05:35 find-dired.el.ok* > * 227085 5 -rw-r--r-- 1 sthfrnth Administrators 8669 Jan 19:38 find-dired.elc* > * 3731074 4 -rw-r--r-- 1 sthfrnth Administrators 7530 Jan 13:35 find-dired.elc.ok* > * * > * find finished at Fri Jan 27 13:09:23* This output is wrong: it doesn't show the date after the month, only the hour. "Jan 13:35" etc. is not a valid date-time format. With the port of GNU Findutils I have, I don't see that problem. > When enter pressed on file line, it prompted "Unrecognized line! Check > directory-listing-before-filename-regexp". With my find.exe, this error doesn't happen. I'm quite sure you see the error message because of the invalid date format. > I replaced find-dired.el with emacs23's version, it works ok. The output is > like below: > > * c:/emacs/lisp/:* > * find . "(" -name "*find-dired*" ")" -exec ls -ld "{}" ";"* > * -rw-r--r-- 1 sthfrnth Administrators 11411 Jan 11 05:35 find-dired.el* As you see, Emacs 23 instructed find.exe to invoke ls, instead of using the built-in -ls option. Your ls.exe produces valid date format, so the command works. > I think the output of "*find . "(" -name "*find-dired*" ")" -ls*" is not > matching some parsing functions in find-dired.el. > I tried to modify it but did not succeed. > > Can anyone fix this? See above: you need to "fix" your Findutils. E.g., try this port: http://sourceforge.net/projects/ezwinports/files/findutils-4.2.30-w32-bin.zip/download