From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23819: 25.0.95; display botched badly in xterm window Date: Wed, 22 Jun 2016 17:54:44 +0300 Message-ID: <83h9cl5l57.fsf@gnu.org> References: <5769F17E.1020600@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466607410 5772 80.91.229.3 (22 Jun 2016 14:56:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2016 14:56:50 +0000 (UTC) Cc: 23819@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 22 16:56:35 2016 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 1bFjZq-00036V-BC for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Jun 2016 16:56:27 +0200 Original-Received: from localhost ([::1]:58916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFjZk-0004eH-BG for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Jun 2016 10:56:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFjZW-0004ZI-Ue for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 10:56:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFjZS-00043S-R0 for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 10:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFjZS-00043O-O5 for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 10:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bFjZS-0004k0-JM for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 10:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jun 2016 14:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23819-submit@debbugs.gnu.org id=B23819.146660734618179 (code B ref 23819); Wed, 22 Jun 2016 14:56:02 +0000 Original-Received: (at 23819) by debbugs.gnu.org; 22 Jun 2016 14:55:46 +0000 Original-Received: from localhost ([127.0.0.1]:51280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFjZC-0004j8-BP for submit@debbugs.gnu.org; Wed, 22 Jun 2016 10:55:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFjZB-0004iw-DW for 23819@debbugs.gnu.org; Wed, 22 Jun 2016 10:55:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFjZ0-00040K-CP for 23819@debbugs.gnu.org; Wed, 22 Jun 2016 10:55:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFjZ0-0003zz-5y; Wed, 22 Jun 2016 10:55:34 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1851 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bFjYy-00069I-48; Wed, 22 Jun 2016 10:55:32 -0400 In-reply-to: <5769F17E.1020600@cs.ucla.edu> (message from Paul Eggert on Wed, 22 Jun 2016 04:01:34 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:119932 Archived-At: > From: Paul Eggert > Date: Wed, 22 Jun 2016 04:01:34 +0200 > > This appears to be a relatively recent regression in the emacs-25 > branch. How recent? Can you estimate when this started to happen to you? The relevant file (xterm.el) hasn't been touched in months, except by you, for the paste feature. > I just now tried a similar recipe (without the '_'), and this time Emacs > contained the following text at the start of the (now-modified) > conf_post.h buffer: > > 1;3201;0chas/* conf_post.h --- configure.ac includes this via AH_BOTTOM > > and view-lossage showed the following: > C-s C-s C-s [isearch-forward] > ESC [ > [nil] > 1 [self-insert-command] > ; [c-electric-semi&comma] > 3 [self-insert-command] > 2 [self-insert-command] > 0 [self-insert-command] > 1 [self-insert-command] > ; [c-electric-semi&comma] > 0 [self-insert-command] > c [self-insert-command] > h [self-insert-command] > a [self-insert-command] > s [self-insert-command] > ESC x [execute-extended-command] > v [self-insert-command] > i [self-insert-command] > e [self-insert-command] > w [self-insert-command] > - [self-insert-command] > l [self-insert-command] The "ESC [ > 1;3201;0c" thingy is the response to query by xterm--query, see xterm--version-handler. Is it true that all these problems happen right in the beginning of a session? What happens if you wait at least 2 sec after starting a session, without typing any commands -- do these problems still happen? > My guess is that there is something wrong with the initial handshake > with the terminal, to find out its characteristics; if memory serves > this is something we've fiddled with in emacs-25 reasonably recently. Your guess is probably right, except that I don't see any fiddling in the Git log, certainly not recently. So if this indeed started happening recently, there must be some other factor at work here.