all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: James Mills <jameswmills@gmail.com>
Cc: 5321@debbugs.gnu.org
Subject: bug#5321: - Interaction problem between Emacs and terminal paste functions
Date: Fri, 29 Oct 2010 21:40:45 +0200	[thread overview]
Message-ID: <m2bp6crdmq.fsf@igel.home> (raw)
In-Reply-To: <AANLkTin1sQ2=ASSgT9ZnpDMJgWtfML+yJXwaqjcOzb64@mail.gmail.com> (James Mills's message of "Fri, 29 Oct 2010 11:42:45 -0500")

James Mills <jameswmills@gmail.com> writes:

> I wrote a script that prints out 1024 lines of output.  It looks like this:
>
> LINE 0
> LINE 1
> LINE 2
> ...
> LINE 1023
>
> If you copy this 1024 line output, and paste it into emacs running in
> a terminal (not the GUI), you will not see all 1024 lines.  In fact,
> toward the end, you will get random garbage.  For example, my last
> attempt printed:
>
> LINE 464
> LINE 465
> LINE 466
> LIN6
    ^ byte 4096

Apparently the pty buffer of your system has a size of 4096 bytes.  If
the terminal keeps stuffing more bytes into the master side of the pty
that buffer overflows and bytes are dropped until the process at the
other side of the pty had a chance to read some.  This is unlikely to be
fixable inside Emacs.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





  parent reply	other threads:[~2010-10-29 19:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-05 19:46 bug#5321: Interaction problem between Emacs and terminal paste functions James Mills
2010-10-29 16:42 ` bug#5321: - " James Mills
2010-10-29 19:12   ` Glenn Morris
2010-10-29 20:24     ` James Mills
2010-10-30  2:33     ` Johan Bockgård
2010-10-29 19:40   ` Andreas Schwab [this message]
2010-10-29 20:23     ` James Mills
2010-10-29 20:49       ` Andreas Schwab
2010-10-30  7:33         ` Jan Djärv
2010-10-30 21:09           ` James Mills
2010-10-31 18:53           ` Stefan Monnier
2010-11-01 11:32             ` Jan Djärv

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=m2bp6crdmq.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=5321@debbugs.gnu.org \
    --cc=jameswmills@gmail.com \
    /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.