From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mirko" Newsgroups: gmane.emacs.help Subject: Re: Does grep work in Windows Date: 25 Jan 2007 06:55:03 -0800 Organization: http://groups.google.com Message-ID: <1169736903.200171.49120@q2g2000cwa.googlegroups.com> References: <1169665941.273735.314820@m58g2000cwm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1169739641 20418 80.91.229.12 (25 Jan 2007 15:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Jan 2007 15:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 25 16:40:34 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 1HA6iG-00071D-Ee for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jan 2007 16:40:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HA6iF-0007iD-Rl for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jan 2007 10:40:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q2g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 69 Original-NNTP-Posting-Host: 208.218.238.20 Original-X-Trace: posting.google.com 1169736911 3848 127.0.0.1 (25 Jan 2007 14:55:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 25 Jan 2007 14:55:11 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q2g2000cwa.googlegroups.com; posting-host=208.218.238.20; posting-account=zJ4b2Q0AAAB5wLprz3WGnkfVsRyuZtK0 Original-Xref: shelby.stanford.edu gnu.emacs.help:145035 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:40639 Archived-At: On Jan 25, 3:35 am, Kevin Rodgers wrote: > Mirko wrote: > > On a related note, (I also use cygwin's grep + emacs), when I use grep, > > I cannot follow the grep hits to the files. > > > In the *grep* window, I try pressing C-` or Ret on the line containing > > the grep hit, but I get the message "No grep hit here". The mode line > > reads Grep:exit [matched] > > > Although the buffer is in grep mode it seems that none of the > > keybindings are active (Ret, Tab, etc.) > > > Just in case that it may help, here is a sample output from grep:Indeed, why don't the matched lines mention the line number? `M-x grep' > provides the -n option to the grep program by default so that its output > lines look like: > > FILE:LINE NUMBER:TEXT > > > > > -*- mode: grep; default-directory: > > "d:/my-software-add-ons/my-IDL/Numerics/Calculus-like/" -*- > > Grep started at Wed Jan 24 14:05:26 > > > e:/cygwin-root/bin/grep.exe function *.pro NUL > > DerivTabulated.pro:function > > DerivTabulated,X,Y,UseAsinh=UseAsinh,_extra=_extra > > DerivTabulated.pro:; functions calculates the derivative of the > > tabulated data using > > IntTab1DTrapzd.pro:function IntTab1DTrapzd,vx=vx,vy,vdx=vdx > > IntTab1DTrapzd.pro:; provided a tabulated function y as function of x > > (dimensions N), an > > RunningIntegral.pro:function RunningIntegral,x,y,_extra=_extra > > SplineDeriv.pro:function > > SplineDerivScalar,vxtab,vytab,vy2a,xinterp,iBefore=iBefore > > SplineDeriv.pro:function SplineDerivAtTabPoints,vxtab,vytab,vy2a > > SplineDeriv.pro:function > > SplineDeriv,vxtab,vytab,vy2a,xinterp,aiBefore=aiBefore, $ > > SplineDeriv.pro:; given the values of the tabulated function by vxtab > > and vytab, and > > SplineDeriv.pro:; the second derivatives calculated by spl_init, the > > function returns > > SplineDeriv.pro:; the derivative of the function at vxinterp > > inttab2dtrapzd.pro:function > > IntTab2DTrapzd,vx=vx,vy=vy,vdx=vdx,vdy=vdy,mz > > inttab2dtrapzd.pro:; provided a tabulated function y as function of x > > (dimensions N), an > > splineintegral.pro:function > > SplineIntegral,x,y,y2a,AtTabulatedPoints=AtTabulatedPoints, _extra = > > rXtraKwds > > splineintegral.pro:; is set, it returns the cumulative integral of the > > function at the > > > Grep finished (matches found) at Wed Jan 24 14:05:28-- > Kevin Rodgers > Denver, Colorado, USA Thank you Kevin!!!!! Adding the -n option did the thing. I guess that in the mists of time, I defined my grep command (in custom-set-variables) as "e:/cygwin-root/bin/grep.exe". I have now added the -n switch to it. Thanks again, Mirko