From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: scroll mouse Date: Thu, 25 Aug 2005 16:37:52 +0200 Organization: Chalmers University of Technology, Sweden Message-ID: References: <87y86q5y0y.fsf@MagnumOpus.khem> <87r7ci5wiq.fsf@MagnumOpus.khem> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1124981157 10332 80.91.229.2 (25 Aug 2005 14:45:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2005 14:45:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 25 16:45:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E8Ivb-00024X-2f for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Aug 2005 16:42:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8IzT-0007um-Od for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Aug 2005 10:46:03 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!elk.ncren.net!news2.wam.umd.edu!nntp.abs.net!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.116.9.MISMATCH!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: telperien.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (usg-unix-v) Cancel-Lock: sha1:m0U5V6yb/64SbGX69tPprQh2kIg= Original-Xref: shelby.stanford.edu gnu.emacs.help:133458 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28989 Archived-At: Reiner Steib writes: > On Thu, Aug 25 2005, Johan Bockgård wrote: > >> "Charles philip Chan" 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