all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Davis Herring" <herring@lanl.gov>
To: "Vincent Lefevre" <vincent@vinc17.org>,
	"Dan Nicolaescu" <dann@ics.uci.edu>,
	rms@gnu.org, "Stefan Monnier" <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: ";0c" in terminal with slow connections
Date: Thu, 6 Sep 2007 08:28:57 -0700 (PDT)	[thread overview]
Message-ID: <35537.128.165.123.18.1189092537.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <20070906125034.GE9115@prunille.vinc17.org>

>>   > It seems that the xterm is generating the proper response,
>>   > which goes back thru ssh to Emacs.
>>   >
>>   > So why doesn't Emacs process it correctly?
>>
>> Emacs uses a read-event with a timer for processing the response,
>> maybe the response does come back before the timer expires, so it is
>                                     ^^^^^^ after
>> processed as normal input.
>
> Yes, I think this is the problem, as it occurs only with connections
> having a high latency (such as ADSL). Is a timer really necessary?

This is of course what I was worried about (and is exactly Stefan's
example) in the thread about this a month ago:
http://lists.gnu.org/archive/html/emacs-devel/2007-08/msg00127.html

Would it be better to not have a timeout and just see whether the next
event read looks like an expected response from the terminal?  Of course,
if the user is typing while this code runs, the terminal's response may be
several characters later in the input stream...

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

  reply	other threads:[~2007-09-06 15:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-03 10:57 ";0c" in terminal with slow connections Vincent Lefevre
2007-09-04 16:45 ` Richard Stallman
2007-09-04 19:49   ` Stefan Monnier
2007-09-04 22:15     ` Vincent Lefevre
2007-09-05  6:16     ` Richard Stallman
2007-09-06  5:34       ` Dan Nicolaescu
2007-09-06 12:50         ` Vincent Lefevre
2007-09-06 15:28           ` Davis Herring [this message]
2007-09-07  6:32           ` Richard Stallman
2007-09-07  9:33             ` Vincent Lefevre
2007-09-07 14:13             ` Dan Nicolaescu
2007-09-08  7:00               ` Richard Stallman
2007-09-08  8:32                 ` Dan Nicolaescu
2007-09-08  8:21               ` Vincent Lefevre
2007-09-08  8:35                 ` Dan Nicolaescu
2007-09-08  9:32                   ` Vincent Lefevre
2007-09-08 16:17                     ` Dan Nicolaescu
2007-09-09 14:09                       ` Vincent Lefevre

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=35537.128.165.123.18.1189092537.squirrel@webmail.lanl.gov \
    --to=herring@lanl.gov \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    --cc=vincent@vinc17.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 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.