From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Mouse wheel Date: 04 Jun 2003 22:00:55 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200306041816.h54IG0Mb026767@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054760544 7077 80.91.224.249 (4 Jun 2003 21:02:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2003 21:02:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 04 23:02:19 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19NfOl-0001pS-00 for ; Wed, 04 Jun 2003 23:02:19 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19NfgV-0007st-00 for ; Wed, 04 Jun 2003 23:20:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NfQv-0000lB-Tl for emacs-devel@quimby.gnus.org; Wed, 04 Jun 2003 17:04:33 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NfQW-0000jw-CY for emacs-devel@gnu.org; Wed, 04 Jun 2003 17:04:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NfQT-0000hq-4S for emacs-devel@gnu.org; Wed, 04 Jun 2003 17:04:07 -0400 Original-Received: from server0011.freedom2surf.net ([194.106.56.14] helo=server0027.freedom2surf.net) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NfNV-000805-Ms for emacs-devel@gnu.org; Wed, 04 Jun 2003 17:01:01 -0400 Original-Received: from wanchan.jasonr.f2s.com ([195.137.103.251]) h54L10PW025574; Wed, 4 Jun 2003 21:01:01 GMT Original-Received: from NYAUMO (nyaumo.jasonr.f2s.com [10.0.0.27]) by wanchan.jasonr.f2s.com (Postfix) with ESMTP id 8ECFBDDF15; Wed, 4 Jun 2003 22:01:00 +0100 (BST) Original-To: "Stefan Monnier" In-Reply-To: <200306041816.h54IG0Mb026767@rum.cs.yale.edu> Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14710 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14710 "Stefan Monnier" writes: > We can then remove the (mouse-wheel-mode 1) call in w32-win.el and > in x-win.el we need to add: > > (define-key function-key-map [mouse-4] [wheel-up]) > (define-key function-key-map [mouse-5] [wheel-down]) > (define-key function-key-map [C-mouse-4] [C-wheel-up]) > (define-key function-key-map [C-mouse-5] [C-wheel-down]) > ... > > and related friends (ideally we should be able to do this mapping > automatically by querying the X server, but it seems difficult/impossible, > so for now we'll just use function-key-map). Of course, a bit more work > than the above is needed, but I'm just trying to see if we all agree > this is the way to go. Probably. I'm not sure what X users with >3 button mice + wheel do with their ZAxisMapping. There are probably enough apps that are hardwired to use mouse-4 and mouse-5 as the wheel, to force such users to go to the trouble of mapping buttons 4 and 5 to 6 and 7 so they can leave 4 and 5 free for the wheel. I thought there was a way of handling z-axis events in X directly without the mapping, but after searching now I think I might have been misled by GDK or vi documentation (both of which basically do the above function-key-mapping).