From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.bugs Subject: bug#13693: M-x grep should do some basic parameter checking Date: Tue, 12 Feb 2013 13:49:04 +0800 Message-ID: <87sj52t73j.fsf@jidanni.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360648194 24958 80.91.229.3 (12 Feb 2013 05:49:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2013 05:49:54 +0000 (UTC) To: 13693@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 12 06:50:13 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 1U58ks-0003I8-L5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Feb 2013 06:50:10 +0100 Original-Received: from localhost ([::1]:44988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U58kY-00088i-RI for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Feb 2013 00:49:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U58kT-00087X-73 for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2013 00:49:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U58kN-0007YX-P9 for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2013 00:49:40 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U58kN-0007YR-Lq for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2013 00:49:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U58kl-000076-35 for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2013 00:50:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Feb 2013 05:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13693 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1360648184405 (code B ref -1); Tue, 12 Feb 2013 05:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2013 05:49:44 +0000 Original-Received: from localhost ([127.0.0.1]:51432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U58kS-00006U-CH for submit@debbugs.gnu.org; Tue, 12 Feb 2013 00:49:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46796) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U58kQ-00006N-5w for submit@debbugs.gnu.org; Tue, 12 Feb 2013 00:49:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U58k0-0007VG-FJ for submit@debbugs.gnu.org; Tue, 12 Feb 2013 00:49:18 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:54538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U58k0-0007V4-BC for submit@debbugs.gnu.org; Tue, 12 Feb 2013 00:49:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U58jy-000864-Oa for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2013 00:49:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U58ju-0007T7-Kn for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2013 00:49:14 -0500 Original-Received: from mailbigip.dreamhost.com ([208.97.132.5]:44150 helo=homiemail-a4.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U58ju-0007Sn-C5 for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2013 00:49:10 -0500 Original-Received: from homiemail-a4.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTP id 909BE51C069 for ; Mon, 11 Feb 2013 21:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=8fgRVJBLkB5o4Huhwln8yHUkino=; b=VS5yu0btR4m3Cyp9 YPELRZP7OOd6lUQu0xb+0mgHJHLMyhQkAG4gGku5VTvNKSOXfegDizjqga3OCDDm nWO22AzKiJndFsJ13vFnLRCreV3zHYuA4q96FAtIo1IFteyChPhLgQ+nYJj/muqc C4Ch68cFVRWYCR5uN1kmaiCCZm8= Original-Received: from jidanni.org (114-41-29-179.dynamic.hinet.net [114.41.29.179]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTPSA id 54D3A51C063 for ; Mon, 11 Feb 2013 21:49:08 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:71079 Archived-At: Why doesn't M-x grep check that it has been given at least two parameters, else it is bound to fail, as $ grep $ grep pattern won't get far without some file arguments. Yes $ grep pattern pattern #wrong will still pass as that would look the same as $ grep pattern file etc. but the check would be better than nothing.