From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alain Schneble Newsgroups: gmane.emacs.devel Subject: Re: Revise etc/DEBUG documentation Date: Tue, 6 Sep 2016 12:06:24 +0200 Message-ID: <86a8fls5pb.fsf@realize.ch> References: <864m5xtgtf.fsf@realize.ch> <838tv9dxu1.fsf@gnu.org> <86zinpruq0.fsf@realize.ch> <8360qddpc7.fsf@gnu.org> <86vaycslct.fsf@realize.ch> <83mvjnd8uw.fsf@gnu.org> <86mvjnske9.fsf@realize.ch> <831t0ycnhd.fsf@gnu.org> <86inuarw69.fsf@realize.ch> <83r38xbvk8.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473156505 16680 195.159.176.226 (6 Sep 2016 10:08:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2016 10:08:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 06 12:08:17 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhDIe-0003Ob-F4 for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2016 12:08:16 +0200 Original-Received: from localhost ([::1]:60413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhDIc-0001ed-2S for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2016 06:08:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhDI6-0001dV-3j for emacs-devel@gnu.org; Tue, 06 Sep 2016 06:07:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhDI3-0007M2-G7 for emacs-devel@gnu.org; Tue, 06 Sep 2016 06:07:41 -0400 Original-Received: from clientmail.realize.ch ([46.140.89.53]:4324) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1bhDHy-0007LO-EH; Tue, 06 Sep 2016 06:07:34 -0400 Original-Received: from rintintin.hq.realize.ch.lan.rit ([192.168.0.105]) by clientmail.realize.ch ; Tue, 6 Sep 2016 12:07:19 +0200 Original-Received: from MYNGB (192.168.250.224) by rintintin.hq.realize.ch.lan.rit (192.168.0.105) with Microsoft SMTP Server (TLS) id 15.0.516.32; Tue, 6 Sep 2016 12:06:23 +0200 In-Reply-To: <83r38xbvk8.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Sep 2016 05:39:51 +0300") X-ClientProxiedBy: rintintin.hq.realize.ch.lan.rit (192.168.0.105) To rintintin.hq.realize.ch.lan.rit (192.168.0.105) X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] X-Received-From: 46.140.89.53 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:207207 Archived-At: Eli Zaretskii writes: > Are you sure the delay is because of Emacs being parked in pselect? > In my testing, Emacs shuts down after C-c as soon as it gets focus. Yes, I'm sure. At least this is what I'm observing here (with DebPrint calls). And yes, as soon as the frame gets focus or receives any other MS Windows message such as WM_MOUSEMOVE (or any subprocess output), it will terminate. But if not, it blocks until the timeout expires. This potential delay is a minor detail. But couldn't we overcome it by pulsing the interrupt_handle event, e.g. by a call to signal_quit in keyboard.c (handle_interrupt_signal), just after having set the Vquit_flag? Of course, that would be for MS Windows only.