From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: scroll mouse
Date: Thu, 25 Aug 2005 16:37:52 +0200 [thread overview]
Message-ID: <yoijk6ia5bgf.fsf@telperien.dd.chalmers.se> (raw)
In-Reply-To: v97jearu9m.fsf@marauder.physik.uni-ulm.de
Reiner Steib <reinersteib+from-uce@imap.cc> writes:
> 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):
Yes, and that's the form I would use. (I deliberately wrote "The
former works", not "The former is correct" :).)
Seriously though, the Minor Mode Conventions say that `t' should be
OK:
The command should accept one optional argument. If the argument
is `nil', it should toggle the mode (turn it on if it is off, and
off if it is on). It should turn the mode on if the argument is a
positive integer, the symbol `t', or a list whose CAR is one of
those. It should turn the mode off if the argument is a negative
integer or zero, the symbol `-', or a list whose CAR is a negative
integer or zero. The meaning of other arguments is not specified.
--
Johan Bockgård
next prev parent reply other threads:[~2005-08-25 14:37 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
2005-08-25 14:37 ` Johan Bockgård [this message]
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=yoijk6ia5bgf.fsf@telperien.dd.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
/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).