Subject: bug#16988: closed (Re: bug#16988: 24.3.50; emacs -nw -Q --eval '(kill-emacs)' takes 2 seconds unless I hit a key)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 22 Apr 2014 20:37:03 +0000

Your bug report

#16988: 24.3.50; emacs -nw -Q --eval '(kill-emacs)' takes 2 seconds unless I hit a key

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 [email-masked].

-- 
16988: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16988
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#16988: 24.3.50; emacs -nw -Q --eval '(kill-emacs)' takes 2 seconds unless I hit a key
From: Stefan Monnier <[email-masked]>
To: Nicolas Richard <[email-masked]>
Cc: [email-masked]
Date: Tue, 22 Apr 2014 16:36:15 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

> If we have reasons to believe xterm will never reach e.g. version 1500,
> perhaps we can test for that.

I installed a patch along those lines, using 2000 as the "threshold".

        Stefan

Subject: 24.3.50; emacs -nw -Q --eval '(kill-emacs)' takes 2 seconds unless I hit a key
From: Nicolas Richard <[email-masked]>
To: [email-masked]
Date: Tue, 11 Mar 2014 16:22:21 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

With latest trunk:
$ time src/emacs -nw -Q --eval '(kill-emacs)'

real	0m2.064s
user	0m0.030s
sys	0m0.010s

If however I hit a key, emacs exits immediately.

with 24.3 (git commit 3a1ce0685) :
$ time src/emacs -nw -Q --eval '(kill-emacs)'

real	0m0.063s
user	0m0.030s
sys	0m0.012s

The '--eval' part is just there to make emacs exit asap.

Note that replacing -Q with --batch works fine.

-- 
Nico.