[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mouse-wheel mode (and probably other stuff) broken due to use of glo
Tim Van Holder
Re: mouse-wheel mode (and probably other stuff) broken due to use of global-map
Mon, 25 Mar 2002 11:58:44 +0100
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020206
Pavel Janík wrote:
> I'd use `global-set-key' since that's what it's for after all.
Yes. Can anyone test the following change?
--- mwheel.el.~1.11.~ Sun Mar 24 15:52:02 2002
+++ mwheel.el Sun Mar 24 19:25:25 2002
@@ -169,9 +169,9 @@
(dolist (key keys)
- (define-key (current-global-map) key 'mwheel-scroll))
+ (global-set-key key 'mwheel-scroll))
((eq (lookup-key (current-global-map) key) 'mwheel-scroll)
- (define-key (current-global-map) key nil))))
+ (global-unset-key key))))
Seems to work fine (that is, the mouse wheel does what it's supposed to do).
Tim Van Holder <mailto:address@hidden>
Telephone: +32 3 450 42 32 Fax: +32 3 450 42 51