From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Grep Searching node in building.texi Date: Thu, 04 Aug 2005 05:14:03 +0300 Organization: JURTA Message-ID: <874qa6xv68.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123127986 27319 80.91.229.2 (4 Aug 2005 03:59:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2005 03:59:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 04 05:59:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0Wt0-0001Yz-4g for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2005 05:59:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0Wvm-0000jS-RA for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2005 00:02:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E0Wv5-0000Ti-5e for emacs-devel@gnu.org; Thu, 04 Aug 2005 00:01:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E0Wux-0000Pm-Rg for emacs-devel@gnu.org; Thu, 04 Aug 2005 00:01:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0Wuw-0000NE-Uj for emacs-devel@gnu.org; Thu, 04 Aug 2005 00:01:14 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E0Wz5-0000HF-8D for emacs-devel@gnu.org; Thu, 04 Aug 2005 00:05:31 -0400 Original-Received: from mail.neti.ee (80-235-32-246-dsl.mus.estpak.ee [80.235.32.246]) by Relayhost1.neti.ee (Postfix) with ESMTP id 6BD221EAE for ; Thu, 4 Aug 2005 06:52:28 +0300 (EEST) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41475 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41475 I checked the node `Grep Searching' and want to propose the following corrections. I think mentioning the `-nH' option is essential (and also I find the phrase `where there were' too clumsy). Index: man/building.texi =================================================================== RCS file: /cvsroot/emacs/emacs/man/building.texi,v retrieving revision 1.65 diff -c -r1.65 building.texi *** man/building.texi 23 Jun 2005 01:22:28 -0000 1.65 --- man/building.texi 4 Aug 2005 02:12:08 -0000 *************** *** 325,337 **** @findex grep Just as you can run a compiler from Emacs and then visit the lines ! where there were compilation errors, you can also run @code{grep} and then visit the lines on which matches were found. This works by treating the matches reported by @code{grep} as if they were ``errors.'' To do this, type @kbd{M-x grep}, then enter a command line that specifies how to run @code{grep}. Use the same arguments you would give ! @code{grep} when running it normally: a @code{grep}-style regexp (usually in single-quotes to quote the shell's special characters) followed by file names, which may use wildcards. If you specify a prefix argument for @kbd{M-x grep}, it figures out the tag --- 325,340 ---- @findex grep Just as you can run a compiler from Emacs and then visit the lines ! with compilation errors, you can also run @code{grep} and then visit the lines on which matches were found. This works by treating the matches reported by @code{grep} as if they were ``errors.'' To do this, type @kbd{M-x grep}, then enter a command line that specifies how to run @code{grep}. Use the same arguments you would give ! @code{grep} when running it normally: the @samp{-nH} options to ! print the filename and the line number (without these options you ! will not be able to visit matches in the source file from ! the @code{grep} output buffer) and a @code{grep}-style regexp (usually in single-quotes to quote the shell's special characters) followed by file names, which may use wildcards. If you specify a prefix argument for @kbd{M-x grep}, it figures out the tag -- Juri Linkov http://www.jurta.org/emacs/