>>>> "sb" == SL Baur <steve(a)xemacs.org>
writes:
ecm> It is annoying to have to read (emacs-version) before being
ecm> able to bind something like the middle mouse button ([mouse-2] /
ecm> [button-2]).
sb> (define-key something-map [mouse-2] 'some-function)
sb> and
sb> (define-key something-map [button2] 'some-function)
indeed they do; my apologies. I was led astray by code I had read
which seems to be outdated; eg
(define-key custom-mode-map
(if (string-match "XEmacs" emacs-version)
[button2] [mouse-2])
'custom-push-button)
--
Eric Marsden