From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: scroll mouse Date: Thu, 25 Aug 2005 16:00:37 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <87y86q5y0y.fsf@MagnumOpus.khem> <87r7ci5wiq.fsf@MagnumOpus.khem> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1124978884 2418 80.91.229.2 (25 Aug 2005 14:08:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2005 14:08:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 25 16:08:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E8IN8-00079t-B6 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Aug 2005 16:06:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8IR0-0006SS-7F for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Aug 2005 10:10:26 -0400 Original-Newsgroups: gnu.emacs.help X-Face: P05mdcZT&lL[-s2=mw~RsllZ0zZAb?vdE}.s 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:28988 Archived-At: 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): ,----[ 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/