From unknown Wed Aug 20 05:16:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17607: emacs -nw FILE incurs 2-second wait before displaying anything Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 May 2014 04:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: monnier@iro.umontreal.ca, 17607@debbugs.gnu.org Cc: emacs-devel X-Debbugs-Original-To: Stefan Monnier , bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140116536511130 (code B ref -1); Tue, 27 May 2014 04:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 May 2014 04:36:05 +0000 Received: from localhost ([127.0.0.1]:32860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wp97M-0002tP-Gl for submit@debbugs.gnu.org; Tue, 27 May 2014 00:36:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57992) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wp97K-0002sq-Ab for submit@debbugs.gnu.org; Tue, 27 May 2014 00:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wp97D-0008WM-TR for submit@debbugs.gnu.org; Tue, 27 May 2014 00:35:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp97D-0008WI-Qs for submit@debbugs.gnu.org; Tue, 27 May 2014 00:35:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp97C-0003lT-KH for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 00:35:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wp97B-0008Vw-ND for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 00:35:54 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:43362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp97B-0008Vo-Gs; Tue, 27 May 2014 00:35:53 -0400 Received: by mail-wg0-f43.google.com with SMTP id l18so8858729wgh.14 for ; Mon, 26 May 2014 21:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=lLHWiiR6JpcpJs+KMvXaD4EvCc+2hLKIyvLeke+y1rs=; b=y9aABfUEhah3e3UVlcVy7rf5Gc0lyWvmLwHn29wga3iHCRv8hYM9xZ9ob+taVFeyEY VKH9qUmUcz3BDAlTBJetuRTbz83ZzoTqfBn0Suls4f0eU3JbFbBz19rsXME7x/uDy2v3 YGKRBxtIgBXo5mf5o65may8x8yKjDUUzs+8g9s8wOsxgmVAP0xO+QVKKN2S7KgxMJgTH sWyPYfPo2M9dBnyy2CCjVUXAtlkRThVAAZFDhgYl+yGGJ8ghsxrL4jAabADy0dGaNV+G dCBr4fh8Duittu8fFmsOBdah4t9ytK6iGk+h4MpLcyDGoBiuHwQxXCug+7khZcuev93e UCew== X-Received: by 10.194.175.70 with SMTP id by6mr36338453wjc.3.1401165352452; Mon, 26 May 2014 21:35:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.81.102 with HTTP; Mon, 26 May 2014 21:35:32 -0700 (PDT) In-Reply-To: References: From: Jim Meyering Date: Mon, 26 May 2014 21:35:32 -0700 X-Google-Sender-Auth: -PNNLxep-gvXRwYfegaDPclOAyc Message-ID: Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) On Mon, May 26, 2014 at 8:28 PM, Stefan Monnier wrote: >> This problem arises only with OS X's "Terminal" (2.3 (309)), but not >> with aterm, xterm, or iTerm. Here's the output of "C-h l": > >> ESC [ > 8 3 ; 4 0 0 0 3 ; 0 c C-h l > > Hmmm... can you check with the Emacs pretest (24.3.91 or checked out > from `emacs-24')? If you still see the problem there, please make it > a bug report so we can better track it. I confirm that the 2-second delay still strikes when using a just-bootstrapped-from-"emacs-24" binary and running src/emacs -nw -Q FILE. I see the same output as above for "C-h l". As mentioned above, it appears to be terminal specific, striking only when using OS X's "Terminal". The delay arises before the contents of the FILE is first displayed, and can be skipped if you know to type a key during that short interval. For some initial discussion, see this thread: https://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00445.html From debbugs-submit-bounces@debbugs.gnu.org Fri May 30 22:02:18 2014 Received: (at control) by debbugs.gnu.org; 31 May 2014 02:02:18 +0000 Received: from localhost ([127.0.0.1]:38194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WqYck-0004Ep-F8 for submit@debbugs.gnu.org; Fri, 30 May 2014 22:02:18 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:58312 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WqYcg-0004Ee-Ej for control@debbugs.gnu.org; Fri, 30 May 2014 22:02:15 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WqYcf-0002i3-P0 for control@debbugs.gnu.org; Fri, 30 May 2014 22:02:13 -0400 Date: Fri, 30 May 2014 22:02:13 -0400 Message-Id: Subject: control message for bug 17607 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) merge 17648 17607 From unknown Wed Aug 20 05:16:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17607: emacs -nw FILE incurs 2-second wait before displaying anything Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jun 2014 13:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Meyering Cc: 17607@debbugs.gnu.org Received: via spool by 17607-submit@debbugs.gnu.org id=B17607.140258014611182 (code B ref 17607); Thu, 12 Jun 2014 13:36:02 +0000 Received: (at 17607) by debbugs.gnu.org; 12 Jun 2014 13:35:46 +0000 Received: from localhost ([127.0.0.1]:45174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wv5AP-0002uG-BC for submit@debbugs.gnu.org; Thu, 12 Jun 2014 09:35:45 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:60349) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wv5AJ-0002tt-T2 for 17607@debbugs.gnu.org; Thu, 12 Jun 2014 09:35:41 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIxALNBIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIxALNBIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="66667476" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Jun 2014 09:35:33 -0400 Received: by pastel.home (Postfix, from userid 20848) id 94466601B7; Thu, 12 Jun 2014 09:35:33 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Thu, 12 Jun 2014 09:35:33 -0400 In-Reply-To: (Jim Meyering's message of "Mon, 26 May 2014 21:35:32 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) [ Please don't crosspost messages between emacs-devel and bug-gnu-emacs. Or between bug-gnu-emacs and pretty much anything else. ] >>> This problem arises only with OS X's "Terminal" (2.3 (309)), but not >>> with aterm, xterm, or iTerm. Here's the output of "C-h l": >>> ESC [ > 8 3 ; 4 0 0 0 3 ; 0 c C-h l >> Hmmm... can you check with the Emacs pretest (24.3.91 or checked out >> from `emacs-24')? If you still see the problem there, please make it >> a bug report so we can better track it. > I confirm that the 2-second delay still strikes when using a > just-bootstrapped-from-"emacs-24" binary and running > src/emacs -nw -Q FILE. I see the same output as above for "C-h l". Does the patch below fix the 2-second wait? Stefan === modified file 'lisp/term/xterm.el' --- lisp/term/xterm.el 2014-04-22 20:35:33 +0000 +++ lisp/term/xterm.el 2014-06-12 13:30:56 +0000 @@ -509,6 +509,10 @@ ;; Gnome terminal 3.6.1 reports 1;3406;0 ;; Gnome terminal 2.32.1 reports 1;2802;0 (setq version 200)) + (when (and (> version 2000) (equal (match-string 1 str) "83")) + ;; OSX's Terminal.app (version 2.3 (309), which returns 83;40003;0) + ;; seems to also lack support for some of these. + (setq version 240)) ;; If version is 242 or higher, assume the xterm supports ;; reporting the background color (TODO: maybe earlier ;; versions do too...) From unknown Wed Aug 20 05:16:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17607: emacs -nw FILE incurs 2-second wait before displaying anything Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jun 2014 00:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 17607@debbugs.gnu.org Received: via spool by 17607-submit@debbugs.gnu.org id=B17607.140261976531754 (code B ref 17607); Fri, 13 Jun 2014 00:37:02 +0000 Received: (at 17607) by debbugs.gnu.org; 13 Jun 2014 00:36:05 +0000 Received: from localhost ([127.0.0.1]:45979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvFTQ-0008G6-R3 for submit@debbugs.gnu.org; Thu, 12 Jun 2014 20:36:05 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:50068) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvFTN-0008FP-Pk for 17607@debbugs.gnu.org; Thu, 12 Jun 2014 20:36:02 -0400 Received: by mail-wi0-f171.google.com with SMTP id n15so34277wiw.16 for <17607@debbugs.gnu.org>; Thu, 12 Jun 2014 17:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=twyZiNEFJnIQRDeW7ZDSGsco6drD2TpARJaK1FYraYc=; b=Chrmb/CKESohK0HX5+1rUfqZ+buVVwN7lpiycglHVrMj1wmDJ+vQCqccfckEmf2Yet AyCDwuTiaAxJRIOwBpbN0Y/gdn+tD6b+Tss1G0ofrjIc2bVcpU9ROQQWLrOIKBVcCeL7 dmsoKB1gIuNcxqSG1HpCYOqPLz+wR1HRvQV6yx45tNWY3TuWRFsdop/nubrTC2crfeD/ 1XWYyTe1lk3X0Zg4dSSMxCmVADbC9147EQWVmZcIf1XodfpaEwgN2VHN4iN3AeSjDJyR H5LUv4BznfT+7BrzBHk4rw4UxXjl2PPhAeAIXMHUHKBOIQb8Cnw0R8x2x81egXgzFBAm ZvNw== X-Received: by 10.180.84.7 with SMTP id u7mr10599860wiy.31.1402619755933; Thu, 12 Jun 2014 17:35:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.34.226 with HTTP; Thu, 12 Jun 2014 17:35:34 -0700 (PDT) In-Reply-To: References: From: Jim Meyering Date: Thu, 12 Jun 2014 17:35:34 -0700 X-Google-Sender-Auth: Si6LqkLUjzakCh2fxzAgH7mJMws Message-ID: Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Thu, Jun 12, 2014 at 6:35 AM, Stefan Monnier wrote: ... > Does the patch below fix the 2-second wait? ... Yes, it does. Thank you! From unknown Wed Aug 20 05:16:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jim Meyering Subject: bug#17607: closed (Re: emacs -nw FILE incurs 2-second wait before displaying anything) Message-ID: References: X-Gnu-PR-Message: they-closed 17607 X-Gnu-PR-Package: emacs Reply-To: 17607@debbugs.gnu.org Date: Fri, 13 Jun 2014 15:08:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1402672083-18274-1" This is a multi-part message in MIME format... ------------=_1402672083-18274-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17607: emacs -nw FILE incurs 2-second wait before displaying anything which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17607@debbugs.gnu.org. --=20 17607: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17607 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1402672083-18274-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17607-done) by debbugs.gnu.org; 13 Jun 2014 15:07:50 +0000 Received: from localhost ([127.0.0.1]:46780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvT4z-0004k5-J6 for submit@debbugs.gnu.org; Fri, 13 Jun 2014 11:07:50 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:35289) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvT4s-0004jd-4o for 17607-done@debbugs.gnu.org; Fri, 13 Jun 2014 11:07:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMQCzQSFBgNJIgECNIZF456B4Q4BKkZgWqDTCE X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMQCzQSFBgNJIgECNIZF456B4Q4BKkZgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="66779010" Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Jun 2014 11:07:32 -0400 Received: by ceviche.home (Postfix, from userid 20848) id DC1F96652E; Fri, 13 Jun 2014 11:07:31 -0400 (EDT) From: Stefan Monnier To: Jim Meyering Subject: Re: emacs -nw FILE incurs 2-second wait before displaying anything Message-ID: References: Date: Fri, 13 Jun 2014 11:07:31 -0400 In-Reply-To: (Jim Meyering's message of "Thu, 12 Jun 2014 17:35:34 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17607-done Cc: 17607-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> Does the patch below fix the 2-second wait? > Yes, it does. Thank you! Thanks, installed into emacs-24. Stefan ------------=_1402672083-18274-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 May 2014 04:36:05 +0000 Received: from localhost ([127.0.0.1]:32860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wp97M-0002tP-Gl for submit@debbugs.gnu.org; Tue, 27 May 2014 00:36:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57992) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wp97K-0002sq-Ab for submit@debbugs.gnu.org; Tue, 27 May 2014 00:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wp97D-0008WM-TR for submit@debbugs.gnu.org; Tue, 27 May 2014 00:35:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp97D-0008WI-Qs for submit@debbugs.gnu.org; Tue, 27 May 2014 00:35:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp97C-0003lT-KH for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 00:35:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wp97B-0008Vw-ND for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 00:35:54 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:43362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp97B-0008Vo-Gs; Tue, 27 May 2014 00:35:53 -0400 Received: by mail-wg0-f43.google.com with SMTP id l18so8858729wgh.14 for ; Mon, 26 May 2014 21:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=lLHWiiR6JpcpJs+KMvXaD4EvCc+2hLKIyvLeke+y1rs=; b=y9aABfUEhah3e3UVlcVy7rf5Gc0lyWvmLwHn29wga3iHCRv8hYM9xZ9ob+taVFeyEY VKH9qUmUcz3BDAlTBJetuRTbz83ZzoTqfBn0Suls4f0eU3JbFbBz19rsXME7x/uDy2v3 YGKRBxtIgBXo5mf5o65may8x8yKjDUUzs+8g9s8wOsxgmVAP0xO+QVKKN2S7KgxMJgTH sWyPYfPo2M9dBnyy2CCjVUXAtlkRThVAAZFDhgYl+yGGJ8ghsxrL4jAabADy0dGaNV+G dCBr4fh8Duittu8fFmsOBdah4t9ytK6iGk+h4MpLcyDGoBiuHwQxXCug+7khZcuev93e UCew== X-Received: by 10.194.175.70 with SMTP id by6mr36338453wjc.3.1401165352452; Mon, 26 May 2014 21:35:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.81.102 with HTTP; Mon, 26 May 2014 21:35:32 -0700 (PDT) In-Reply-To: References: From: Jim Meyering Date: Mon, 26 May 2014 21:35:32 -0700 X-Google-Sender-Auth: -PNNLxep-gvXRwYfegaDPclOAyc Message-ID: Subject: Re: emacs -nw FILE incurs 2-second wait before displaying anything To: Stefan Monnier , bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: emacs-devel X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) On Mon, May 26, 2014 at 8:28 PM, Stefan Monnier wrote: >> This problem arises only with OS X's "Terminal" (2.3 (309)), but not >> with aterm, xterm, or iTerm. Here's the output of "C-h l": > >> ESC [ > 8 3 ; 4 0 0 0 3 ; 0 c C-h l > > Hmmm... can you check with the Emacs pretest (24.3.91 or checked out > from `emacs-24')? If you still see the problem there, please make it > a bug report so we can better track it. I confirm that the 2-second delay still strikes when using a just-bootstrapped-from-"emacs-24" binary and running src/emacs -nw -Q FILE. I see the same output as above for "C-h l". As mentioned above, it appears to be terminal specific, striking only when using OS X's "Terminal". The delay arises before the contents of the FILE is first displayed, and can be skipped if you know to type a key during that short interval. For some initial discussion, see this thread: https://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00445.html ------------=_1402672083-18274-1-- From unknown Wed Aug 20 05:16:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Gregor Zattler Subject: bug#17648: closed (Re: emacs -nw FILE incurs 2-second wait before displaying anything) Message-ID: References: <877g526bt3.fsf@boo.workgroup> X-Gnu-PR-Message: they-closed 17648 X-Gnu-PR-Package: emacs Reply-To: 17648@debbugs.gnu.org Date: Fri, 13 Jun 2014 15:08:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1402672083-18274-3" This is a multi-part message in MIME format... ------------=_1402672083-18274-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17607: 24.4.50; regression: emacsclient under screen (1) slow for some val= ues of TERM which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17648@debbugs.gnu.org. --=20 17607: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17607 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1402672083-18274-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17607-done) by debbugs.gnu.org; 13 Jun 2014 15:07:50 +0000 Received: from localhost ([127.0.0.1]:46780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvT4z-0004k5-J6 for submit@debbugs.gnu.org; Fri, 13 Jun 2014 11:07:50 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:35289) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvT4s-0004jd-4o for 17607-done@debbugs.gnu.org; Fri, 13 Jun 2014 11:07:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMQCzQSFBgNJIgECNIZF456B4Q4BKkZgWqDTCE X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMQCzQSFBgNJIgECNIZF456B4Q4BKkZgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="66779010" Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Jun 2014 11:07:32 -0400 Received: by ceviche.home (Postfix, from userid 20848) id DC1F96652E; Fri, 13 Jun 2014 11:07:31 -0400 (EDT) From: Stefan Monnier To: Jim Meyering Subject: Re: emacs -nw FILE incurs 2-second wait before displaying anything Message-ID: References: Date: Fri, 13 Jun 2014 11:07:31 -0400 In-Reply-To: (Jim Meyering's message of "Thu, 12 Jun 2014 17:35:34 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17607-done Cc: 17607-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> Does the patch below fix the 2-second wait? > Yes, it does. Thank you! Thanks, installed into emacs-24. Stefan ------------=_1402672083-18274-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 31 May 2014 00:18:55 +0000 Received: from localhost ([127.0.0.1]:38169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WqX0g-0000t7-C5 for submit@debbugs.gnu.org; Fri, 30 May 2014 20:18:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43107) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WqX0d-0000sq-N2 for submit@debbugs.gnu.org; Fri, 30 May 2014 20:18:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WqX0Q-0007mx-Ph for submit@debbugs.gnu.org; Fri, 30 May 2014 20:18:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqX0Q-0007ms-MN for submit@debbugs.gnu.org; Fri, 30 May 2014 20:18:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqX0K-00062Q-4t for bug-gnu-emacs@gnu.org; Fri, 30 May 2014 20:18:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WqX0C-0007kB-36 for bug-gnu-emacs@gnu.org; Fri, 30 May 2014 20:18:32 -0400 Received: from mout.gmx.net ([212.227.17.21]:62398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqX0B-0007jg-Oy for bug-gnu-emacs@gnu.org; Fri, 30 May 2014 20:18:24 -0400 Received: from boo.workgroup ([87.185.169.72]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M3igT-1WYrUb1MtV-00rDER for ; Sat, 31 May 2014 02:18:20 +0200 Received: from grfz by boo.workgroup with local (Exim 4.82) (envelope-from ) id 1WqWzo-0006px-Tl; Sat, 31 May 2014 02:18:00 +0200 From: Gregor Zattler To: bug-gnu-emacs@gnu.org Subject: 24.4.50; regression: emacsclient under screen (1) slow for some values of TERM Date: Sat, 31 May 2014 02:18:00 +0200 Message-ID: <877g526bt3.fsf@boo.workgroup> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:lrgGogwV1oAhPD86Rev7Y/NljYBPv9+4IVQXgsBC6W/EAbwjVEe uwy/Z6juxkf9P0KpDbecT3eJoJbR/5vcHAu9oRWqbgNH+XlaMwrzn6/N4lRWSdoF4FgrKi4 jNAdxYvOan+TlQBZz9/D/wBa0ZMqe6aUbTUcHhiKFwIA1fbCP/SEd+ZrVKRo/ruezUB/0bY aElpiJ/hxi9VB8smriTEA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Dear emacs developers, under screen with emacs from repo emacsclient -t almost instantaneously shows the scratch buffer (or some other last used buffer), then for 2 secs nothing happens, then the window shows the buffer which corresponds to some-file-name and one is able to work with it. This happens for some values of TERM. recipe: emacs-snapshot -Q --daemon now do /usr/bin/time screen -m -c /dev/null -T $TERMINALNAME sh -c "emacsclient.emacs-snapshot -n -t /tmp/emacsslow/AA${RANDOM}${RANDOM}BB ; emacsclient.emacs-snapshot --eval '(server-edit)'" for different values of TERMINALNAME Here is a sorted list of elapsed times for terminfo definitions from my debian testing system (the elapsed times in this list are the median of 11 rounds with each terminfo definiton): 0:00.05elapsed screen2 0:00.05elapsed screen3 0:00.05elapsed screen.Eterm 0:00.05elapsed screen.gnome 0:00.05elapsed screen.konsole 0:00.05elapsed screen.linux 0:00.05elapsed screen.mlterm 0:00.05elapsed screen.mrxvt 0:00.05elapsed screen.rxvt 0:00.05elapsed screen.teraterm 0:00.05elapsed screen.vte 0:00.05elapsed screen.xterm-new 0:00.05elapsed screen.xterm-r6 some of them are *much* slower: 0:02.06elapsed screen-16color 0:02.07elapsed screen-16color-bce 0:02.07elapsed screen-16color-s 0:02.07elapsed screen-bce.Eterm 0:02.07elapsed screen-bce.gnome 0:02.07elapsed screen-bce.konsole 0:02.07elapsed screen-bce.linux 0:02.07elapsed screen-bce.mlterm 0:02.07elapsed screen-bce.mrxvt 0:02.07elapsed screen-bce.rxvt 0:02.08elapsed screen-256color-s 0:02.09elapsed screen-256c-bce-s --> screen-256color-bce-s Sadly I use the last one, which is a link to the actual terminfo file since screen (1) does not accept TERM values with a length of more then 20 characters. I did the same timing tests with emacs24 as packaged for debian testing: 0:00.02elapsed screen3 0:00.02elapsed screen.mrxvt 0:00.03elapsed screen-16color 0:00.03elapsed screen-16color-bce 0:00.03elapsed screen-16color-s 0:00.03elapsed screen2 0:00.03elapsed screen-bce.Eterm 0:00.03elapsed screen-bce.gnome 0:00.03elapsed screen-bce.konsole 0:00.03elapsed screen-bce.linux 0:00.03elapsed screen-bce.mlterm 0:00.03elapsed screen-bce.mrxvt 0:00.03elapsed screen-bce.rxvt 0:00.03elapsed screen.gnome 0:00.03elapsed screen.konsole 0:00.03elapsed screen.linux 0:00.03elapsed screen.mlterm 0:00.03elapsed screen.rxvt 0:00.03elapsed screen.teraterm 0:00.03elapsed screen.vte 0:00.03elapsed screen.xterm-new 0:00.04elapsed screen-256c-bce-s 0:00.04elapsed screen-256color-s 0:00.04elapsed screen.xterm-r6 0:00.10elapsed screen.Eterm There is no such 2 secs delay. I did a git bisect on the repo and this produced: 6607a79c6e7c7554059557c0db78c26c57314f24 is the first bad commit commit 6607a79c6e7c7554059557c0db78c26c57314f24 Author: Daniel Colascione Date: Thu Apr 17 00:54:23 2014 -0700 2014-04-17 Daniel Colascione Add support for bracketed paste mode; add infrastructure for managing terminal mode enabling and disabling automatically. * xt-mouse.el: (xterm-mouse-mode): Simplify. (xterm-mouse-tracking-enable-sequence) (xterm-mouse-tracking-disable-sequence): New constants. (turn-on-xterm-mouse-tracking-on-terminal) (turn-off-xterm-mouse-tracking-on-terminal): Use tty-mode-set-strings and tty-mode-reset-strings terminal parameters instead of random hooks. (turn-on-xterm-mouse-tracking) (turn-off-xterm-mouse-tracking): Delete. * term/xterm.el (xterm-extra-capabilities): Fix bitrotted comment. (xterm-paste-ending-sequence): New constant. (xterm-paste): New command used for bracketed paste support. (xterm-modify-other-keys-terminal-list): Delete obsolete variable. (terminal-init-xterm-bracketed-paste-mode): New function. (terminal-init-xterm): Call it. (terminal-init-xterm-modify-other-keys): Use tty-mode-set-strings and tty-mode-reset-strings instead of random hooks. (xterm-turn-on-modify-other-keys) (xterm-turn-off-modify-other-keys) (xterm-remove-modify-other-keys): Delete obsolete functions. * term/screen.el: Rewrite to just use the xterm code. Add copyright notice. Mention tmux. :040000 040000 35e7957f61e4d66ebd209cd1c4e866a28d4b2530 ab84f10010ef069579268a06a8cb87297a99222f M doc :040000 040000 6e356fc3442cded91abe85539d87c010a5b55b74 97ed2cb729e1981da13e3087f31ca1d889d207f5 M etc :040000 040000 1f0fa9c7b097af1630c809920c763294996bc9e1 e2cb31100399d2a62f34c29014f588c097033f8d M lisp :040000 040000 502e344d50623e95ecd35483334810ab76f9f5da f2e77d45d90ad1964f395e75cbd318ee01e4b7a3 M src bisect run success 0 grfz@boo:~/src/emacs$ git bisect log git bisect start # bad: [70ae6e9f3ca829e4a22290a8f2434343e2f0e127] * admin/notes/changelogs: Mention `quoting'. git bisect bad 70ae6e9f3ca829e4a22290a8f2434343e2f0e127 # good: [87cc4be37367f4039a1fb6bda8ba681bb279475f] Bump version to 24.3.91 git bisect good 87cc4be37367f4039a1fb6bda8ba681bb279475f # bad: [83e103c61b9d775709624a44e7ed5b20ba44847d] Improve Scheme font-locking for (define ((foo ...) ...) ...). git bisect bad 83e103c61b9d775709624a44e7ed5b20ba44847d # good: [5910501252ec0067857e36c1d73e7b522d83b861] * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor out eldoc-documentation-function-default. (eldoc-documentation-function-default): New function. (eldoc-documentation-function): Change value. git bisect good 5910501252ec0067857e36c1d73e7b522d83b861 # good: [f0f301dd19212bf133aacd7fd592e126958309d8] Merge from emacs-24; up to r116940 git bisect good f0f301dd19212bf133aacd7fd592e126958309d8 # bad: [069e400fbf7d0e404438a922c9f5839b1d4902da] Tweak documentation for previous change git bisect bad 069e400fbf7d0e404438a922c9f5839b1d4902da # good: [6f100a7a58857ce2838a11eec596073837ba7858] Remove DATA_SEG_BITS. git bisect good 6f100a7a58857ce2838a11eec596073837ba7858 # good: [085874f070af05df7a80b8e10cb5f88696bd685e] * GNUmakefile: Speed up 'make bootstrap' in fresh checkout. git bisect good 085874f070af05df7a80b8e10cb5f88696bd685e # bad: [ed507155bec59e1dd1844b4593d75aec1906b594] Merge from emacs-24; up to r116982 git bisect bad ed507155bec59e1dd1844b4593d75aec1906b594 # bad: [5c1915d10b3716879785fe49f5cfe20beeb37090] * term.c (tty_send_additional_strings): No need to fflush here, git bisect bad 5c1915d10b3716879785fe49f5cfe20beeb37090 # bad: [6607a79c6e7c7554059557c0db78c26c57314f24] 2014-04-17 Daniel Colascione git bisect bad 6607a79c6e7c7554059557c0db78c26c57314f24 # first bad commit: [6607a79c6e7c7554059557c0db78c26c57314f24] 2014-04-17 Daniel Colascione I have no idea if or how this is related to the problem at hand, but screen.el was changed, therefore I hope this info helps. I wished, emacsclient would open files be fast again. I would be happy to answer questions or do some testing if someone provides me with instruction. Thanks for your attention, Gregor ------------=_1402672083-18274-3-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 12:22:06 2014 Received: (at control) by debbugs.gnu.org; 17 Jun 2014 16:22:06 +0000 Received: from localhost ([127.0.0.1]:50831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Www93-0007MW-FX for submit@debbugs.gnu.org; Tue, 17 Jun 2014 12:22:06 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:36991) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Www8r-0007Lx-Jh; Tue, 17 Jun 2014 12:21:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgwUJgRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqgXGBWyE X-IPAS-Result: ArgGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgwUJgRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqgXGBWyE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="67114023" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Jun 2014 12:21:43 -0400 Received: by pastel.home (Postfix, from userid 20848) id A22A8615CF; Tue, 17 Jun 2014 12:21:43 -0400 (EDT) From: Stefan Monnier To: Jim Meyering Subject: Re: bug#17648: 24.4.50; regression: emacsclient under screen (1) slow for some values of TERM Message-ID: References: <877g526bt3.fsf@boo.workgroup> <20140601085123.GA13373@boo.workgroup> Date: Tue, 17 Jun 2014 12:21:43 -0400 In-Reply-To: (Jim Meyering's message of "Tue, 17 Jun 2014 08:17:27 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: control Cc: 17648@debbugs.gnu.org, Daniel Colascione X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) forcemerge 17607 17648 thanks > Yes. Sorry for the inaccuracy. There was indeed a screen > intermediary between the OSX Terminal.app and my emacs process. Aha! So the problem was not with Terminal.app but with Screen. So presumably this bug should also now be fixed in emacs-24. Stefan