From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13693: M-x grep should do some basic parameter checking Date: Wed, 13 Feb 2013 10:46:18 +0200 Organization: JURTA Message-ID: <87wqucy52d.fsf@mail.jurta.org> References: <87sj51pmyt.fsf@mail.jurta.org> <87r4klxn38.fsf@jidanni.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360745261 20764 80.91.229.3 (13 Feb 2013 08:47:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 08:47:41 +0000 (UTC) Cc: 13693@debbugs.gnu.org To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 13 09:48:00 2013 Return-path: Envelope-to: geb-bug-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 1U5Y0R-0007U4-Ub for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 09:47:56 +0100 Original-Received: from localhost ([::1]:43213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Y08-0001eI-Dh for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 03:47:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Y06-0001e7-8n for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 03:47:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5Y03-0001SV-U8 for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 03:47:34 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Y03-0001SR-Qf for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 03:47:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U5Y0X-0008Fo-RY for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 03:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Feb 2013 08:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13693 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13693-submit@debbugs.gnu.org id=B13693.136074525231689 (code B ref 13693); Wed, 13 Feb 2013 08:48:01 +0000 Original-Received: (at 13693) by debbugs.gnu.org; 13 Feb 2013 08:47:32 +0000 Original-Received: from localhost ([127.0.0.1]:53226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5Y03-0008F4-E1 for submit@debbugs.gnu.org; Wed, 13 Feb 2013 03:47:32 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:56951 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5Y00-0008Ev-JH for 13693@debbugs.gnu.org; Wed, 13 Feb 2013 03:47:29 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 23E952019D0204; Wed, 13 Feb 2013 00:46:56 -0800 (PST) In-Reply-To: <87r4klxn38.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 13 Feb 2013 05:02:19 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71156 Archived-At: > $ emacs > (grep "grep -nH -e love") > Will always fail. And the user will think "well, I can't find the love > letter she sent me, and thus can't find her address, so I will just give > up," when all along he just forgot to give the filename. > > Whereas normally > $ grep love > would hang, waiting for input, so he would know that the relationship > still had a chance, and it was just emacs that was the reason the two > would have lost touch... If you tend to forget the pattern or file argument there is a reliable grep known as `M-x rgrep' that asks you what and where to search.