From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Jumping between highlighted regexps Date: Sat, 17 Mar 2007 13:32:08 -0700 Message-ID: References: <1174066001.923341.117250@b75g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1174163702 32346 80.91.229.12 (17 Mar 2007 20:35:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Mar 2007 20:35:02 +0000 (UTC) To: "CloudStrife" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 17 21:34:59 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HSfcA-0003hd-Fo for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Mar 2007 21:34:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HSfdR-0001B2-5w for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Mar 2007 15:36:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HSfcd-0000y9-KG for help-gnu-emacs@gnu.org; Sat, 17 Mar 2007 16:35:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HSfcc-0000xw-3x for help-gnu-emacs@gnu.org; Sat, 17 Mar 2007 16:35:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HSfcb-0000xs-UI for help-gnu-emacs@gnu.org; Sat, 17 Mar 2007 15:35:25 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HSfbL-00076y-53 for help-gnu-emacs@gnu.org; Sat, 17 Mar 2007 16:34:07 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l2HKY4BS008533; Sat, 17 Mar 2007 14:34:04 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l2HKY37U004967; Sat, 17 Mar 2007 14:34:03 -0600 Original-Received: from 141.144.73.0 by acsmt351.oracle.com with ESMTP id 2540235811174163536; Sat, 17 Mar 2007 13:32:16 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <1174066001.923341.117250@b75g2000hsg.googlegroups.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-MIME-Autoconverted: from 8bit to quoted-printable by rgminet01.oracle.com id l2HKY4BS008533 X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42034 Archived-At: > 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 =91highlight-next-highlight=92 and =91highlight-previous-highlight=92. The navigation is per-face; that is, it is among the highlights of a give= n face. Use =91M-x highlight-face=92 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. Navigat= ion always reflects the current highlighting face. If that face is present, t= hen navigation will find it, even if the same text has additional highlightin= g faces. If the region is active and non-empty, then navigation is restricted to t= he 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' mu= st 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.