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: Thu, 13 Jun 2013 21:36:56 -0400 Message-ID: <3oa9mtwk07.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1371173829 2213 80.91.229.3 (14 Jun 2013 01:37:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2013 01:37:09 +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 03:37:09 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 1UnIwt-00009v-Sd for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jun 2013 03:37:07 +0200 Original-Received: from localhost ([::1]:36061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnIwt-0001lc-Du for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2013 21:37:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnIwp-0001l5-CN for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 21:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnIwo-0006f2-Fx for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 21:37:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnIwo-0006ey-CZ for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 21:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UnIwo-0007WE-4T for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 21:37:02 -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 01:37:02 +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.137117382128895 (code B ref 14615); Fri, 14 Jun 2013 01:37:02 +0000 Original-Received: (at 14615) by debbugs.gnu.org; 14 Jun 2013 01:37:01 +0000 Original-Received: from localhost ([127.0.0.1]:42649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnIwm-0007Vy-Mv for submit@debbugs.gnu.org; Thu, 13 Jun 2013 21:37:01 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:53559 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnIwj-0007Vp-Rf for 14615@debbugs.gnu.org; Thu, 13 Jun 2013 21:36:58 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UnIwi-0004sC-Rv; Thu, 13 Jun 2013 21:36:56 -0400 X-Spook: 22nd SAS Etacs class struggle Kosovo subversive bank X-Ran: 3@q+FgX~8">YBVDkiMjc|%`%jUc-g;]c3%i/4=8mF,S0{HQ">anm%vL?*{dxV;MkCr@4k` X-Hue: green X-Attribution: GM In-Reply-To: (Stefan Monnier's message of "Thu, 13 Jun 2013 21:17:38 -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:75093 Archived-At: Stefan Monnier wrote: > Could you add some `message's to xterm--query to see whether we take the > synchronous or the asynchronous route? Commenting out the ("\e[>" . xterm--version-handler) makes it fast again. Otherwise the slowness seems to be at this part: (while (and (< i (length (car handler))) (let ((evt (read-event nil nil 2))) When handler == ("\e[>" . xterm--version-handler), i = 0, read-event takes 2 seconds to return nil. > Also, can you try to set debug-on-quit and get a backtrace during the > 2s wait? Not informative: Debugger entered--Lisp error: (quit) xterm--query("^[[>0c" (("^[[?" . xterm--version-handler) ("^[[>" . xterm--version-handler))) terminal-init-xterm() tty-run-terminal-initialization(#) command-line() normal-top-level() > Stefan "who installed Debian's aterm, but whose aterm refuses to > start, giving him a BadWindow error instead" Mine is some ancient [1] self-compiled version on RHEL6. [1] Hah, I just checked: installed 6.5 years ago.