🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1167

Re: Mouse buttons to scroll

#1167
From: Gerd Hoeren
Date: Tue, 20 Oct 1992 23:04
41 lines
1945 bytes
|> From epoch-m@cs.uiuc.edu Fri Oct 16 20:39:25 1992
|> To: epoch@cs.uiuc.edu
|> Date: 16 Oct 92 18:28:10 GMT
|> Organization: Amdahl Corporation, Sunnyvale, CA
|> Reply-To: drp40@cd.amdahl.com
|> Subject: Mouse buttons to scroll
|> 
|> I would like to use the middle and right mouse buttons to scroll in
|> epoch.  I tried the following in  my motion.el:
|> 
|> (global-set-mouse mouse-middle mouse-down 'scroll-down)
|> (global-set-mouse mouse-right mouse-down 'scroll-up)
|> 
|> but it won't work...scroll-down puts me at the beginning of the buffer,
|> scroll-up never works...

Try the following:

    (global-set-mouse mouse-middle mouse-down
      '(lambda (arg) (interactive)
         (scroll-up 1)))
    (global-set-mouse mouse-middle mouse-up 'nil)

    (global-set-mouse mouse-right mouse-down
      '(lambda (arg) (interactive)
         (scroll-down 1)))
    (global-set-mouse mouse-right mouse-up 'nil)

The problem is that you need to pass an argument (1) to the scrolling
functions.  Also, make sure that you don't have anything else assigned
to the "up" action of your mouse button.

Good luck!

--------------------------------------
Gerd Hoeren
  Integrated Measurement Systems, Inc.
  Voice: (503) 626-7117
  Fax:   (503) 644-6969
  Email: gerdh@ims.com
--------------------------------------
Technical Details
Message-ID: <9210202304.AA00660@ente.ims.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ims.COM!gerdh
References: gerdh@ims.COM (Gerd Hoeren)

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,aaceba492c025551
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1992-10-20 06:23:26 PST
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ims.COM!gerdh
From: gerdh@ims.COM (Gerd Hoeren)
Subject: Re: Mouse buttons to scroll
Message-ID: <9210202304.AA00660@ente.ims.com>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: gerdh@ims.COM (Gerd Hoeren)
Distribution: gnu
Date: Tue, 20 Oct 1992 23:04:26 GMT
Lines: 42