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: Problem with `while-no-input' Date: Sat, 11 Mar 2006 23:55:52 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1142114179 25014 80.91.229.2 (11 Mar 2006 21:56:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Mar 2006 21:56:19 +0000 (UTC) Cc: emacs-devel@gnu.org, klaus.berndl@sdm.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 11 22:56:18 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FIC4J-0005JG-R2 for ged-emacs-devel@m.gmane.org; Sat, 11 Mar 2006 22:56:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIC4J-0006nR-GD for ged-emacs-devel@m.gmane.org; Sat, 11 Mar 2006 16:56:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FIC48-0006nL-H7 for emacs-devel@gnu.org; Sat, 11 Mar 2006 16:56:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FIC46-0006n7-7w for emacs-devel@gnu.org; Sat, 11 Mar 2006 16:55:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIC46-0006n4-0n for emacs-devel@gnu.org; Sat, 11 Mar 2006 16:55:58 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FIC7d-0003UJ-0e; Sat, 11 Mar 2006 16:59:37 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-37-47.inter.net.il [80.230.37.47]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DSO71524 (AUTH halo1); Sat, 11 Mar 2006 23:55:51 +0200 (IST) Original-To: Jason Rumney In-reply-to: (message from Jason Rumney on Sat, 11 Mar 2006 15:29:16 +0000) 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:51486 Archived-At: > From: Jason Rumney > Date: Sat, 11 Mar 2006 15:29:16 +0000 > Cc: storm@cua.dk, klaus.berndl@sdm.de, emacs-devel@gnu.org > > After looking more closely, I now see that C-g is handled specially in > w32fns.c on windows in the function post_character_message. It may be > possible to do something in here to make while-not-input work. I thought about this as well. It should be easy to do that for simple keyboard keys, but what about the other input events? Running too much of what keyboard.c does from within post_character_message might prove tricky, since post_character_message runs in a thread that is different from where the Lisp code runs, right? Btw, when we signal interrupt_handle from the window thread, what code takes care that we notice this fact from the Lisp thread?