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: Wed, 09 Feb 2005 10:06:14 -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 1107969016 30704 80.91.229.2 (9 Feb 2005 17:10:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Feb 2005 17:10:16 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 09 18:10:16 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CyvJV-0006MV-6w for ged-emacs-devel@m.gmane.org; Wed, 09 Feb 2005 18:08:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CyvY4-00033m-BI for ged-emacs-devel@m.gmane.org; Wed, 09 Feb 2005 12:22:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CyvXk-00032m-FX for emacs-devel@gnu.org; Wed, 09 Feb 2005 12:22:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CyvXh-00031R-NY for emacs-devel@gnu.org; Wed, 09 Feb 2005 12:22:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CyvXh-00030o-L3 for emacs-devel@gnu.org; Wed, 09 Feb 2005 12:22:21 -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 1CyvIr-0002uZ-Mc for emacs-devel@gnu.org; Wed, 09 Feb 2005 12:07:01 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1CyvGx-0005mD-7i for emacs-devel@gnu.org; Wed, 09 Feb 2005 18:05:03 +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 ; Wed, 09 Feb 2005 18:05:03 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Feb 2005 18:05:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 56 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:33146 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33146 Richard Stallman wrote: > 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. > > Could you adapt these to the current version of compile.el? Sure, here's the first part: 2005-02-09 Kevin Rodgers * progmodes/compile.el (compilation-disable-input): New option. (compilation-start): If it's non-nil, send an EOF to the process. *** compile.el~ Wed Feb 9 09:41:47 2005 --- compile.el Wed Feb 9 09:56:59 2005 *************** *** 860,865 **** --- 860,873 ---- (compilation-start command nil name-function highlight-regexp))) (make-obsolete 'compile-internal 'compilation-start) + (defcustom compilation-disable-input t + "*If non-nil, send end-of-file as compilation process input. + This only affects platforms that support asynchronous processes (see + start-process); synchronous compilation processes never accept input." + :type 'boolean + :group 'compilation + :version "22.1") + (defun compilation-start (command &optional mode name-function highlight-regexp) "Run compilation command COMMAND (low level interface). If COMMAND starts with a cd command, that becomes the `default-directory'. *************** *** 974,979 **** --- 982,989 ---- outbuf command)))) ;; Make the buffer's mode line show process state. (setq mode-line-process '(":%s")) + (when compilation-disable-input + (process-send-eof proc)) (set-process-sentinel proc 'compilation-sentinel) (set-process-filter proc 'compilation-filter) (set-marker (process-mark proc) (point) outbuf) -- Kevin Rodgers