unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* translating mouse clicks
@ 2005-07-13 17:51 r3jsel
  2005-07-13 19:42 ` Peter Dyballa
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: r3jsel @ 2005-07-13 17:51 UTC (permalink / raw)


I have a trackball with four buttons which emacs sees as buttons
mouse-1, mouse-3, mouse-4, and mouse-5.  I would like emacs to
treat mouse-4 clicks as though they were mouse-2 clicks.

Googling finds suggestions to try

(global-set-key [mouse-4] [mouse-2])
(define-key key-translation-map [mouse-4] [mouse-2])
(keyboard-translate 'mouse-4 'mouse-2)

but none of these work for me.

Doing the first or second and clicking the mouse-4 button causes
emacs to complain that "mouse-yank-at-click must be bound to an
event with parameters"

Doing the third causes emacs to complain that mouse-4 should be an
integer.

(This is with a relatively recent version of CVS emacs on MS Windows
from nqmacs.sourceforge.net, GNU Emacs 22.0.50.2.)

Can anyone suggest a method that works?

Thanks,
David

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-15 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-13 17:51 translating mouse clicks r3jsel
2005-07-13 19:42 ` Peter Dyballa
2005-07-14  0:46 ` rgb
2005-07-14  2:52 ` Stefan Monnier
2005-07-15 16:39 ` r3jsel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).