From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: grep /dev/null Date: Mon, 07 Feb 2005 12:36:41 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107806365 23376 80.91.229.2 (7 Feb 2005 19:59:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2005 19:59:25 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 07 20:59:24 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CyF2W-0005t5-06 for ged-emacs-devel@m.gmane.org; Mon, 07 Feb 2005 20:59:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CyFGh-00012a-K3 for ged-emacs-devel@m.gmane.org; Mon, 07 Feb 2005 15:13:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CyF3u-00081p-BI for emacs-devel@gnu.org; Mon, 07 Feb 2005 15:00:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CyF3g-0007vy-5m for emacs-devel@gnu.org; Mon, 07 Feb 2005 15:00:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CyF3c-0007tU-Rh for emacs-devel@gnu.org; Mon, 07 Feb 2005 15:00:29 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CyEiH-0002He-4Z for emacs-devel@gnu.org; Mon, 07 Feb 2005 14:38:25 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1CyEgi-0002G9-6o for emacs-devel@gnu.org; Mon, 07 Feb 2005 20:36:48 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2005 20:36:48 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2005 20:36:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33033 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33033 Karl Chen wrote: > I think it would be useful if such grep invocations terminate > immediately. One easy way would be to always append " /dev/null > (i.e. grep-use-null-device) or " be a good idea to add an optional flag to start-process so that > `compilation-start' can reliably pipe from null by default. I don't understand: `M-x grep' does append null-device to the command line (unless it's been set to nil). With respect to compile, I posted a patch back in October 1996 that defines a new variable (compile-disable-input) and sends an EOF to the compilation process if it is non-nil (which it is, by default). I also posted a compilation-mode-hook function (compile-enable-input) that allows the user to run compilations that require input by emulating comint-mode in the *compilation* buffer. -- Kevin Rodgers