From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sthfrnth Newsgroups: gmane.emacs.windows,gmane.emacs.devel Subject: Re: find-dired does not work on emacs24 + win + mingw Date: Fri, 27 Jan 2012 21:04:53 +0800 Message-ID: References: <83r4ylzki0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f234bfb8e728204b78224ff X-Trace: dough.gmane.org 1327669510 22370 80.91.229.12 (27 Jan 2012 13:05:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2012 13:05:10 +0000 (UTC) Cc: help-emacs-windows@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: help-emacs-windows-bounces+gnu-help-emacs-windows=m.gmane.org@gnu.org Fri Jan 27 14:05:06 2012 Return-path: Envelope-to: gnu-help-emacs-windows@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 1RqlUG-00075h-7y for gnu-help-emacs-windows@m.gmane.org; Fri, 27 Jan 2012 14:05:04 +0100 Original-Received: from localhost ([::1]:36519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqlUF-0007wP-F3 for gnu-help-emacs-windows@m.gmane.org; Fri, 27 Jan 2012 08:05:03 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqlU8-0007wK-TO for help-emacs-windows@gnu.org; Fri, 27 Jan 2012 08:04:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqlU7-0000j0-C9 for help-emacs-windows@gnu.org; Fri, 27 Jan 2012 08:04:56 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:38251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqlU7-0000is-3g; Fri, 27 Jan 2012 08:04:55 -0500 Original-Received: by wera13 with SMTP id a13so1503976wer.0 for ; Fri, 27 Jan 2012 05:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/RwiXyfpxGxBG6HpxyIcf4gvniWW/g9M93IGKNGRWsw=; b=XOzwu9gITF8mvrZ8VwlayNBEr53c4aDbEYENVz9dwyHgRfGHQAJT+cSHMCxtS8C1dh DKi+npeNQwJLikdbVKninURLkWSgk1agttOImPn/z/ERvl/a+KGqddioMcqqdTexlyMf JbWzrHP4xcTU96DmcxZt7QngxfDbgLlgcPDq8= Original-Received: by 10.180.106.202 with SMTP id gw10mr14411709wib.3.1327669493789; Fri, 27 Jan 2012 05:04:53 -0800 (PST) Original-Received: by 10.223.93.131 with HTTP; Fri, 27 Jan 2012 05:04:53 -0800 (PST) In-Reply-To: <83r4ylzki0.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: help-emacs-windows@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion forum for users of the GNU Emacs port to Windows List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-emacs-windows-bounces+gnu-help-emacs-windows=m.gmane.org@gnu.org Original-Sender: help-emacs-windows-bounces+gnu-help-emacs-windows=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.windows:5234 gmane.emacs.devel:147975 Archived-At: --e89a8f234bfb8e728204b78224ff Content-Type: text/plain; charset=ISO-8859-1 Hi Eli, You are right. It is because the invalid date format in the output of my find with -ls option. My find comes from MinGW msys 1.0. I tried the port you suggested. It works, but not quite convenient. It can not run in this way: "find . -name *foo*". The find port in this package works better for me: http://unxutils.sourceforge.net/ Thank you very much. On Fri, Jan 27, 2012 at 3:12 PM, Eli Zaretskii wrote: > > 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/< > 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 > --e89a8f234bfb8e728204b78224ff Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Eli,

You are right. It is because the invalid date fo= rmat in the output of my find with -ls option. My find comes from MinGW msy= s 1.0.

I tried the port you=A0suggested. It works,= but not quite=A0convenient. It can not run in this way: "find . -name= *foo*".

The find port in this package works better for me:=A0http://unxutils.sourceforge.net/=

Thank you very much.


On Fri, Jan 27, 2012 at 3:12 PM, = Eli Zaretskii <eliz@gn= u.org> wrote:
> Date: Fri, 27 Jan 2012 13:26:10 +0800
> From: sthfrnth <sthfrnth@gmai= l.com>
>
> My env. is Window 7 64bit + MinGW.
> I find that find-dired of emacs24 does not work on this env. (I got em= acs24
> from http://alpha.gnu.org/gnu/**emacs/windows/<http://alpha.gnu.o= rg/gnu/emacs/windows/>
> )

And where did you get the port of GNU Find?

> The output of find-dired is like below:
>
> * =A0c:/emacs/lisp/:*
> * =A0find . "(" -name "*find-dired*" ")"= -ls*
> * =A0227084 =A0 =A07 -rw-r--r-- =A0 1 sthfrnth Administrators =A0 =A01= 2792 Jan =A019:38 find-dired.el*
> * =A0956351 =A0 =A06 -rw-r--r-- =A0 1 sthfrnth Administrators =A0 =A01= 1411 Jan =A005:35 find-dired.el.ok*
> * =A0227085 =A0 =A05 -rw-r--r-- =A0 1 sthfrnth Administrators =A0 =A0 = 8669 Jan =A019:38 find-dired.elc*
> * =A03731074 =A0 =A04 -rw-r--r-- =A0 1 sthfrnth Administrators =A0 =A0= 7530 Jan =A013:35 find-dired.elc.ok*
> * =A0*
> * =A0find finished at Fri Jan 27 13:09:23*

This output is wrong: it doesn't show the date after the month, only the hour. =A0"Jan =A013: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! = =A0Check
> directory-listing-before-filename-regexp".

With my find.exe, this error doesn't happen. =A0I'm quite sur= e 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:
>
> * =A0c:/emacs/lisp/:*
> * =A0find . "(" -name "*find-dired*" ")"= -exec ls -ld "{}" ";"*
> * =A0-rw-r--r-- =A0 1 sthfrnth Administrators =A0 =A011411 Jan 11 05:3= 5 find-dired.el*

As you see, Emacs 23 instructed find.exe to invoke ls, instead of
using the built-in -ls option. =A0Your ls.exe produces valid date
format, so the command works.

> I think the output of "*find . "(" -name "*find-di= red*" ")" -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. =A0E.g., try t= his port:

=A0http://sourceforge.net/projec= ts/ezwinports/files/findutils-4.2.30-w32-bin.zip/download

--e89a8f234bfb8e728204b78224ff--