From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: grep-use-null-device Date: Tue, 30 Aug 2005 01:43:48 +0300 Organization: JURTA Message-ID: <87ll2kiczv.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125356381 27384 80.91.229.2 (29 Aug 2005 22:59:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2005 22:59:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 00:59:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9sZn-0000mO-BC for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2005 00:58:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9sZt-0006kC-Bv for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2005 18:58:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E9sZW-0006hH-0w for emacs-devel@gnu.org; Mon, 29 Aug 2005 18:57:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E9sZM-0006af-AF for emacs-devel@gnu.org; Mon, 29 Aug 2005 18:57:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9sZL-0006V1-1E for emacs-devel@gnu.org; Mon, 29 Aug 2005 18:57:35 -0400 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E9sTD-0000fK-3A for emacs-devel@gnu.org; Mon, 29 Aug 2005 18:51:15 -0400 Original-Received: from mail.neti.ee (80-235-39-8-dsl.mus.estpak.ee [80.235.39.8]) by Relayhost1.neti.ee (Postfix) with ESMTP id DF12E1628 for ; Tue, 30 Aug 2005 01:49:01 +0300 (EEST) Original-To: emacs-devel@gnu.org In-Reply-To: (Eli Zaretskii's message of "Sat, 20 Aug 2005 15:22:41 +0300") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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 Xref: news.gmane.org gmane.emacs.devel:42488 Archived-At: >> Thanks for posting the URL, though it seems that the web interface at >> lists.gnu.org eats multiple spaces. Here is the Gmane URL for the >> original post from Kevin Rodgers with correct indentation: >> >> http://article.gmane.org/gmane.emacs.devel/33146 >> >> Can someone please install it? > > Done. With this change, when grep finishes too quickly (for example, after searching in a nonexistent file), `process-send-eof' fails with the following error: Debugger entered--Lisp error: (error "Process grep not running") process-send-eof(#) compilation-start("grep -inH -e search file" grep-mode nil nil) grep("grep -inH -e search file") call-interactively(grep) execute-extended-command(nil) call-interactively(execute-extended-command) `compilation-start' needs to check if the process is running before calling `process-send-eof': Index: lisp/progmodes/compile.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/progmodes/compile.el,v retrieving revision 1.378 diff -c -r1.378 compile.el *** lisp/progmodes/compile.el 27 Aug 2005 14:38:21 -0000 1.378 --- lisp/progmodes/compile.el 29 Aug 2005 22:18:30 -0000 *************** *** 1032,1038 **** 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) --- 1032,1039 ---- outbuf command)))) ;; Make the buffer's mode line show process state. (setq mode-line-process '(":%s")) ! (when (and compilation-disable-input ! (eq (process-status proc) 'run)) (process-send-eof proc)) (set-process-sentinel proc 'compilation-sentinel) (set-process-filter proc 'compilation-filter) -- Juri Linkov http://www.jurta.org/emacs/