all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
Cc: "Kazu Yamamoto (山本和彦)" <kazu@iijlab.net>, emacs-devel@gnu.org
Subject: Re: buffering of process output
Date: Sun, 10 Oct 2004 16:09:16 +0200	[thread overview]
Message-ID: <jewtxyvf5f.fsf@sykes.suse.de> (raw)
In-Reply-To: <m38yafbfjt.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Sun, 10 Oct 2004 02:08:38 +0200")

storm@cua.dk (Kim F. Storm) writes:

> So I wonder if X somehow causes read from a pipe to buffer things
> differently [line buffering perhaps] (or the pipe to be setup
> differently)?

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.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

  reply	other threads:[~2004-10-10 14:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030716.123727.83083338.kazu@iijlab.net>
2004-10-10  0:08 ` buffering of process output Kim F. Storm
2004-10-10 14:09   ` Andreas Schwab [this message]
2004-10-10 22:36     ` Kim F. Storm
2004-10-11  8:37       ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jewtxyvf5f.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=emacs-devel@gnu.org \
    --cc=kazu@iijlab.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.