On Thu, Aug 25 2005, Johan Bockgård wrote: > "Charles philip Chan" <[EMAIL PROTECTED]> writes: >> On 25 Aug 2005, [EMAIL PROTECTED] wrote: >> >>> (mouse-wheel-mode t) >> >> Geez, I can't believe I made this mistake. It should read: >> >> (setq mouse-wheel-mode t) > > The former works. The latter is wrong.
According to the doc string, it should read (mouse-wheel-mode 1): ,----[ C-h f mouse-wheel-mode RET ] | mouse-wheel-mode is an interactive compiled Lisp function in `mwheel'. | (mouse-wheel-mode &optional ARG) | | Toggle mouse wheel support. | With prefix argument ARG, turn on if positive, otherwise off. | Returns non-nil if the new state is enabled. `---- But apparently the only the mode is turned off if ARG is zero or negative: ELISP> (cons (mouse-wheel-mode 1) mouse-wheel-mode) (t . t) ELISP> (cons (mouse-wheel-mode t) mouse-wheel-mode) (t . t) ELISP> (cons (mouse-wheel-mode 0) mouse-wheel-mode) (nil) ELISP> (cons (mouse-wheel-mode -1) mouse-wheel-mode) (nil) ELISP> (cons (mouse-wheel-mode 'foo) mouse-wheel-mode) (t . t) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs