[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-dired does not work on emacs24 + win + mingw
From: |
Eli Zaretskii |
Subject: |
Re: find-dired does not work on emacs24 + win + mingw |
Date: |
Fri, 27 Jan 2012 09:12:55 +0200 |
> Date: Fri, 27 Jan 2012 13:26:10 +0800
> From: sthfrnth <address@hidden>
>
> 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