From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs -nw FILE incurs 2-second wait before displaying anything Date: Mon, 26 May 2014 22:04:41 +0300 Message-ID: <831tvgjr92.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1401131104 4517 80.91.229.3 (26 May 2014 19:05:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 May 2014 19:05:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jim Meyering Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 26 21:04:57 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Wp0Ce-00023U-4n for ged-emacs-devel@m.gmane.org; Mon, 26 May 2014 21:04:56 +0200 Original-Received: from localhost ([::1]:58132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp0Cd-0005UT-Jo for ged-emacs-devel@m.gmane.org; Mon, 26 May 2014 15:04:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp0CU-0005L6-LX for emacs-devel@gnu.org; Mon, 26 May 2014 15:04:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wp0CO-0006ld-Cz for emacs-devel@gnu.org; Mon, 26 May 2014 15:04:46 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:63047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp0CO-0006jc-5Q for emacs-devel@gnu.org; Mon, 26 May 2014 15:04:40 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N6700H003IYX800@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Mon, 26 May 2014 22:04:38 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6700HQT3NNUN30@a-mtaout23.012.net.il>; Mon, 26 May 2014 22:04:36 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172116 Archived-At: > From: Jim Meyering > Date: Mon, 26 May 2014 10:41:37 -0700 > > I've been annoyed with emacs -nw for a while (always building > from latest), and finally have investigated enough to report this. > > When I run emacs -nw on an existing file, e.g., > > echo xxx > foo > emacs -nw foo > > I see the normal start-up signs, then a two-second pause, > and then finally the contents of "foo" are displayed. > > However, if I type anything before that two-minute pause, > I avoid the delay. Likewise, if I run emacs without -nw, this > two-second pause does not appear. Looks like the code in xterm.el which asks the terminal something and waits for response.