Function: mouse-wheel-change-button

mouse-wheel-change-button is a byte-compiled function defined in mwheel.el.gz.

Signature

(mouse-wheel-change-button VAR BUTTON)

Source Code

;; Defined in /usr/src/emacs/lisp/mwheel.el.gz
;; Setter function for mouse-button user-options.  Switch Mouse Wheel
;; mode off and on again so that the old button is unbound and
;; new button is bound to mwheel-scroll.

(defun mouse-wheel-change-button (var button)
  (set-default var button)
  ;; Sync the bindings if they're already setup.
  (when (and mouse-wheel--installed-bindings-alist
             (bound-and-true-p mouse-wheel-mode))
    (mouse-wheel-mode 1)))