It appears that the jde-compile-finish-flush-completion-cache function is turning off the read-only flag of the current buffer (i.e. changing the status of a read-only buffer to writable). I am running Emacs NT 20.7.1 and JDE 2.2.8 Has anyone else experienced this problem? -----Original Message----- From: Paul Kinnucan [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 12:16 PM To: Eric Chastan Cc: [EMAIL PROTECTED] Subject: Re: jde-find doesn't work on win32 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.
