From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Problem with `while-no-input' Date: Wed, 08 Mar 2006 14:50:00 +0000 Message-ID: <440EEF18.50804@gnu.org> References: <1a393dd1a3c169.1a3c1691a393dd@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1818361497==" X-Trace: sea.gmane.org 1141829546 3130 80.91.229.2 (8 Mar 2006 14:52:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2006 14:52:26 +0000 (UTC) Cc: emacs-devel@gnu.org, klaus.berndl@sdm.de, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 08 15:52:23 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 1FGzzx-00043z-EL for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 15:50:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGzzw-0001js-N8 for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 09:50:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FGzzR-0001ZR-10 for emacs-devel@gnu.org; Wed, 08 Mar 2006 09:50:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FGzzI-0001Bs-K5 for emacs-devel@gnu.org; Wed, 08 Mar 2006 09:50:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGzzI-0001BV-1p for emacs-devel@gnu.org; Wed, 08 Mar 2006 09:50:04 -0500 Original-Received: from [213.86.207.50] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FH029-00055y-3G for emacs-devel@gnu.org; Wed, 08 Mar 2006 09:53:01 -0500 Original-Received: from ASSP-nospam (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3QQXZ2T; Wed, 8 Mar 2006 14:43:46 -0000 Original-Received: from 192.168.111.66 ([192.168.111.66] helo=[192.168.111.66]) by ASSP-nospam ; 8 Mar 06 14:43:46 -0000 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: LENNART BORGMAN In-Reply-To: <1a393dd1a3c169.1a3c1691a393dd@net.lu.se> 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:51367 Archived-At: This is a multi-part message in MIME format. --===============1818361497== Content-Type: multipart/alternative; boundary="------------080503030405000107060105" This is a multi-part message in MIME format. --------------080503030405000107060105 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit LENNART BORGMAN wrote: > From: storm@cua.dk (Kim F. Storm) > > >> writes: >> >> >>> I tried this with Emacs 22.0.50.1 compiled on 29.1.2006 for >>> >> Windows.... >> It works fine on >> >> GNU Emacs 22.0.50.69 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll >> bars) of 2006-03-08 on kfs-l.imdomain.dk >> >> Maybe windoze doesn't have some form of async input processing, so >> maybe it cannot see if input arrives while it is running lisp code. >> > > MS Windows is event driven. Maybe some input queue must be checked? > MS Windows is event driven, but something has to read those events, and this is done synchronously in the Lisp thread's main loop. Whatever code is doing the checking of the Lisp level event queue for `while-no-input' needs to also trigger a check of the Windows message queue in case there are input events there that need promoting to Lisp events. --------------080503030405000107060105 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit LENNART BORGMAN wrote:
From: storm@cua.dk (Kim F. Storm)

  
<klaus.berndl@sdm.de> writes:

    
I tried this with Emacs 22.0.50.1 compiled on 29.1.2006 for 
      
Windows....
It works fine on 

GNU Emacs 22.0.50.69 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll 
bars) of 2006-03-08 on kfs-l.imdomain.dk

Maybe windoze doesn't have some form of async input processing, so 
maybe it cannot see if input arrives while it is running lisp code.
    

MS Windows is event driven. Maybe some input queue must be checked?
  
MS Windows is event driven, but something has to read those events, and this is done synchronously in the Lisp thread's main loop. Whatever code is doing the checking of the Lisp level event queue for `while-no-input' needs to also trigger a check of the Windows message queue in case there are input events there that need promoting to Lisp events.


--------------080503030405000107060105-- --===============1818361497== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1818361497==--