From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#14615: xterm--query results in slow -nw startup on some terminals Date: Fri, 14 Jun 2013 03:38:41 -0400 Message-ID: References: <3oa9mtwk07.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1371195552 32618 80.91.229.3 (14 Jun 2013 07:39:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2013 07:39:12 +0000 (UTC) Cc: 14615@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 14 09:39:11 2013 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 1UnObD-0000S3-UM for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jun 2013 09:39:08 +0200 Original-Received: from localhost ([::1]:50985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnObD-0005O9-AH for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jun 2013 03:39:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnOb9-0005O3-W5 for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2013 03:39:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnOb8-0007qd-Dp for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2013 03:39:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnOb8-0007qZ-Ah for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2013 03:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UnOb7-0002vN-KI for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2013 03:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jun 2013 07:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14615 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14615-submit@debbugs.gnu.org id=B14615.137119552811216 (code B ref 14615); Fri, 14 Jun 2013 07:39:01 +0000 Original-Received: (at 14615) by debbugs.gnu.org; 14 Jun 2013 07:38:48 +0000 Original-Received: from localhost ([127.0.0.1]:43075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnOat-0002up-IB for submit@debbugs.gnu.org; Fri, 14 Jun 2013 03:38:47 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:60295 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnOap-0002uR-VF for 14615@debbugs.gnu.org; Fri, 14 Jun 2013 03:38:45 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UnOan-0003Hd-Hh; Fri, 14 Jun 2013 03:38:41 -0400 X-Spook: genetic national information infrastructure SEAL Team 6 X-Ran: *7"l#/=R^NqH20|3q-jx5a.AsrlJH"3M]wT6x;-rKh#7lpL%xSm8bn/qIrmuB['x]M848j X-Hue: yellow X-Attribution: GM In-Reply-To: <3oa9mtwk07.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 13 Jun 2013 21:36:56 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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:75099 Archived-At: echo -e "\e[>0c" returns ^[[?1;2c for aterm (the Debian one runs fine for me and is also slow) ^[[>41;293;0c for xterm ^[[>1;2802;0c for xfce4-terminal Here's the values of i (car handler) evt unread-command-events followed by i (length (car handler) for xterm / xfce4-terminal: 0 "^[[?" 27 nil 1 "^[[?" 91 nil 2 "^[[?" 62 nil 2 3 0 "^[[>" 27 (91 62) 1 "^[[>" 91 (62) 2 "^[[>" 62 nil 3 3 and for aterm 0 "^[[?" 27 nil 1 "^[[?" 91 nil 2 "^[[?" 63 nil 3 3 0 "^[[>" nil nil 0 3 So the xterm case has stuff pushed into unread-command-events by the first handler, which is then there for the second handler to read. aterm does not, so the second handler has nothing to read. So I can make aterm fast, and xterm slow, by swapping the order of the ("\e[?" . xterm--version-handler) ("\e[>" . xterm--version-handler)