From: Pieter van Oostrum <pieter-l@vanoostrum.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I run grep-find from an elisp function?
Date: Thu, 18 Feb 2021 23:01:21 +0100 [thread overview]
Message-ID: <lxblchc9xq.fsf@cochabamba.vanoostrum.org> (raw)
In-Reply-To: <227d5caf-8b49-4395-9349-726a860d7fc4n@googlegroups.com> (BobD's message of "Wed, 17 Feb 2021 16:30:38 -0800 (PST)")
BobD <daycandle@gmail.com> writes:
> Using Windows 7
> Emacs 27.1
>
> When I run grep-find, it displays this in the mini-buffer:
> Q:/Cygwin/bin/find.exe . -type f -name '*' -exec Q:/Cygwin/bin/grep.exe -nH -i "{}" ";"
>
> I insert a search string like this:
> Q:/Cygwin/bin/find.exe . -type f -name '*' -exec Q:/Cygwin/bin/grep.exe -nH -i blabba "{}" ";"
>
> How can I run grep-find with that from an elisp function?
Probably
(grep-find "Q:/Cygwin/bin/find.exe . -type f -name '*' -exec Q:/Cygwin/bin/grep.exe -nH -i blabba \"{}\" \";\""")
I don't have Windows, so I might have overlooked some Windows peculiarities. The above is translated from how it works on MacOS. Maybe the \" can be replaced by ' and/or \"{}\" by \\{\\} or '{}'
--
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
parent reply other threads:[~2021-02-18 22:01 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <227d5caf-8b49-4395-9349-726a860d7fc4n@googlegroups.com>]
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=lxblchc9xq.fsf@cochabamba.vanoostrum.org \
--to=pieter-l@vanoostrum.org \
--cc=help-gnu-emacs@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.