From: Kaushal Modi <kaushal.modi@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 23453@debbugs.gnu.org, dgutov@yandex.ru
Subject: bug#23453: 25.0.93; dired-do-find-regexp does not work on Windows even after installing GNU find and grep
Date: Wed, 04 May 2016 19:56:02 +0000 [thread overview]
Message-ID: <CAFyQvY2MeY9kpkvqJdRtE1Nt3-B-ePRXg2J9F=S=KfgTLrZFSQ@mail.gmail.com> (raw)
In-Reply-To: <834madioy0.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1393 bytes --]
>
> You need to change the system Path, not the user Path.
>
> Alternatively, rename the MS find.exe to something else.
>
I do not have admin access (work computer). Wouldn't (setenv "PATH" "..")
be the same?
If I rename the MS find.exe (which I cannot without admin aceess), will it
not affect any other program using it?
> > By I used the brute-force method below just so that the correct find.exe
> and grep.exe are found by emacs:
> >
> > (setq exec-path '("C:/Users/kmodi/Dropbox/Portable
> Software/ezwinports/bin"
> > "c:/ProgramData/Oracle/Java/javapath"
>
> No, don't do that, it won't work (as you have found out). Emacs
> sometimes invokes commands through the shell, which doesn't know about
> exec-path. This way lies madness. You should have your PATH and the
> corresponding Emacs variables in sync.
>
> (This is all basic Windows setup, nothing related to Emacs, btw.)
>
As I mentioned, I also set the PATH using (setenv "PATH "..."). Isn't
executable-find returning the correct find.exe and grep.exe a proof that
the right executable is being found.
I have had this in my config and it works fine (for a different executable
chrome.exe):
(let ((chrome-path "C:/Program Files (x86)/Google/Chrome/Application/"))
(setq exec-path (append exec-path `(,chrome-path)))
(setq browse-url-generic-program (executable-find "chrome")))
--
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 2078 bytes --]
next prev parent reply other threads:[~2016-05-04 19:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-04 19:39 bug#23453: 25.0.93; dired-do-find-regexp does not work on Windows even after installing GNU find and grep Kaushal Modi
2016-05-04 19:49 ` Eli Zaretskii
2016-05-04 19:56 ` Kaushal Modi [this message]
2016-05-04 20:24 ` Kaushal Modi
2016-05-04 21:14 ` Kaushal Modi
2016-05-04 21:39 ` Kaushal Modi
2016-05-04 22:15 ` Dmitry Gutov
2016-05-04 22:30 ` Kaushal Modi
2016-05-05 1:18 ` Dmitry Gutov
2016-05-05 16:23 ` Kaushal Modi
2016-05-05 2:44 ` Eli Zaretskii
2016-05-05 2:37 ` Eli Zaretskii
2016-05-05 16:36 ` Kaushal Modi
2016-05-05 16:52 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyQvY2MeY9kpkvqJdRtE1Nt3-B-ePRXg2J9F=S=KfgTLrZFSQ@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=23453@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.