smart-comint-up -- on second thoughts
Patrick Connolly
p.connolly at hortresearch.co.nz
Thu Oct 24 22:06:44 CEST 2002
On Thu, 24-Oct-2002 at 12:22PM -0700, A.J. Rossini wrote:
|> >>>>> "rodney" == Rodney Sparapani <rsparapa at post.its.mcw.edu> writes:
|>
|> rodney> Patrick:
|> rodney> Forgive my ignorance, but what is M-mouse-4? I assume it means hold M while
|> rodney> doing something with the mouse. I have a 3-button mouse and under XEmacs 21.4.8
|> rodney> I only find M-button1, M-button2 and M-button3.
|>
|> Based on what I know about X11R6, I'm guessing that it is mapped to
|> the wheel on an intelli-mouse or similar wheel-mice (I've got a
|> trackball in one office where the "wheel" is a ring around the ball).
Good guess. Perhaps the idea is not as well known as I imagined, so
maybe it's worth mentioning
http://koala.ilog.fr/colas/mouse-wheel-scroll/
In particular the bit of Elisp supplied by Sylvia Knight which I quite
liked without any modification:
(defun up-slightly () (interactive) (scroll-up 5))
(defun down-slightly () (interactive) (scroll-down 5))
(global-set-key [mouse-4] 'down-slightly)
(global-set-key [mouse-5] 'up-slightly)
(defun up-one () (interactive) (scroll-up 1))
(defun down-one () (interactive) (scroll-down 1))
(global-set-key [S-mouse-4] 'down-one)
(global-set-key [S-mouse-5] 'up-one)
(defun up-a-lot () (interactive) (scroll-up))
(defun down-a-lot () (interactive) (scroll-down))
(global-set-key [C-mouse-4] 'down-a-lot)
(global-set-key [C-mouse-5] 'up-a-lot)
Very useful. Thanks Sylvia.
After a keyboard, a scrolling mouse is just about the best addition to
a computer.
best
--
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it. ---Steven Wright
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
______________________________________________________
The contents of this e-mail are privileged and/or confidential to the
named recipient and are not to be used by any other person and/or
organisation. If you have received this e-mail in error, please notify
the sender and delete all material pertaining to this e-mail.
______________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe or unsubscribe
(in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the ESS-help
mailing list