From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Problem with `while-no-input' Date: Wed, 26 Apr 2006 14:43:09 +0200 Message-ID: <444F6ADD.7000804@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146055444 14646 80.91.229.2 (26 Apr 2006 12:44:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 12:44:04 +0000 (UTC) Cc: emacs-devel@gnu.org, jasonr@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 26 14:43:58 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 1FYjMp-0002ja-VN for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 14:43:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYjMp-0006d3-D8 for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 08:43:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYjMX-0006cb-4d for emacs-devel@gnu.org; Wed, 26 Apr 2006 08:43:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYjMV-0006ax-B1 for emacs-devel@gnu.org; Wed, 26 Apr 2006 08:43:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYjMV-0006ao-0F for emacs-devel@gnu.org; Wed, 26 Apr 2006 08:43:19 -0400 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYjP8-0006zK-Mw; Wed, 26 Apr 2006 08:46:02 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.070) id 444497C50020E50B; Wed, 26 Apr 2006 14:43:10 +0200 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: klaus.berndl@sdm.de In-Reply-To: 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:53468 Archived-At: klaus.berndl@sdm.de wrote: > Jason Rumney wrote: > >> klaus.berndl@sdm.de wrote: >> >>> 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 >>> - mouse-wheel >>> >>> It interrupts *not* via left and right mouse-buttons... >>> >>> >> Is the value of w32-num-mouse-buttons 2? >> > > yes. > > But i use a 3-button mouse! I didn't know that a user has explicitly > set this variable to 3 if he uses a 3-button mouse?! Is this documented > somewhere?? > > Anyway: If i set w32-num-mouse-buttons to 3 via setq than all works fine, > means the code is interrupted by every mouse-button... > > Without this setting only button 2 interrupts, but not buttons 1 and 3... > Why not set this information via GetSystemMetrics? There is a good example on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getting_hardware_information.asp Note: In my MinGW installation SM_CMOUSEBUTTONS is defined (=43) but SM_MOUSEPRESENT (=19) is missing.