From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: RE: Problem with `while-no-input' Date: Wed, 26 Apr 2006 13:46:26 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1146052083 2131 80.91.229.2 (26 Apr 2006 11:48:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 11:48:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 26 13:48:00 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 1FYiUg-0000eB-GL for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 13:47:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYiUf-0006z1-Tr for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 07:47:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYiTa-0006Po-Lq for emacs-devel@gnu.org; Wed, 26 Apr 2006 07:46:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYiTY-0006Ol-J0 for emacs-devel@gnu.org; Wed, 26 Apr 2006 07:46:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYiTY-0006Oe-DD for emacs-devel@gnu.org; Wed, 26 Apr 2006 07:46:32 -0400 Original-Received: from [192.76.162.229] (helo=world1.sdm.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYiWC-0000bB-FE; Wed, 26 Apr 2006 07:49:16 -0400 Original-Received: by world1.sdm.de (MTA) via esmtp from mucns1.muc.sdm.de ([193.102.180.22]) id 1FYiTU-0006v7-6i; Wed, 26 Apr 2006 13:46:28 +0200 Original-Received: by mucns1.muc.sdm.de (MTA) via esmtp from localhost ([127.0.0.1] helo=sdmmail1.sdm.de) id 1FYiTU-0005wo-4z; Wed, 26 Apr 2006 13:46:28 +0200 Original-Received: from mucmail1.sdm.de ([193.102.180.175]) by sdmmail1.sdm.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Apr 2006 13:46:27 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with `while-no-input' Thread-Index: AcZpI3ZuimIK0fzxSXyMEXG91mR/tQAAxlfA Original-To: X-OriginalArrivalTime: 26 Apr 2006 11:46:27.0317 (UTC) FILETIME=[0D39CA50:01C66927] 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:53464 Archived-At: Jason Rumney wrote: > klaus.berndl@sdm.de wrote: >> But pressing/releasing mouse-buttons does still not interrupt this >> code! First after a keypress it is interrupted and then first the >> queued mouse-click is performed before the pressed key is inserted >> in the buffer (that key which has interrupted this code). >>=20 >> Is this behavior intended? If yes, why? Would it not better also >> enabling mouse-interruption?=20 >>=20 > No, it is not intended. I added the interruption code to mouse button > and wheel events as well as keyboard input, and in this works for me > with emacs -Q. I'm running a build from 22. April 2006 build for Windows = (i386-mingw-nt5.1.2600). With this build it runs (i.e. interrupts) via: - all keys - middle-mouse of a 3 button mouse=20 - mouse-wheel It interrupts *not* via left and right mouse-buttons... > (defun klaus-test-input () > (interactive) > (let ((result nil) > (i 0)) > (setq result (while-no-input > (while t > (setq i (1+ i))))) > (message "Klaus: %s" result))) Ciao, Klaus