From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: ";0c" in terminal with slow connections Date: Fri, 07 Sep 2007 07:13:46 -0700 Message-ID: <200709071413.l87EDkeI026980@oogie-boogie.ics.uci.edu> References: <20070903105723.GA4091@prunille.vinc17.org> <200709060534.l865YScm001171@oogie-boogie.ics.uci.edu> <20070906125034.GE9115@prunille.vinc17.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189174617 2620 80.91.229.12 (7 Sep 2007 14:16:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 14:16:57 +0000 (UTC) Cc: Vincent Lefevre , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 16:16:55 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ITedf-0008Jv-Rq for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 16:16:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITedd-0001M5-JA for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 10:16:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITedZ-0001Km-Fj for emacs-devel@gnu.org; Fri, 07 Sep 2007 10:16:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITedY-0001Jq-29 for emacs-devel@gnu.org; Fri, 07 Sep 2007 10:16:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITedX-0001Jj-NV for emacs-devel@gnu.org; Fri, 07 Sep 2007 10:16:43 -0400 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITedT-0001x6-7t; Fri, 07 Sep 2007 10:16:39 -0400 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id l87EDkeI026980; Fri, 7 Sep 2007 07:13:47 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Fri\, 07 Sep 2007 02\:32\:21 -0400") Original-Lines: 33 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-Detected-Kernel: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78155 Archived-At: Richard Stallman writes: > > 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? > > If there is a chance that the terminal won't respond at all, > the timer would enable Enacs to avoid hanging. Is that the > reason for the timer? The reason for the timer is to avoid hanging. > What is the purpose of making this query in the first place? The query is used to find out the version of xterm being used. The reason is to enable the modifyOtherKeys feature in new enough xterms. With that feature enabled key combinations C-. C-, and other keys that are normally not usable in a terminal generate distinct keys and emacs can bind them. Only newer versions of xterm can do this and AFAIK no other terminal emulators that set TERM to xterm can do it. If we just send the escape sequence to enable modifyOtherKeys on a terminal that does not support it, the escape sequence will appear as junk on the screen. > Maybe the best thing to do is get rid of it.