diff options
| author | Chong Yidong | 2009-08-16 05:49:26 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-08-16 05:49:26 +0000 |
| commit | 19261da4e2cdfbe382c931c97c8745727ab8ab4d (patch) | |
| tree | a5b04a0ecc28dd08991b2b9bb9f69ea39797e1f6 | |
| parent | daad00fc06cc055034094e8a1941c6d22967e6bd (diff) | |
| download | emacs-19261da4e2cdfbe382c931c97c8745727ab8ab4d.tar.gz emacs-19261da4e2cdfbe382c931c97c8745727ab8ab4d.zip | |
* mwheel.el (mouse-wheel-down-event, mouse-wheel-up-event): Don't
initialize based on window-system (Bug#4124).
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/mwheel.el | 16 |
2 files changed, 8 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c47ebd92123..955521bb8a0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-08-16 Chong Yidong <cyd@stupidchicken.com> | 1 | 2009-08-16 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * mwheel.el (mouse-wheel-down-event, mouse-wheel-up-event): Don't | ||
| 4 | initialize based on window-system (Bug#4124). | ||
| 5 | |||
| 3 | * facemenu.el (facemenu-read-color): Use a completion function | 6 | * facemenu.el (facemenu-read-color): Use a completion function |
| 4 | that accepts any defined color, such as RGB triplets (Bug#3677). | 7 | that accepts any defined color, such as RGB triplets (Bug#3677). |
| 5 | 8 | ||
diff --git a/lisp/mwheel.el b/lisp/mwheel.el index 6444ba401d6..37980279a28 100644 --- a/lisp/mwheel.el +++ b/lisp/mwheel.el | |||
| @@ -57,11 +57,9 @@ | |||
| 57 | 'mouse-wheel-down-event | 57 | 'mouse-wheel-down-event |
| 58 | "22.1") | 58 | "22.1") |
| 59 | (defcustom mouse-wheel-down-event | 59 | (defcustom mouse-wheel-down-event |
| 60 | ;; In the latest versions of XEmacs, we could just use mouse-%s as well. | 60 | (if (or (featurep 'w32-win) (featurep 'ns-win)) |
| 61 | (if (memq window-system '(w32 ns)) | ||
| 62 | 'wheel-up | 61 | 'wheel-up |
| 63 | (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s") | 62 | (intern (format "mouse-%s" mouse-wheel-down-button))) |
| 64 | mouse-wheel-down-button))) | ||
| 65 | "Event used for scrolling down." | 63 | "Event used for scrolling down." |
| 66 | :group 'mouse | 64 | :group 'mouse |
| 67 | :type 'symbol | 65 | :type 'symbol |
| @@ -72,11 +70,9 @@ | |||
| 72 | 'mouse-wheel-up-event | 70 | 'mouse-wheel-up-event |
| 73 | "22.1") | 71 | "22.1") |
| 74 | (defcustom mouse-wheel-up-event | 72 | (defcustom mouse-wheel-up-event |
| 75 | ;; In the latest versions of XEmacs, we could just use mouse-%s as well. | 73 | (if (or (featurep 'w32-win) (featurep 'ns-win)) |
| 76 | (if (memq window-system '(w32 ns)) | ||
| 77 | 'wheel-down | 74 | 'wheel-down |
| 78 | (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s") | 75 | (intern (format "mouse-%s" mouse-wheel-up-button))) |
| 79 | mouse-wheel-up-button))) | ||
| 80 | "Event used for scrolling up." | 76 | "Event used for scrolling up." |
| 81 | :group 'mouse | 77 | :group 'mouse |
| 82 | :type 'symbol | 78 | :type 'symbol |
| @@ -87,9 +83,7 @@ | |||
| 87 | 'mouse-wheel-click-event | 83 | 'mouse-wheel-click-event |
| 88 | "22.1") | 84 | "22.1") |
| 89 | (defcustom mouse-wheel-click-event | 85 | (defcustom mouse-wheel-click-event |
| 90 | ;; In the latest versions of XEmacs, we could just use mouse-%s as well. | 86 | (intern (format "mouse-%s" mouse-wheel-click-button)) |
| 91 | (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s") | ||
| 92 | mouse-wheel-click-button)) | ||
| 93 | "Event that should be temporarily inhibited after mouse scrolling. | 87 | "Event that should be temporarily inhibited after mouse scrolling. |
| 94 | The mouse wheel is typically on the mouse-2 button, so it may easily | 88 | The mouse wheel is typically on the mouse-2 button, so it may easily |
| 95 | happen that text is accidentally yanked into the buffer when | 89 | happen that text is accidentally yanked into the buffer when |