unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: How can I run grep-find from an elisp function?
       [not found] <227d5caf-8b49-4395-9349-726a860d7fc4n@googlegroups.com>
@ 2021-02-18 22:01 ` Pieter van Oostrum
  0 siblings, 0 replies; only message in thread
From: Pieter van Oostrum @ 2021-02-18 22:01 UTC (permalink / raw)
  To: help-gnu-emacs

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]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-18 22:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <227d5caf-8b49-4395-9349-726a860d7fc4n@googlegroups.com>
2021-02-18 22:01 ` How can I run grep-find from an elisp function? Pieter van Oostrum

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).