From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: grep command doc - point out that you can chain now Date: Mon, 17 Jul 2006 21:22:22 -0700 Message-ID: References: <17596.18378.277549.697431@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153196616 18141 80.91.229.2 (18 Jul 2006 04:23:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2006 04:23:36 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 18 06:23:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G2h7J-0000n7-DJ for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2006 06:23:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2h7I-0006fb-K4 for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2006 00:23:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G2h76-0006fW-Bx for emacs-devel@gnu.org; Tue, 18 Jul 2006 00:23:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G2h73-0006fK-Jn for emacs-devel@gnu.org; Tue, 18 Jul 2006 00:23:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2h73-0006fH-GN for emacs-devel@gnu.org; Tue, 18 Jul 2006 00:23:13 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1G2h9r-000495-Qg for emacs-devel@gnu.org; Tue, 18 Jul 2006 00:26:08 -0400 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k6GMHTdY003575 for ; Mon, 17 Jul 2006 22:23:11 -0600 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-80-94.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 1579674841153196542; Mon, 17 Jul 2006 22:22:22 -0600 Original-To: 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: <17596.18378.277549.697431@kahikatea.snap.net.nz> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Whitelist: TRUE 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:57239 Archived-At: > I don't think it should be pointed out in the manual > because you would expect it to work. > > It never occurred to me, so I think it is worth mentioning in the > Emacs Manual. I will add it to the manual. Probably because you knew it didn't work in the past. Yes, I said that myself. And, I added, also because what you type is apparently not the arguments to the Unix/GNU-Linux `grep' command, but something possibly much richer. Even if someone were not used to Emacs 20 `grep' behavior, if s?he were used to the Unix/GNU-Linux `grep' command, then s?he would expect to be inputting just the `grep' args, no? It still doesn't work for users with versions of grep which don't have the -H option, so they will be confused by your description. Do you mean Eli's description? I didn't describe it, beyond mentioning piping. Eli gave a real description of what's going on, presumably. I didn't know that either (-H), BTW. That too is worth pointing out. IOW, what you type is different for different `grep's - in one case it is the `grep' args; in another case it is "_any_ shell command whose output resembles that of Grep." Those behavior differences are certainly worth pointing out, unless they are part of the `grep -H' doc. IOW, is what you type the expected arguments for `grep -H', or is it something special that Emacs (only) allows? Does `grep -H' _itself_ allow "_any_ shell command whose output resembles that of Grep."? If this is part of the behavior of `grep -H' itself, then I guess it wouldn't need to be documented in Emacs. It's not clear to me what the story is. When I do `M-x man RET grep', and look for -H, it says "Print the filename for each match." That can't be what this is about, can it? Yet, with that same `grep' (it says "GNU Project 2002/01/22" in the footer), I get the magical piping. Isn't some explanation necessary? Is this an Emacs `grep' feature or a Unix/GNU-Linux `grep' feature that Emacs manifests?