event-modifiers before looking up in `mouse-wheel-scroll-amount'.
If there's no applicable modifiers entry in the alist in
`mouse-wheel-scroll-amount', fall back to the default, not to
nil (which causes full screen scrolls).
+2002-03-02 Miles Bader <miles@gnu.org>
+
+ * mwheel.el (mwheel-scroll): Remove `double' and `triple' from the
+ event-modifiers before looking up in `mouse-wheel-scroll-amount'.
+ If there's no applicable modifiers entry in the alist in
+ `mouse-wheel-scroll-amount', fall back to the default, not to
+ nil (which causes full screen scrolls).
+
2002-03-01 Andreas Schwab <schwab@suse.de>
* textmodes/texnfo-upd.el (texinfo-start-menu-description): Remove
(prog1
(selected-window)
(select-window (mwheel-event-window event)))))
- (mods (delete 'click (event-modifiers event)))
- (amt (if mods
- (cdr (assoc mods (cdr mouse-wheel-scroll-amount)))
- (car mouse-wheel-scroll-amount))))
+ (mods
+ (delq 'click (delq 'double (delq 'triple (event-modifiers event)))))
+ (amt
+ (or (and mods
+ (cdr (assoc mods (cdr mouse-wheel-scroll-amount))))
+ (car mouse-wheel-scroll-amount))))
(if (floatp amt) (setq amt (1+ (truncate (* amt (window-height))))))
(when (and mouse-wheel-progessive-speed (numberp amt))
;; When the double-mouse-N comes in, a mouse-N has been executed already,