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: highlight regular expression in grep window Date: Wed, 4 Sep 2013 11:48:24 -0700 (PDT) Message-ID: <5ce500a0-1d6e-4f6a-8231-a06b878dfc9a@default> References: <84ab5187-0def-45b6-bdb2-87693a1d77e5@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378320537 24771 80.91.229.3 (4 Sep 2013 18:48:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2013 18:48:57 +0000 (UTC) To: Rami A , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 04 20:48:59 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VHI8Q-0003RP-RR for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Sep 2013 20:48:58 +0200 Original-Received: from localhost ([::1]:54761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHI8Q-0007mN-FD for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Sep 2013 14:48:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHI87-0007lr-AN for help-gnu-emacs@gnu.org; Wed, 04 Sep 2013 14:48:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHI7y-0004dI-Os for help-gnu-emacs@gnu.org; Wed, 04 Sep 2013 14:48:39 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:42765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHI7y-0004dA-Hi for help-gnu-emacs@gnu.org; Wed, 04 Sep 2013 14:48:30 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r84ImPVF023881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Sep 2013 18:48:26 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r84ImPFY029661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Sep 2013 18:48:25 GMT Original-Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r84ImOjH010517; Wed, 4 Sep 2013 18:48:24 GMT In-Reply-To: <84ab5187-0def-45b6-bdb2-87693a1d77e5@googlegroups.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93244 Archived-At: > I am wondering if there is a way to have the regular expression I am > grepping on highlighted at the top of the grep window. > Something like: >=20 > grep [reg expr] ;Where [] highlighted > ....results of grep.... >=20 >=20 > Or at least at the title of window at the bottom something like: >=20 > *grep* [reg exp] I don't have an answer for you, but just to be sure what you are asking: You're not talking about highlighting the text that the regexp matches. You just want to highlight the regexp itself. Right? I ask because older Emacs versions do not highlight regexp matches, and if that's all you want then one answer is to either use a newer Emacs or use library grep+.el.