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 08:28:36 -0700 Message-ID: References: <17595.18473.408272.61017@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 1153150508 7790 80.91.229.2 (17 Jul 2006 15:35:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Jul 2006 15:35:08 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 17 17:35:06 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 1G2V2F-0003sD-Ou for ged-emacs-devel@m.gmane.org; Mon, 17 Jul 2006 17:29:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2V2F-00067f-4f for ged-emacs-devel@m.gmane.org; Mon, 17 Jul 2006 11:29:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G2V1t-00060H-BC for emacs-devel@gnu.org; Mon, 17 Jul 2006 11:29:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G2V1q-0005yp-TT for emacs-devel@gnu.org; Mon, 17 Jul 2006 11:29:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2V1q-0005yf-JZ for emacs-devel@gnu.org; Mon, 17 Jul 2006 11:29:02 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1G2V4V-0005Cn-OP for emacs-devel@gnu.org; Mon, 17 Jul 2006 11:31:48 -0400 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k6GMnnHJ020294 for ; Mon, 17 Jul 2006 10:28:51 -0500 Original-Received: from dradams-lap.us.oracle.com by rcsmt251.oracle.com with ESMTP id 1573500511153150117; Mon, 17 Jul 2006 09:28:37 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 In-Reply-To: <17595.18473.408272.61017@kahikatea.snap.net.nz> Importance: Normal 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:57184 Archived-At: I don't think it should be pointed out in the manual because you would expect it to work. However it might be worth mentioning it in NEWS, so that users who have tried it in the past know it will now work. I don't think it's obvious ("you would expect it to work"), since Emacs `grep' is asking for input to the Unix/GNU-Linux `grep' command. Do a `man' on grep, and you won't see its arguments mentioning this, because piping output to other commands is not part of the arguments - it is part of the shell interpretation of Unix/GNU-Linux. There is nothing (in the prompt, doc string etc.) that would suggest that you can instead pass it both the args for grep and a chain of piped commands. I imagine you could pipe anything, not just grep (haven't tried), and that's certainly not what "you would expect" from a `grep' command asking for input. Aside from this consideration, I think this is important enough that it should be in the doc, not just the NEWS, to bring it to the attention of users of previous Emacs releases. What's wrong with adding such a "Usage Note" to the doc?