I am unfamiliar with (boundp 'MULE). The `describe-key' command followed by
pressing the scroll-up wheel once results in "C-buttun4up is undefined". This is
true before or after including the `mwheel.el'
(
http://colas.nahaboo.net/mouse-wheel-scroll/mwheel.el) file.
Sirano
-----Original Message-----
From: xemacs-beta-bounces(a)xemacs.org [mailto:xemacs-beta-bouncesï¼ xemacs.org] On Behalf Of
Samuel Bronson
Sent: Monday, October 18, 2010 9:55 AM
To: Sirano Dhe-Paganon
Cc: Sean MacLennan; xemacs-beta(a)xemacs.org
Subject: Re: zoom on-the-fly in xemacs
On Sat, Oct 16, 2010 at 1:56 PM, Sirano Dhe-Paganon
<sirano.dhepaganon(a)utoronto.ca> wrote:
... it (and a few other variations that I tried) does not work on my
machine. I found and tried the following, which did not do what it was
supposed to do (scroll with different line steps depending on whether
control or shift keys are also pressed). The simple scroll-up/down is bound
to the wheel ok, but when control or shift is also pressed, nothing happens
(it does not even scroll regularly).
;; scroll on wheel of mouses
(if (not (boundp 'MULE))(if (featurep 'xemacs)
(progn
(define-key global-map 'button4 '(lambda (&rest
args) (interactive) (let ((curwin (selected-window))) (select-window (car
(mouse-pixel-position))) (scroll-down 5) (select-window curwin))))
(define-key global-map [(shift button4)] '(lambda (&rest
args) (interactive) (let ((curwin (selected-window))) (select-window (car
(mouse-pixel-position))) (scroll-down 1) (select-window curwin))))
(define-key global-map [(control button4)] '(lambda (&rest
args) (interactive) (let ((curwin (selected-window))) (select-window (car
(mouse-pixel-position))) (scroll-down) (select-window curwin))))
(define-key global-map 'button5 '(lambda (&rest
args) (interactive) (let ((curwin (selected-window))) (select-window (car
(mouse-pixel-position))) (scroll-up 5) (select-window curwin))))
(define-key global-map [(shift button5)] '(lambda (&rest
args) (interactive) (let ((curwin (selected-window))) (select-window (car
(mouse-pixel-position))) (scroll-up 1) (select-window curwin))))
(define-key global-map [(control button5)] '(lambda (&rest
args) (interactive) (let ((curwin (selected-window))) (select-window (car
(mouse-pixel-position))) (scroll-up) (select-window curwin))))
)))
Are you sure (boundp 'MULE) is returning nil? Also, what does
`describe-key' say when you attempt those actions? Here, with the
native win32 beta build (and without having run the code above), I get
stuff like:
C-button5up runs `mwheel-scroll'
`mwheel-scroll' is an interactive compiled Lisp function
-- loaded from "mwheel"
(mwheel-scroll EVENT)
Documentation:
not documented
Invoked with:
button4up
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta