]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-wheel-mode): Use global-set-key and global-unset-key.
authorPavel Janík <Pavel@Janik.cz>
Mon, 25 Mar 2002 11:31:11 +0000 (11:31 +0000)
committerPavel Janík <Pavel@Janik.cz>
Mon, 25 Mar 2002 11:31:11 +0000 (11:31 +0000)
lisp/ChangeLog
lisp/mwheel.el

index 23e7f846274790c7ac3cdd339899e45a4574b149..62d8f3e896da8075c89a0106bdc5a063b88fd25a 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-25  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * mwheel.el (mouse-wheel-mode): Use global-set-key and
+       global-unset-key.
+
 2002-03-24  Richard M. Stallman  <rms@gnu.org>
 
        * mail/rmail.el (rmail-resend): Call mail-abbrev-make-syntax-table.
index bd99c00fa749c6159abbe589f49b390de8f18c8d..5b04b9ba991e146b3dcd9040f37cba038cf1d89a 100644 (file)
@@ -169,9 +169,9 @@ Returns non-nil if the new state is enabled."
     (condition-case ()
        (dolist (key keys)
          (cond (mouse-wheel-mode
-                (define-key (current-global-map) key 'mwheel-scroll))
+                (global-set-key key 'mwheel-scroll))
                ((eq (lookup-key (current-global-map) key) 'mwheel-scroll)
-                (define-key (current-global-map) key nil))))
+                (global-unset-key key))))
       (error nil))))
 
 ;;; Compatibility entry point