emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/term/w32-win.el


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/lisp/term/w32-win.el
Date: Mon, 25 Feb 2002 18:23:23 -0500

Index: emacs/lisp/term/w32-win.el
diff -c emacs/lisp/term/w32-win.el:1.50 emacs/lisp/term/w32-win.el:1.51
*** emacs/lisp/term/w32-win.el:1.50     Sun Feb 17 18:08:14 2002
--- emacs/lisp/term/w32-win.el  Mon Feb 25 18:23:22 2002
***************
*** 83,95 ****
  ;; The following definition is used for debugging scroll bar events.
  ;(defun w32-handle-scroll-bar-event (event) (interactive "e") (princ event))
  
  (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))
      (error nil)))
  
  ;; for scroll-in-place.el, this way the -scroll-line and -scroll-screen
--- 83,97 ----
  ;; 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 (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]