help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scroll mouse


From: Reiner Steib
Subject: Re: scroll mouse
Date: Thu, 25 Aug 2005 16:00:37 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On Thu, Aug 25 2005, Johan Bockgård wrote:

> "Charles philip Chan" <address@hidden> writes:
>> On 25 Aug 2005, address@hidden 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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]