From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: buffering of process output Date: Mon, 11 Oct 2004 10:37:11 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <20030716.123727.83083338.kazu@iijlab.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097483976 28379 80.91.229.6 (11 Oct 2004 08:39:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2004 08:39:36 +0000 (UTC) Cc: =?utf-8?b?S2F6dSBZYW1hbQ==?=, emacs-devel@gnu.org, =?utf-8?b?KQ==?= , =?utf-8?b?b3RvIFwo5bGx5pys5ZKM5b2mXA==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 11 10:39:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CGviI-0000se-00 for ; Mon, 11 Oct 2004 10:39:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGvpE-0002Ua-HF for ged-emacs-devel@m.gmane.org; Mon, 11 Oct 2004 04:46:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGvnO-0001ll-53 for emacs-devel@gnu.org; Mon, 11 Oct 2004 04:44:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGvnJ-0001k1-8y for emacs-devel@gnu.org; Mon, 11 Oct 2004 04:44:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGvnH-0001jD-Dd for emacs-devel@gnu.org; Mon, 11 Oct 2004 04:44:36 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1CGvg0-00013L-5c for emacs-devel@gnu.org; Mon, 11 Oct 2004 04:37:04 -0400 Original-Received: (qmail 34139 invoked from network); 11 Oct 2004 08:37:02 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 11 Oct 2004 08:37:02 -0000 Original-To: Andreas Schwab In-Reply-To: (Kim F. Storm's message of "Mon, 11 Oct 2004 00:36:07 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28222 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28222 no-spam@cua.dk (Kim F. Storm) writes: > Andreas Schwab writes: > >> storm@cua.dk (Kim F. Storm) writes: >> >> It doesn't. It's because there is no call to XFlush during the read loop >> in call-process. See the comment in xterm.c: >> >> /* Remove calls to XFlush by defining XFlush to an empty replacement. >> Calls to XFlush should be unnecessary because the X output buffer >> is flushed automatically as needed by calls to XPending, >> XNextEvent, or XWindowEvent according to the XFlush man page. >> XTread_socket calls XPending. Removing XFlush improves >> performance. */ >> >> Thus redisplay_preserve_echo_area does not call XFlush any more. >> >> Andreas. > > Thanks for the explanation. I'll fix that. An explicit flush doesn't fix the problem -- it may have some effect, but output is still buffered (at least) two lines per update. I still see cases where the display is not really updated at all (as if redisplay doesn't see that the display need update). I'll keep investigating. -- Kim F. Storm http://www.cua.dk