From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: M-x compile with input set to References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1066062541 20557 80.91.224.253 (13 Oct 2003 16:29:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2003 16:29:01 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 13 18:28:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A95Z5-0005dm-01 for ; Mon, 13 Oct 2003 18:28:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A95Ys-00044r-Dy for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Oct 2003 12:28:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A95Gx-00008t-BZ for bug-gnu-emacs@prep.ai.mit.edu; Mon, 13 Oct 2003 12:10:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A95EG-0007Og-2m for bug-gnu-emacs@prep.ai.mit.edu; Mon, 13 Oct 2003 12:07:59 -0400 Original-Received: from [130.59.10.2] (helo=chx400.switch.ch) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A95EF-0007Nf-Fd for bug-gnu-emacs@prep.ai.mit.edu; Mon, 13 Oct 2003 12:07:27 -0400 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 1A95ED-0005iG-00 for gnu-emacs-bug@moderators.isc.org; Mon, 13 Oct 2003 18:07:25 +0200 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 13 Oct 2003 18:07:24 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 13 Oct 2003 18:07:24 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 43 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1066061244 23027878 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list 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 Xref: main.gmane.org gmane.emacs.bugs:5968 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5968 Dan Jacobson wrote: > Just curious, why not run compile with input set to default, as one can't just answer any questions asked on the screen, > e.g (compile "echo x=; read x"). Probably because people are more interested in adding the ability to read user input in a *compilation* buffer. I first posted a way to do that back in October 1996 and recently updated it for Emacs 21: From: Kevin Rodgers Newsgroups: gnu.emacs.help Subject: Re: comint-mode broken in GNU Emacs 21.2.1? Date: Thu, 18 Sep 2003 16:39:01 -0600 Message-ID: <3F6A3405.8040609@yahoo.com> Here's a link to that message: http://www.google.com/groups?selm=3F6A3405.8040609%40yahoo.com But 7 years ago I also submitted a patch that did exactly what you're asking for: From: kevinr@ihs.com (Kevin Rodgers) Newsgroups: gnu.emacs.bug Subject: Re: standard input in *compile* buffers Date: Fri, 18 Oct 1996 07:50:11 -0600 Message-ID: <199610181350.HAA03498@airedale.ihsyp> ... Here's a slightly improved version of the patch I submitted, which makes the redirection optional (controlled by the new variable compile- disable-input) as Karl suggested. Its default value makes compile behave the same whether the platform supports asynchronous processes or not. And here's a link to that message: http://www.google.com/groups?selm=199610181350.HAA03498%40airedale.ihsyp -- Kevin Rodgers