]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-wheel-down-event, mouse-wheel-up-event):
authorJason Rumney <jasonr@gnu.org>
Sun, 1 Jun 2003 22:14:30 +0000 (22:14 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 1 Jun 2003 22:14:30 +0000 (22:14 +0000)
Default to new wheel-up and wheel-down events on Windows.

lisp/ChangeLog
lisp/mwheel.el

index d936d62026f5f0849cae2d854129c73d82c0ff61..fd22af842bbd30e488374d69c35133494b8f4cb7 100644 (file)
@@ -1,3 +1,10 @@
+2003-06-01  Jason Rumney  <jasonr@gnu.org>
+
+       * mwheel.el (mouse-wheel-down-event, mouse-wheel-up-event):
+       Default to new wheel-up and wheel-down events on Windows.
+
+       * term/w32-win.el: No need to bind wheel events specially.
+
 2003-06-01  Michael Kifer  <kifer@cs.stonybrook.edu>
        
        * desktop.el (desktop-create-buffer): Added (desktop-first-buffer) to
index 850642c37ab393419cfe2cfef9a37fc43f5352d1..2ebb10c3073d035e402bd7503e25abb1772a0079 100644 (file)
                         'mouse-wheel-down-event)
 (defcustom mouse-wheel-down-event
   ;; In the latest versions of XEmacs, we could just use mouse-%s as well.
-  (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s")
-                 mouse-wheel-down-button))
+  (if (eq system-type 'windows-nt)
+      'wheel-up
+    (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s")
+                   mouse-wheel-down-button)))
   "Event used for scrolling down."
   :group 'mouse
   :type 'symbol
                         'mouse-wheel-up-event)
 (defcustom mouse-wheel-up-event
   ;; In the latest versions of XEmacs, we could just use mouse-%s as well.
-  (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s")
-                 mouse-wheel-up-button))
+  (if (eq system-type 'windows-nt)
+      'wheel-down
+    (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s")
+                   mouse-wheel-up-button)))
   "Event used for scrolling down."
   :group 'mouse
   :type 'symbol