From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jasonr (Jason Rumney) @ f2s.com Newsgroups: gmane.emacs.help Subject: Re: Setting mwheel down/up to new function Date: Wed, 12 May 2004 21:50:36 +0100 Organization: freedom2surf Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084395917 18994 80.91.224.253 (12 May 2004 21:05:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 May 2004 21:05:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 12 23:05:12 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BO0ue-0005U3-00 for ; Wed, 12 May 2004 23:05:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BO0rE-0002t5-JV for geh-help-gnu-emacs@m.gmane.org; Wed, 12 May 2004 17:01:40 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed1.ip.tiscali.net!tiscali!newsfeed2.ip.tiscali.net!stargate.gts.cz!news.freedom2surf.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: i-195-137-77-250.freedom2surf.net Original-X-Trace: news.freedom2surf.net 1084395045 11955 195.137.77.250 (12 May 2004 20:50:45 GMT) Original-X-Complaints-To: abuse@freedom2surf.net Original-NNTP-Posting-Date: Wed, 12 May 2004 20:50:45 +0000 (UTC) X-Face: .PruP48JRO{Z6Rfz?YkZ>)zR+7!Up"`!1Cvq{fGd)@K; y]C:8r\CrJ^Mj\_U"9*WD2 I#zdK_#tw]y9*Y$?ge&b23Zt7zpknL{)F7Px4DVSY6b9dg[^VtkN-R_$YJ0cL''j[, }O#k{k| User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:DsSnQM76wAgYfGPhup8967pmkSU= Original-Xref: shelby.stanford.edu gnu.emacs.help:123156 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18448 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18448 burlo_stumproot@notvalid.se writes: > jasonr (Jason Rumney) @ f2s.com writes: > >> burlo_stumproot@notvalid.se writes: >> >> > I know, I know but my ntemacs is only used for gnus >> > >> > But somthing is grabbing my mouse scrolling before this >> > (global-set-key [mouse-4] 'gnus-summary-next-page) has a chance >> > to run. >> >> Unlike the usual X configuration, Windows does not map the mouse wheel >> to mouse-4 and mouse-5. Try [wheel-up] and [wheel-down] instead. > > I tried that also, but all I ever get when using the mouse wheel > is mouse-wheel-scroll-line. > > A C-h c gives " runs the command mouse-wheel-scroll-line" > no matter if I scroll the mouse-wheel up or down. The mouse-wheel event is special in that it contains extra info about direction and magnitude. The current CVS uses wheel-up and wheel-down because they are a lot easier for the end user to work with, but for 21.3, if you look in lisp/term/w32-win.el, you should be able to find the code that deals with the [mouse-wheel] event so you can copy it and customize it yourself.