From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Subject: w32 mouse wheel handling Date: 26 May 2003 01:22:09 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xel2m7gta.fsf@kfs2.cua.dk> References: <25058549.1053701279594.JavaMail.www@wwinf0601> <871xynu0bo.fsf@cs.cmu.edu> <200305251519.h4PFJr5C014545@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 1053897829 15443 80.91.224.249 (25 May 2003 21:23:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 25 May 2003 21:23:49 +0000 (UTC) Cc: Michael Welsh Duggan Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 25 23:23:45 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 19K2y1-00040V-00 for ; Sun, 25 May 2003 23:23:45 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19K3Av-0002Yk-00 for ; Sun, 25 May 2003 23:37:05 +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 19K2yv-0003Sb-AV for emacs-devel@quimby.gnus.org; Sun, 25 May 2003 17:24:41 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19K2yF-00033l-8U for emacs-devel@gnu.org; Sun, 25 May 2003 17:23:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19K2yA-0002pS-2d for emacs-devel@gnu.org; Sun, 25 May 2003 17:23:55 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19K2y9-0002mx-GU for emacs-devel@gnu.org; Sun, 25 May 2003 17:23:53 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 4916A7C012; Sun, 25 May 2003 23:23:51 +0200 (CEST) Original-To: "Stefan Monnier" In-Reply-To: <200305251519.h4PFJr5C014545@rum.cs.yale.edu> Original-Lines: 40 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-cc: david.ponce@wanadoo.fr Original-cc: emacs-devel 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:14254 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14254 "Stefan Monnier" writes: > I agree on the principle, but I think using mouse-4 and mouse-5 is > not correct. It's just an X11 hack. I'd rather create new events > like wheel-up and wheel-down and then have a function-key-map to > translate mouse-4 and mouse-5 to wheel-up and wheel-down (on X). I agree 100%, that we should not use the mouse-4 and mouse-5 names. But I'm less certain about the names for the wheel events though. I think the wheel-up and wheel-down names are a bit confusing when compated to existing mouse events like down-mouse-1 and up-mouse-2. Also, if you look at a typical mouse wheel, it has two directions: "upwards" (turn the wheel away from yourself) and "downwards" (turn the wheel towards yourself). So in the "human context", these should then correspond to the events wheel-up and wheel-down. But inside emacs, the event which scrolls the mouse "away from you" would be bound to scroll-down and "towards you" to scroll-up, so in the "emacs context" we could just as well justify to assign the wheel-up and wheel-down events in the "opposite direction". So "wheel-up" and "wheel-down" are not really unambiguous. Furthermore, I have seen mice with two scroll wheels, some of these have two up/down wheels, others have both up/down and left/right wheels, and I think our naming of wheel events should be prepared for this. So maybe we could simply use names like wheel-1, wheel-2 (first mouse wheel), mouse-3, mouse-4 (second mouse wheel), etc. Or we could have wheel-forward-1, wheel-backward-1, etc. Or wheel+1, wheel-1, wheel+2, wheel-2, etc. -- Kim F. Storm http://www.cua.dk