* bug#5321: Interaction problem between Emacs and terminal paste functions
@ 2010-01-05 19:46 James Mills
2010-10-29 16:42 ` bug#5321: - " James Mills
0 siblings, 1 reply; 12+ messages in thread
From: James Mills @ 2010-01-05 19:46 UTC (permalink / raw)
To: bug-gnu-emacs
When using emacs from the terminal, pasting a largish (~>600K) amount
of text via the terminals paste functions results in an incomplete
paste of the text.
I've tried this in gnome-terminal, konsole, and xterm.
To recreate:
1) Visit http://cnn.com
2) View Source, and copy it
3) Open a terminal and start emacs (emacs -nw --no-splash)
4) Paste via the terminal's paste function (not emacs-specific *yank*)
The result (in my case) is the last 50 or so lines of the HTML.
Following the same procedure in vim/joe/nano/pico, and even echo and
cat result in the HTML in its entirety.
I've tried this in GNU Emacs 22.1.1, GNU Emacs 23.0.60.1, and GNU Emacs 21.3.1.
I've tried this on Ubuntu 8.04 and RHEL3 WS (remotely).
I popped into #emacs, and someone there was nice enough to verify that
they saw the same symptom using non-html text.
This is *not* a problem in the GUI versions of emacs.
Thanks so much.
James W. Mills
jameswmills@gmail.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
2010-01-05 19:46 bug#5321: Interaction problem between Emacs and terminal paste functions James Mills
@ 2010-10-29 16:42 ` James Mills
2010-10-29 19:12 ` Glenn Morris
2010-10-29 19:40 ` Andreas Schwab
0 siblings, 2 replies; 12+ messages in thread
From: James Mills @ 2010-10-29 16:42 UTC (permalink / raw)
To: 5321
All,
I would like to post a more easily tested scenario for this bug.
Additionally, I have tested it on:
version 23.1.90.1 on OS X
version 23.1.50.1 on Ubuntu 10.04 (emacs-snapshot)
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
LINE 507
LINE 508
LINE 629
LINE 630
LINE 631E 67
L 8
This does not happen in ANY other editor I have tried that uses the
terminal. But if course, I don't really want to use any other editor,
which is why I am pinging this report with additional test info. ;)
The test takes seconds to run, and I would sure appreciate some
movement on this bug.
Thanks!
James
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
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
1 sibling, 2 replies; 12+ messages in thread
From: Glenn Morris @ 2010-10-29 19:12 UTC (permalink / raw)
To: James Mills; +Cc: 5321
James Mills wrote:
> version 23.1.90.1 on OS X
> version 23.1.50.1 on Ubuntu 10.04 (emacs-snapshot)
These are ancient pretests for what became the 23.2 release.
These should not be used any more - use 23.2 instead.
(Your issue may well still be present in 23.2, I did not test.)
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
2010-10-29 16:42 ` bug#5321: - " James Mills
2010-10-29 19:12 ` Glenn Morris
@ 2010-10-29 19:40 ` Andreas Schwab
2010-10-29 20:23 ` James Mills
1 sibling, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2010-10-29 19:40 UTC (permalink / raw)
To: James Mills; +Cc: 5321
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."
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
2010-10-29 19:40 ` Andreas Schwab
@ 2010-10-29 20:23 ` James Mills
2010-10-29 20:49 ` Andreas Schwab
0 siblings, 1 reply; 12+ messages in thread
From: James Mills @ 2010-10-29 20:23 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 5321
> 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,
If this were the case, then why would other editors on the same
systems in the same terminal emulators not exhibit this behavior? All
other tested editors (vi, vim, nano, etc) pasted the entire buffer.
Thanks!
~james
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
2010-10-29 19:12 ` Glenn Morris
@ 2010-10-29 20:24 ` James Mills
2010-10-30 2:33 ` Johan Bockgård
1 sibling, 0 replies; 12+ messages in thread
From: James Mills @ 2010-10-29 20:24 UTC (permalink / raw)
To: Glenn Morris; +Cc: 5321
Thanks Glenn, I'll build 23.2 up on a few systems here and post back.
~james
On Fri, Oct 29, 2010 at 2:12 PM, Glenn Morris <rgm@gnu.org> wrote:
> James Mills wrote:
>
>> version 23.1.90.1 on OS X
>> version 23.1.50.1 on Ubuntu 10.04 (emacs-snapshot)
>
> These are ancient pretests for what became the 23.2 release.
> These should not be used any more - use 23.2 instead.
>
> (Your issue may well still be present in 23.2, I did not test.)
>
--
you've gotta live light enough to see the humor
and long enough to see some change
~ Ani DiFranco
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
2010-10-29 20:23 ` James Mills
@ 2010-10-29 20:49 ` Andreas Schwab
2010-10-30 7:33 ` Jan Djärv
0 siblings, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2010-10-29 20:49 UTC (permalink / raw)
To: James Mills; +Cc: 5321
James Mills <jameswmills@gmail.com> writes:
> If this were the case, then why would other editors on the same
> systems in the same terminal emulators not exhibit this behavior?
Timing.
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."
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
2010-10-29 19:12 ` Glenn Morris
2010-10-29 20:24 ` James Mills
@ 2010-10-30 2:33 ` Johan Bockgård
1 sibling, 0 replies; 12+ messages in thread
From: Johan Bockgård @ 2010-10-30 2:33 UTC (permalink / raw)
To: Glenn Morris; +Cc: 5321, James Mills
Glenn Morris <rgm@gnu.org> writes:
> James Mills wrote:
>
>> version 23.1.90.1 on OS X
>> version 23.1.50.1 on Ubuntu 10.04 (emacs-snapshot)
>
> These are ancient pretests for what became the 23.2 release.
> These should not be used any more - use 23.2 instead.
>
> (Your issue may well still be present in 23.2, I did not test.)
This sounds like http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6571
(Fixed in trunk.)
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
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
0 siblings, 2 replies; 12+ messages in thread
From: Jan Djärv @ 2010-10-30 7:33 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 5321, James Mills
Andreas Schwab skrev 2010-10-29 22.49:
> James Mills<jameswmills@gmail.com> writes:
>
>> If this were the case, then why would other editors on the same
>> systems in the same terminal emulators not exhibit this behavior?
>
> Timing.
>
Not really, see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6571. A
candidate for emacs 23 backport perhaps?
Jan d.
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
2010-10-30 7:33 ` Jan Djärv
@ 2010-10-30 21:09 ` James Mills
2010-10-31 18:53 ` Stefan Monnier
1 sibling, 0 replies; 12+ messages in thread
From: James Mills @ 2010-10-30 21:09 UTC (permalink / raw)
To: Jan Djärv; +Cc: Andreas Schwab, 5321
On Sat, Oct 30, 2010 at 2:33 AM, Jan Djärv <jan.h.d@swipnet.se> wrote:
>
>
> Andreas Schwab skrev 2010-10-29 22.49:
>>
>> James Mills<jameswmills@gmail.com> writes:
>>
>>> If this were the case, then why would other editors on the same
>>> systems in the same terminal emulators not exhibit this behavior?
>>
>> Timing.
>>
>
> Not really, see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6571. A
> candidate for emacs 23 backport perhaps?
>
> Jan d.
Johan, Jan, you were absolutely right!
The head works fine, and this bug can be marked as a duplicate of the
newer bug 6571. I would love to see a backport of this, but am happy
to build my own for now :)
Thanks to everyone for the helpful feedback!
~james
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
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
1 sibling, 1 reply; 12+ messages in thread
From: Stefan Monnier @ 2010-10-31 18:53 UTC (permalink / raw)
To: Jan Djärv; +Cc: Andreas Schwab, 5321, James Mills
> Not really, see
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6571. A candidate for emacs 23
> backport perhaps?
Indeed, please backport it to emacs-23.
Stefan
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#5321: - Interaction problem between Emacs and terminal paste functions
2010-10-31 18:53 ` Stefan Monnier
@ 2010-11-01 11:32 ` Jan Djärv
0 siblings, 0 replies; 12+ messages in thread
From: Jan Djärv @ 2010-11-01 11:32 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Andreas Schwab, 5321, James Mills
2010-10-31 19:53, Stefan Monnier skrev:
>> Not really, see
>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6571. A candidate for emacs 23
>> backport perhaps?
>
> Indeed, please backport it to emacs-23.
>
Done.
Jan D.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-11-01 11:32 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).