* find-dired does not work on emacs24 + win + mingw
@ 2012-01-27 5:26 sthfrnth
2012-01-27 7:12 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: sthfrnth @ 2012-01-27 5:26 UTC (permalink / raw)
To: help-emacs-windows, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]
Hi,
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/>
)
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*
When enter pressed on file line, it prompted "Unrecognized line! Check
directory-listing-before-filename-regexp".
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*
* -rw-r--r-- 1 sthfrnth Administrators 12792 Jan 16 19:38
find-dired.el.bak*
* -rw-r--r-- 1 sthfrnth Administrators 7530 Jan 22 13:35
find-dired.elc*
* -rw-r--r-- 1 sthfrnth Administrators 8669 Jan 16 19:38
find-dired.elc.bak*
* *
* find finished at Fri Jan 27 13:17:44*
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?
[-- Attachment #2: Type: text/html, Size: 2370 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: find-dired does not work on emacs24 + win + mingw
2012-01-27 5:26 find-dired does not work on emacs24 + win + mingw sthfrnth
@ 2012-01-27 7:12 ` Eli Zaretskii
2012-01-27 13:04 ` sthfrnth
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2012-01-27 7:12 UTC (permalink / raw)
To: sthfrnth; +Cc: help-emacs-windows, emacs-devel
> Date: Fri, 27 Jan 2012 13:26:10 +0800
> From: sthfrnth <sthfrnth@gmail.com>
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: find-dired does not work on emacs24 + win + mingw
2012-01-27 7:12 ` Eli Zaretskii
@ 2012-01-27 13:04 ` sthfrnth
2012-01-27 15:24 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: sthfrnth @ 2012-01-27 13:04 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-emacs-windows, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 2639 bytes --]
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 <eliz@gnu.org> wrote:
> > Date: Fri, 27 Jan 2012 13:26:10 +0800
> > From: sthfrnth <sthfrnth@gmail.com>
> >
> > 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
>
[-- Attachment #2: Type: text/html, Size: 3884 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: find-dired does not work on emacs24 + win + mingw
2012-01-27 13:04 ` sthfrnth
@ 2012-01-27 15:24 ` Eli Zaretskii
2012-01-28 6:12 ` sthfrnth
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2012-01-27 15:24 UTC (permalink / raw)
To: sthfrnth; +Cc: help-emacs-windows, emacs-devel
> Date: Fri, 27 Jan 2012 21:04:53 +0800
> From: sthfrnth <sthfrnth@gmail.com>
> Cc: help-emacs-windows@gnu.org, emacs-devel@gnu.org
>
> I tried the port you suggested. It works, but not quite convenient. It can
> not run in this way: "find . -name *foo*".
What do you mean "can not run"? You need to quote the *foo* part, but
otherwise it works for me. If you quote it, what do you see?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: find-dired does not work on emacs24 + win + mingw
2012-01-27 15:24 ` Eli Zaretskii
@ 2012-01-28 6:12 ` sthfrnth
0 siblings, 0 replies; 5+ messages in thread
From: sthfrnth @ 2012-01-28 6:12 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-emacs-windows, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]
The "find.exe" in this package
http://sourceforge.net/projects/ezwinports/files/findutils-4.2.30-w32-bin.zip/download
produces:
*
*
*C:\emacs\lisp>find . -name *find**
*find: paths must precede expression*
*Usage: find [-H] [-L] [-P] [path...] [expression]*
*
*
*C:\emacs\lisp>find . -name "*find*"*
*find: paths must precede expression*
*Usage: find [-H] [-L] [-P] [path...] [expression]*
whether or not name quoted.
The "find.exe" in this package
http://unxutils.sourceforge.net/
produces:
C:\emacs\lisp>find . -name *find*
.\cedet\semantic\db-find.el
.\cedet\semantic\db-find.elc
.\cedet\semantic\find.el
.\cedet\semantic\find.elc
.\cedet\srecode\find.el
...
C:\emacs\lisp>find . -name "*find*"
.\cedet\semantic\db-find.el
.\cedet\semantic\db-find.elc
.\cedet\semantic\find.el
.\cedet\semantic\find.elc
.\cedet\srecode\find.el
...
I don't know why.
I think the second "find.exe" is more powerful in my env..
On Fri, Jan 27, 2012 at 11:24 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Fri, 27 Jan 2012 21:04:53 +0800
> > From: sthfrnth <sthfrnth@gmail.com>
> > Cc: help-emacs-windows@gnu.org, emacs-devel@gnu.org
> >
> > I tried the port you suggested. It works, but not quite convenient. It
> can
> > not run in this way: "find . -name *foo*".
>
> What do you mean "can not run"? You need to quote the *foo* part, but
> otherwise it works for me. If you quote it, what do you see?
>
[-- Attachment #2: Type: text/html, Size: 2583 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-28 6:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 5:26 find-dired does not work on emacs24 + win + mingw sthfrnth
2012-01-27 7:12 ` Eli Zaretskii
2012-01-27 13:04 ` sthfrnth
2012-01-27 15:24 ` Eli Zaretskii
2012-01-28 6:12 ` sthfrnth
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).