unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "CloudStrife" <santosh.iitm2002@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Jumping between highlighted regexps
Date: Sat, 17 Mar 2007 13:32:08 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICEEJEDLAA.drew.adams@oracle.com> (raw)
In-Reply-To: <1174066001.923341.117250@b75g2000hsg.googlegroups.com>

> I would like to know if there is a way to jump between regexps that
> are highlighted using 'M-x highlight-regexp'

You can do this with library highlight.el, if you use Emacs 21 or later. I
bind `S-C-n' and `S-C-p' to ‘highlight-next-highlight’ and
‘highlight-previous-highlight’.

The navigation is per-face; that is, it is among the highlights of a given
face. Use ‘M-x highlight-face’ to switch to a different face. You can
highlight in any number of faces.

You can highlight the same portions of text using multiple faces. Navigation
always reflects the current highlighting face. If that face is present, then
navigation will find it, even if the same text has additional highlighting
faces.

If the region is active and non-empty, then navigation is restricted to the
region.

To use this feature, you must use library highlight.el, not library
hi-lock.el, to create the highlights, and you must create them using
overlays, not text properties - that is, `highlight-use-overlays-flag' must
be non-nil (which it is, by default).

Code: http://www.emacswiki.org/cgi-bin/wiki/highlight.el.

Description: http://www.emacswiki.org/cgi-bin/wiki/HighLight. See also
http://www.emacswiki.org/cgi-bin/wiki/HighlightTemporarily.

      parent reply	other threads:[~2007-03-17 20:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-16 17:26 Jumping between highlighted regexps CloudStrife
2007-03-16 17:56 ` David Hansen
2007-03-16 18:53   ` Drew Adams
2007-03-17 20:32 ` 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

  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=DNEMKBNJBGPAOPIJOOICEEJEDLAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=santosh.iitm2002@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.
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).