From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17497: 24.4.50; TTY menu glitches Date: Tue, 03 Jun 2014 09:43:04 -0400 Message-ID: References: <83vbslbuqr.fsf@gnu.org> <20140531200947.GA779@aerie.jexium-island.net> <83lhtgbrd6.fsf@gnu.org> <20140601152657.GA15078@aerie.jexium-island.net> <838upgbnra.fsf@gnu.org> <20140601171244.GA9362@aerie.jexium-island.net> <20140601171817.GB9362@aerie.jexium-island.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401803137 7381 80.91.229.3 (3 Jun 2014 13:45:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2014 13:45:37 +0000 (UTC) Cc: 17497@debbugs.gnu.org To: Thomas Dickey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 15:45:30 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wrp1u-0007kM-2F for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2014 15:45:30 +0200 Original-Received: from localhost ([::1]:53459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrp1t-0003F8-Bh for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2014 09:45:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrp0d-0001Jt-Gw for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 09:44:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wrp0V-0007Ev-0F for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 09:44:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrp0U-0007Eq-Ti for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 09:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wrp0U-0003yh-8l for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 09:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Jun 2014 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17497 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17497-submit@debbugs.gnu.org id=B17497.140180300315219 (code B ref 17497); Tue, 03 Jun 2014 13:44:02 +0000 Original-Received: (at 17497) by debbugs.gnu.org; 3 Jun 2014 13:43:23 +0000 Original-Received: from localhost ([127.0.0.1]:41804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wrozm-0003xI-ID for submit@debbugs.gnu.org; Tue, 03 Jun 2014 09:43:23 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:48314) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wroze-0003wr-O2 for 17497@debbugs.gnu.org; Tue, 03 Jun 2014 09:43:15 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVPO+IOj/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIxALNBIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArYGAIDvNVPO+IOj/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIxALNBIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="65561296" Original-Received: from 206-248-131-163.dsl.teksavvy.com (HELO pastel.home) ([206.248.131.163]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Jun 2014 09:43:04 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3894C60343; Tue, 3 Jun 2014 09:43:04 -0400 (EDT) In-Reply-To: <20140601171817.GB9362@aerie.jexium-island.net> (Thomas Dickey's message of "Sun, 01 Jun 2014 13:18:17 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89940 Archived-At: Hi Thomas, >> Most of the file, however, consists of repainting the menu. > By the way, since the menu covers only half the screen, there aren't > any general-purpose scrolling optimizations that would help. (xterm > does support left/right margins, which would be interesting to explore > in this area). What ncurses does when it's getting behind is to drop > updates - the typeahead feature: Currently, we're not concerned about optimization, just about tracking down a display glitch. The tricky part of this glitch is that if we record&replay Emacs's output, the "replay" does not suffer from the same glitch. So apparently the terminal emulator behaves differently in the "live" case than in the "replay" case for some reason. We tried to replay at different speeds to see if it was related to timing, but to no avail. To me, the next logical explanation is that the terminal emulator's behavior is influenced y the relative timing of *input* and output. For that reasons, your ncurses explanation is very interesting, yet I can't imagine how it can be directly related since our "record&replay" is done "after" ncurses, directly in the stream between Emacs's process and the terminal emulator. Do you have some other insight that could explain why the terminal emulator would react differently in the "live" case than in the "replay" case? Stefan