From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Pretest next week Date: Tue, 27 Jan 2009 23:22:12 -0500 Message-ID: <87tz7kawln.fsf@cyd.mit.edu> References: <87y6x4ue2u.fsf@cyd.mit.edu> <87mydjv4bd.fsf@cyd.mit.edu> <08054F25-1F90-4795-9FFE-01363F6900CE@gmail.com> <497E6D32.9000707@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233116516 4114 80.91.229.12 (28 Jan 2009 04:21:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2009 04:21:56 +0000 (UTC) Cc: emacs-devel@gnu.org, Jason Rumney To: Adrian Robert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 28 05:23:10 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LS1xE-0002NE-D0 for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2009 05:23:08 +0100 Original-Received: from localhost ([127.0.0.1]:56452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LS1vw-0004Kd-4s for ged-emacs-devel@m.gmane.org; Tue, 27 Jan 2009 23:21:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LS1vs-0004Ja-2a for emacs-devel@gnu.org; Tue, 27 Jan 2009 23:21:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LS1vq-0004J8-Kr for emacs-devel@gnu.org; Tue, 27 Jan 2009 23:21:43 -0500 Original-Received: from [199.232.76.173] (port=33897 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LS1vq-0004J5-G5 for emacs-devel@gnu.org; Tue, 27 Jan 2009 23:21:42 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:57821) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LS1vo-0005Le-VO; Tue, 27 Jan 2009 23:21:41 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 0797457E205; Tue, 27 Jan 2009 23:22:12 -0500 (EST) In-Reply-To: (Adrian Robert's message of "Tue, 27 Jan 2009 15:02:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108319 Archived-At: Adrian Robert writes: > On Jan 27, 2009, at 4:10 AM, Jason Rumney wrote: > >> On w32, we set Vquit_flag directly when Ctrl-G (quit_char) is >> pressed. This is done in the asyncronous key handling where the >> event gets put on the Lisp input queue, so it does not have to wait >> for the input queue to be polled. > > What is the entry point for detecting the Ctrl-G (or any other user > keyboard input), when a tight loop is running, such as (while t t)? > Is the SIGIO signal handler used, or is W32 itself asynchronously > calling something in w32fns.c or w32term.c on a second thread? I think this is done in the SIGIO signal handler (at least, according to the comment for w32_read_socket in w32fns.c). Jason, could you confirm this?