At 05:30 PM 9/7/2001 +0200, you wrote:
>Hello,
>
>On my NTemacs "find-grep" functions work well with the use of cygwin
>bash :
>
>I'm using different stuff :
>- from emacro:
>
>(setq explicit-shell-file-name (which-first "bash"))
>   (setq sh-shell-file (which-first "bash"))
>   (setenv "ESHELL" (which-first "bash"))
>   (add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m nil t)
>   (setq win32-quote-process-args t)
>   (setq shell-command-switch "-c")
>   (add-hook 'shell-mode-hook
>      '(lambda () (setq comint-completion-addsuffix t)) t))
>
>- and (from the emacs-help newsgroup) :
>(defadvice start-process-shell-command (around cygnus-workaround
>activate)
>   (let ((shell-file-name "c:\\cygwin\\bin\\bash.exe")
>  (win32-quote-process-args t)
>  (shell-command-switch "-c")
>  (path-separator ":")
>  (grep-null-device "NUL"))
>     (message "compile-internale advised : %s")
>     ad-do-it))
>
>(setq igrep-expression-quote-char ?')
>(setq igrep-parenthesis-escape-char ?\\)
>
>The problem with jde-find is the use of  DOS drive names in the find
>commande.

The Cygwin find command accepts DOS drive names.

> >From where the jde command takew its directory source file names ?


jde-db-src-directories

>Could it be possible to have a separate variable for it ?


No need for this. jde-find works fine on my system (Windows 2000, cygwin, 
JDE-2.2.8) with DOS paths, e.g., here is the output of a jde-find command 
that uses a DOS drive specifier:

cd h:/Documents/usr/home/emacs/site/jde/java/src/jde/util/
/bin/find h:/Documents/usr/home/emacs/site/jde -name "*.java" -type f | 
xargs grep -i -n "Rodrigo" /dev/null NUL
h:/Documents/usr/home/emacs/site/jde/java/src/jde/util/Completion.java:3: 
*    Copyright (C) 1999, 2001 Rodrigo Reyes ([EMAIL PROTECTED])
h:/Documents/usr/home/emacs/site/jde/java/src/jde/util/Completion.java:33: 
* @author Rodrigo Reyes ([EMAIL PROTECTED])

grep finished (matches found) at Fri Sep 07 13:10:57


Note that you must ensure that jde-find uses the cygwin find and not the 
Windows find command. I did this by patching jde-find to run find as

/bin/find

instead of as

find

where /bin is mapped to the root of the cygwin directory. I will include a 
variable in the next release to facilitate this.



>Eric.

Reply via email to