From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#5321: - Interaction problem between Emacs and terminal paste functions Date: Fri, 29 Oct 2010 21:40:45 +0200 Message-ID: References: <926e00f51001051146i5d00ef50i102f216130f38f2c@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1288381951 16739 80.91.229.12 (29 Oct 2010 19:52:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2010 19:52:31 +0000 (UTC) Cc: 5321@debbugs.gnu.org To: James Mills Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 29 21:52:30 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBv01-0004eX-2Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Oct 2010 21:52:29 +0200 Original-Received: from localhost ([127.0.0.1]:60570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBv00-0006hi-Jz for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Oct 2010 15:52:28 -0400 Original-Received: from [140.186.70.92] (port=56103 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBuzA-00066P-3C for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 15:51:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBuqz-0005ht-9Q for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 15:43:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBuqz-0005ho-7Z for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 15:43:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PBul4-00064m-4L; Fri, 29 Oct 2010 15:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Oct 2010 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5321-submit@debbugs.gnu.org id=B5321.128838099723350 (code B ref 5321); Fri, 29 Oct 2010 19:37:02 +0000 Original-Received: (at 5321) by debbugs.gnu.org; 29 Oct 2010 19:36:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBukf-00064Z-Ba for submit@debbugs.gnu.org; Fri, 29 Oct 2010 15:36:37 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBukc-00064T-67 for 5321@debbugs.gnu.org; Fri, 29 Oct 2010 15:36:35 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 364AB1C0024D; Fri, 29 Oct 2010 21:40:46 +0200 (CEST) Original-Received: from igel.home (ppp-93-104-142-159.dynamic.mnet-online.de [93.104.142.159]) by mail.mnet-online.de (Postfix) with ESMTP id ED4B41C002FE; Fri, 29 Oct 2010 21:40:45 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id BFD86CA2A0; Fri, 29 Oct 2010 21:40:45 +0200 (CEST) X-Yow: I guess it was all a DREAM.. or an episode of HAWAII FIVE-O... In-Reply-To: (James Mills's message of "Fri, 29 Oct 2010 11:42:45 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 29 Oct 2010 15:37:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41246 Archived-At: James Mills 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."