Commit ed81ee80 authored by Jason Rumney's avatar Jason Rumney
Browse files

(mouse-wheel-scroll-line): Use car of

parent 3bd7d448
2002-02-25 Jason Rumney <>
* term/w32-win.el (mouse-wheel-scroll-line): Use car of
* w32-vars.el (mouse-wheel-scroll-amount): Use same definition as
......@@ -83,13 +83,15 @@
;; The following definition is used for debugging scroll bar events.
;(defun w32-handle-scroll-bar-event (event) (interactive "e") (princ event))
;; mwheel.el should probably be adapted to accept mouse-wheel events
;; then this could go.
(defun mouse-wheel-scroll-line (event)
"Scroll the window in which EVENT occurred by `mouse-wheel-scroll-amount'."
(interactive "e")
(condition-case nil
(if (< (car (cdr (cdr event))) 0)
(scroll-up mouse-wheel-scroll-amount)
(scroll-down mouse-wheel-scroll-amount))
(scroll-up (car mouse-wheel-scroll-amount))
(scroll-down (car mouse-wheel-scroll-amount)))
(error nil)))
;; for scroll-in-place.el, this way the -scroll-line and -scroll-screen
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment