all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Rami A <rami.ammari@gmail.com>, help-gnu-emacs@gnu.org
Subject: RE: highlight regular expression in grep window
Date: Sat, 8 Feb 2014 14:50:18 -0800 (PST)	[thread overview]
Message-ID: <e09fcaf8-d899-4a28-8f6b-fe0a776b3671@default> (raw)
In-Reply-To: <a441350f-4397-4190-ad25-5198b89fc95b@googlegroups.com>

> I get this:
> grep -nH -e WARN *.* /dev/null
> grep: illegal option -- H
> grep: illegal option -- e
> Usage: grep -hblcnsviw pattern file . . .
> 
> Is that because I am running under Solaris? Which doesn't recognize
> the --color option for grep command.

Dunno; you tell me.  See the doc string for option
`grep-highlight-matches'.  I'm no expert on different OS `grep'
commands.

You don't mention your Emacs version.  If your version of `grep'
won't do the highlighting, you can try this (untested - this is
really for older Emacs versions, but I think it should work OK):

Do not load library grep.el or grep+.el.  Instead, load these
libraries in this order: compile-20.el, compile.el, compile+20.el.

The first and third are from Emacs Wiki.  They provide an
older version of what grep+.el provides.  They do the regexp
highlighting without depending on the `grep' OS command for it.

No, they won't give you everything that the latest and greatest
Emacs code will give you - they are what I use for Emacs 20 and
21.  But they should at least let you use `M-x grep' with
highlighting of the regexp matches in buffer *grep* (and more).



      reply	other threads:[~2014-02-08 22:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 17:47 highlight regular expression in grep window Rami A
2013-09-04 18:48 ` Drew Adams
     [not found] ` <mailman.1313.1378320529.10748.help-gnu-emacs@gnu.org>
2013-09-04 19:32   ` Rami A
2013-09-04 20:33     ` Drew Adams
2013-09-05  6:47       ` Kevin Rodgers
     [not found]     ` <mailman.1317.1378326833.10748.help-gnu-emacs@gnu.org>
2014-02-08 19:46       ` Rami A
2014-02-08 22:19         ` Drew Adams
2014-02-08 22:33 ` Rami A
2014-02-08 22:50   ` Drew Adams [this message]

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=e09fcaf8-d899-4a28-8f6b-fe0a776b3671@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rami.ammari@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 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.