From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: M-x compile output sometimes delayed Date: Fri, 5 Apr 2002 12:05:47 -0700 (MST) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200204051905.g35J5lR18956@aztec.santafe.edu> References: Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1018033580 13529 127.0.0.1 (5 Apr 2002 19:06:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 5 Apr 2002 19:06:20 +0000 (UTC) Cc: gnu-emacs-bug@moderators.isc.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16tZ2R-0003W5-00 for ; Fri, 05 Apr 2002 21:06:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16tZ2N-0007xw-00; Fri, 05 Apr 2002 14:06:15 -0500 Original-Received: from mailbox3.ucsd.edu ([132.239.1.55]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16tZ1z-0007sx-00 for ; Fri, 05 Apr 2002 14:05:51 -0500 Original-Received: from pele.santafe.edu (pele.santafe.edu [192.12.12.119]) by mailbox3.ucsd.edu (8.12.1/8.12.1) with ESMTP id g35J5noR011824 for ; Fri, 5 Apr 2002 11:05:49 -0800 (PST) Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g35J5la19157; Fri, 5 Apr 2002 12:05:47 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g35J5lR18956; Fri, 5 Apr 2002 12:05:47 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: jidanni@yahoo.com.tw In-Reply-To: (message from Dan Jacobson on 05 Apr 2002 05:24:33 +0800) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:427 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:427 I do M-x compile. I see the output in fits and starts, not every 4 seconds. That certainly should not happen. It does not fail for me, though. Can anyone reproduce this and debug it? Eli wrote: I think you forget about I/O buffering. Emacs runs subordinate processes via a pipe, and pipes are buffered by the system. Sure, but unless Emacs is busy, that should only result in a very short delay before Emacs wakes up, reads the data, puts it in the buffer, and displays it. If Emacs fails to do this promptly, that is indeed a bug in Emacs. In addition, Emacs only checks whether there was input from a subprocess when it's not busy doing other things, so that could account for additional delays. That is true, but I get the impression that Emacs was not doing any other computation in that test case. He said the processor was 99% idle, which it would not have been if Emacs had been running the whole time.