GNU bug report logs -
#5321
Interaction problem between Emacs and terminal paste functions
Previous Next
Reported by: James Mills <jameswmills <at> gmail.com>
Date: Tue, 5 Jan 2010 19:53:05 UTC
Severity: normal
Merged with 6571
Found in version 23.2
Fixed in versions 24.1, 23.3
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
James Mills <jameswmills <at> 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 <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
This bug report was last modified 14 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.