From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: recommended way to bind mouse-wheel events Date: Mon, 16 Feb 2009 20:54:48 -0500 Message-ID: References: <006a01c99087$b1929c50$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234835704 28284 80.91.229.12 (17 Feb 2009 01:55:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 01:55:04 +0000 (UTC) Cc: 'Emacs-Devel devel' To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 17 02:56:20 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 1LZFC6-0006Io-Mk for ged-emacs-devel@m.gmane.org; Tue, 17 Feb 2009 02:56:18 +0100 Original-Received: from localhost ([127.0.0.1]:43359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZFAm-0000fk-OW for ged-emacs-devel@m.gmane.org; Mon, 16 Feb 2009 20:54:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZFAh-0000fb-T1 for emacs-devel@gnu.org; Mon, 16 Feb 2009 20:54:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZFAg-0000fM-AZ for emacs-devel@gnu.org; Mon, 16 Feb 2009 20:54:51 -0500 Original-Received: from [199.232.76.173] (port=50734 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZFAg-0000fI-7G for emacs-devel@gnu.org; Mon, 16 Feb 2009 20:54:50 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:63304 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZFAf-0008O2-Rd for emacs-devel@gnu.org; Mon, 16 Feb 2009 20:54:49 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroFAMSnmUlMCpTK/2dsb2JhbACBbs5fhBMGgzI X-IronPort-AV: E=Sophos;i="4.38,219,1233550800"; d="scan'208";a="33957767" Original-Received: from 76-10-148-202.dsl.teksavvy.com (HELO pastel.home) ([76.10.148.202]) by ironport2-out.teksavvy.com with ESMTP; 16 Feb 2009 20:54:48 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 35E698442; Mon, 16 Feb 2009 20:54:48 -0500 (EST) In-Reply-To: <006a01c99087$b1929c50$0200a8c0@us.oracle.com> (Drew Adams's message of "Mon, 16 Feb 2009 14:41:21 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (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:109115 Archived-At: > Will this code, which uses the event variables, work also on non-Windows > platforms? If so, is this a good way to do it, or is there a better way? IIUC it should work more or less everywhere, and while it's not great it's the best we have so far. > Shouldn't this be documented? (Mice with wheels have been around > for decades.) I'd rather not document this ugly hack. We should indeed remap mouse-4 and mouse-5 to wheel-up and wheel-down (on X11) so those events can be used everywhere. Stefan