From: Ryan Johnson <ryanjohn@ece.cmu.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 7117@debbugs.gnu.org
Subject: bug#7117: 23.2.2 mangles terminal escape sequences
Date: Thu, 30 Sep 2010 18:11:58 +0200 [thread overview]
Message-ID: <4CA4B6CE.7060101@ece.cmu.edu> (raw)
In-Reply-To: <8362xnp76n.fsf@gnu.org>
On 9/30/2010 5:44 PM, Eli Zaretskii wrote:
>> Date: Thu, 30 Sep 2010 17:14:16 +0200
>> From: Ryan Johnson<ryanjohn@ece.cmu.edu>
>> CC: monnier@iro.umontreal.ca, 7117@debbugs.gnu.org
>>
>>>> From the above, it seems that scrolling past beginning or end of buffer
>>>> triggers an error, which I guess is somewhat justifiable.
>>> Indeed. Perhaps we need some infrastructure to ignore errors in this
>>> case (I assume `ignore-errors' won't help). Or maybe we should allow
>>> not to discard input when we signal an error. Or maybe discard-input
>>> should be smarter, and not discard partial escape sequences?
>> One thing I don't get is, I've been using emacs over painfully slow ssh
>> connections for literally years -- sometimes slow enough that keystrokes
>> take visible time to echo. This was never really an issue before.
> What would you expect to see, that would cause you think it was "an
> issue"? When Emacs is keyboard-driven, typing text and scrolling
> commands seldom happen in such a quick succession that hitting end of
> buffer while scrolling would discard text you typed meanwhile. And
> even if it did, how would you know for sure you actually typed it?
It's not just keyboard driven. It's a mouse-enabled terminal and the
mouse click/wheel actions cause the issues (each one generates a burst
of 6-12 characters). As you say, I don't think I've ever seen this
happen with keyboard input; pasting commands from a remote X clipboard
might have a similar effect, but I've never tried.
In the past, scrolling once or twice past buffer begin/end wasn't
guaranteed to dump garbage. It would just beep/flash most of the time,
and the slow network connection didn't seem to make it worse. Now, if
I'm not on intranet, virtually every scroll past-end will dump garbage
somewhere.
Also, the problem I hit this morning was not related to fast
typing/clicking over a slow connection. I was doing an ediff-files
session, and about every other time I clicked on a buffer to edit a
conflict, emacs would reward me with a mangled escape code... sometimes
where point had been and sometimes where it ended up. I wasn't typing
fast or clicking madly -- it was more like "a n n n n b n n <stare a
while> <click> <grumble> <clean up mess>"
The latter problem went away once I got to work and had a fast network;
and the former happens much less frequently here (unless I give the
wheel a really good spin, but that's understandable).
Ryan
next prev parent reply other threads:[~2010-09-30 16:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-27 12:10 bug#7117: 23.2.2 mangles terminal escape sequences Ryan Johnson
2010-09-27 20:52 ` Stefan Monnier
2010-09-28 4:53 ` Ryan Johnson
2010-09-30 11:37 ` Ryan Johnson
2010-09-30 14:39 ` Ryan Johnson
2010-09-30 14:59 ` Eli Zaretskii
2010-09-30 15:14 ` Ryan Johnson
2010-09-30 15:44 ` Eli Zaretskii
2010-09-30 16:11 ` Ryan Johnson [this message]
2022-02-07 0:33 ` Lars Ingebrigtsen
2022-03-07 2:37 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA4B6CE.7060101@ece.cmu.edu \
--to=ryanjohn@ece.cmu.edu \
--cc=7117@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 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).