unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Benoit Coste <ben.coste@gmail.com>
Cc: 22551@debbugs.gnu.org
Subject: bug#22551: 24.5; M-x grep: can't add option after default option list
Date: Thu, 04 Feb 2016 12:32:31 -0500	[thread overview]
Message-ID: <bph9hoxtxs.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87y4b0tpjd.fsf@bcoste-MS-7752.i-did-not-set--mail-host-address--so-tickle-me> (Benoit Coste's message of "Thu, 04 Feb 2016 17:21:10 +0100")

Benoit Coste wrote:

> When I type M-x grep, this is what I get.
>
> Run grep (like this): grep --color -nH -e
>
> If if try to add an option after the '-e', let's say '-R', Emacs thinks
> the option is the pattern I am looking for instead of considering it as
> an option.

We assume familiarity with grep options. The -e option of grep takes an
argument, namely the pattern to search for. You can either add your
option before the -e, or maybe you are interested in M-x rgrep.
I don't see this as an Emacs bug.





  reply	other threads:[~2016-02-04 17:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-04 16:21 bug#22551: 24.5; M-x grep: can't add option after default option list Benoit Coste
2016-02-04 17:32 ` Glenn Morris [this message]
2016-02-04 17:35   ` Drew Adams
2016-02-04 21:46     ` Benoît Coste

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bph9hoxtxs.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=22551@debbugs.gnu.org \
    --cc=ben.coste@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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