comparison lisp/term/w32-win.el @ 51386:c750333d879e

No need to bind wheel events specially.
author Jason Rumney <jasonr@gnu.org>
date Sun, 01 Jun 2003 22:13:07 +0000
parents c9db5a2dc58b
children 695cf19ef79e
comparison
equal deleted inserted replaced
51385:a838a46a67a6 51386:c750333d879e
82 82
83 ;; The following definition is used for debugging scroll bar events. 83 ;; The following definition is used for debugging scroll bar events.
84 ;(defun w32-handle-scroll-bar-event (event) (interactive "e") (princ event)) 84 ;(defun w32-handle-scroll-bar-event (event) (interactive "e") (princ event))
85 85
86 ;; Handle mouse-wheel events with mwheel. 86 ;; Handle mouse-wheel events with mwheel.
87 ;; Normally only mouse-wheel-mode and mwheel-install are autoloaded, 87 (mouse-wheel-mode 1)
88 ;; but binding mouse-wheel must be done directly, since those functions
89 ;; do not recognize mouse-wheel as a valid button.
90 (autoload 'mwheel-scroll "mwheel")
91 (global-set-key [mouse-wheel] 'mwheel-scroll)
92 (global-set-key [C-mouse-wheel] 'mwheel-scroll)
93 (global-set-key [S-mouse-wheel] 'mwheel-scroll)
94 88
95 (defun w32-drag-n-drop-debug (event) 89 (defun w32-drag-n-drop-debug (event)
96 "Print the drag-n-drop EVENT in a readable form." 90 "Print the drag-n-drop EVENT in a readable form."
97 (interactive "e") 91 (interactive "e")
98 (princ event)) 92 (princ event))