unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+from-uce@imap.cc>
Subject: Re: scroll mouse
Date: Thu, 25 Aug 2005 16:00:37 +0200	[thread overview]
Message-ID: <v97jearu9m.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: yoijoe7m5hq9.fsf@telperien.dd.chalmers.se

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

> "Charles philip Chan" <cpchan@sympatico.ca> writes:
>> On 25 Aug 2005, cpchan@sympatico.ca 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	other threads:[~2005-08-25 14:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-25  6:16 scroll mouse bernhard
2005-08-25  6:30 ` Charles philip Chan
2005-08-25  7:02   ` Charles philip Chan
2005-08-25 12:22     ` Johan Bockgård
2005-08-25 14:00       ` Reiner Steib [this message]
2005-08-25 14:37         ` Johan Bockgård
2005-08-26  8:18           ` bernhard
2005-08-25 17:35       ` Charles philip Chan
2005-08-25  6:40 ` Paulo da Costa
2005-09-01  3:43   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v97jearu9m.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+from-uce@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).