]> git.eshelyaron.com Git - emacs.git/commitdiff
* mwheel.el (mouse-wheel-down-event, mouse-wheel-up-event): Don't
authorChong Yidong <cyd@stupidchicken.com>
Sun, 16 Aug 2009 05:49:26 +0000 (05:49 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 16 Aug 2009 05:49:26 +0000 (05:49 +0000)
initialize based on window-system (Bug#4124).

lisp/ChangeLog
lisp/mwheel.el

index c47ebd92123ba0033358738d16703d3f82e85870..955521bb8a0437da91fff4da3d8683b1234590f7 100644 (file)
@@ -1,5 +1,8 @@
 2009-08-16  Chong Yidong  <cyd@stupidchicken.com>
 
+       * mwheel.el (mouse-wheel-down-event, mouse-wheel-up-event): Don't
+       initialize based on window-system (Bug#4124).
+
        * facemenu.el (facemenu-read-color): Use a completion function
        that accepts any defined color, such as RGB triplets (Bug#3677).
 
index 6444ba401d64cc6e78d660c8cf5febc74401384f..37980279a28d54c9c21fbe5319b59f95a6013e7f 100644 (file)
                         'mouse-wheel-down-event
                        "22.1")
 (defcustom mouse-wheel-down-event
-  ;; In the latest versions of XEmacs, we could just use mouse-%s as well.
-  (if (memq window-system '(w32 ns))
+  (if (or (featurep 'w32-win) (featurep 'ns-win))
       'wheel-up
-    (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s")
-                   mouse-wheel-down-button)))
+    (intern (format "mouse-%s" mouse-wheel-down-button)))
   "Event used for scrolling down."
   :group 'mouse
   :type 'symbol
                         'mouse-wheel-up-event
                        "22.1")
 (defcustom mouse-wheel-up-event
-  ;; In the latest versions of XEmacs, we could just use mouse-%s as well.
-  (if (memq window-system '(w32 ns))
+  (if (or (featurep 'w32-win) (featurep 'ns-win))
       'wheel-down
-    (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s")
-                   mouse-wheel-up-button)))
+    (intern (format "mouse-%s" mouse-wheel-up-button)))
   "Event used for scrolling up."
   :group 'mouse
   :type 'symbol
@@ -87,9 +83,7 @@
                         'mouse-wheel-click-event
                        "22.1")
 (defcustom mouse-wheel-click-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-click-button))
+  (intern (format "mouse-%s" mouse-wheel-click-button))
   "Event that should be temporarily inhibited after mouse scrolling.
 The mouse wheel is typically on the mouse-2 button, so it may easily
 happen that text is accidentally yanked into the buffer when