/[emacs]/emacs/lisp/term/w32-win.el
ViewVC logotype

Diff of /emacs/lisp/term/w32-win.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by jasonr, Sun Feb 17 23:08:14 2002 UTC revision 1.51 by jasonr, Mon Feb 25 23:23:22 2002 UTC
# Line 83  Line 83 
83  ;; The following definition is used for debugging scroll bar events.  ;; The following definition is used for debugging scroll bar events.
84  ;(defun w32-handle-scroll-bar-event (event) (interactive "e") (princ event))  ;(defun w32-handle-scroll-bar-event (event) (interactive "e") (princ event))
85    
86    ;; mwheel.el should probably be adapted to accept mouse-wheel events
87    ;; then this could go.
88  (defun mouse-wheel-scroll-line (event)  (defun mouse-wheel-scroll-line (event)
89    "Scroll the window in which EVENT occurred by `mouse-wheel-scroll-amount'."    "Scroll the window in which EVENT occurred by `mouse-wheel-scroll-amount'."
90    (interactive "e")    (interactive "e")
91    (condition-case nil    (condition-case nil
92        (if (< (car (cdr (cdr event))) 0)        (if (< (car (cdr (cdr event))) 0)
93            (scroll-up mouse-wheel-scroll-amount)            (scroll-up (car mouse-wheel-scroll-amount))
94          (scroll-down mouse-wheel-scroll-amount))          (scroll-down (car mouse-wheel-scroll-amount)))
95      (error nil)))      (error nil)))
96    
97  ;; for scroll-in-place.el, this way the -scroll-line and -scroll-screen  ;; for scroll-in-place.el, this way the -scroll-line and -scroll-screen

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26