all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* scroll mouse
@ 2005-08-25  6:16 bernhard
  2005-08-25  6:30 ` Charles philip Chan
  2005-08-25  6:40 ` Paulo da Costa
  0 siblings, 2 replies; 10+ messages in thread
From: bernhard @ 2005-08-25  6:16 UTC (permalink / raw)


Hello,

is there any way to get a scroll mouse to be used with GNU Emacs, even if
this means recompile?


Bernhard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  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  6:40 ` Paulo da Costa
  1 sibling, 1 reply; 10+ messages in thread
From: Charles philip Chan @ 2005-08-25  6:30 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 430 bytes --]

On 25 Aug 2005, bbfk@gmx.net wrote:

> is there any way to get a scroll mouse to be used with GNU Emacs, even if
> this means recompile?

Hum, it look like mouse-wheel-mode is set to nil in your copy of
Emacs. Try put this in your .emacs:

(mouse-wheel-mode t)

Charles

-- 
"Computers may be stupid, but they're always obedient. Well, almost always."

  -- Larry Wall (Open Sources, 1999 O'Reilly and Associates)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  2005-08-25  6:16 scroll mouse bernhard
  2005-08-25  6:30 ` Charles philip Chan
@ 2005-08-25  6:40 ` Paulo da Costa
  2005-09-01  3:43   ` Stefan Monnier
  1 sibling, 1 reply; 10+ messages in thread
From: Paulo da Costa @ 2005-08-25  6:40 UTC (permalink / raw)


bernhard wrote:

> is there any way to get a scroll mouse to be used with GNU Emacs, even if
> this means recompile?

In your custom.el, add the line

 '(mouse-wheel-mode t nil (mwheel))

to the custom-set-variables list.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  2005-08-25  6:30 ` Charles philip Chan
@ 2005-08-25  7:02   ` Charles philip Chan
  2005-08-25 12:22     ` Johan Bockgård
  0 siblings, 1 reply; 10+ messages in thread
From: Charles philip Chan @ 2005-08-25  7:02 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 286 bytes --]

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)

Charles

-- 
panic("CPU too expensive - making holiday in the ANDES!");
        linux-2.2.16/arch/mips/kernel/traps.c

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  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 17:35       ` Charles philip Chan
  0 siblings, 2 replies; 10+ messages in thread
From: Johan Bockgård @ 2005-08-25 12:22 UTC (permalink / raw)


"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.

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  2005-08-25 12:22     ` Johan Bockgård
@ 2005-08-25 14:00       ` Reiner Steib
  2005-08-25 14:37         ` Johan Bockgård
  2005-08-25 17:35       ` Charles philip Chan
  1 sibling, 1 reply; 10+ messages in thread
From: Reiner Steib @ 2005-08-25 14:00 UTC (permalink / raw)


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/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  2005-08-25 14:00       ` Reiner Steib
@ 2005-08-25 14:37         ` Johan Bockgård
  2005-08-26  8:18           ` bernhard
  0 siblings, 1 reply; 10+ messages in thread
From: Johan Bockgård @ 2005-08-25 14:37 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  2005-08-25 12:22     ` Johan Bockgård
  2005-08-25 14:00       ` Reiner Steib
@ 2005-08-25 17:35       ` Charles philip Chan
  1 sibling, 0 replies; 10+ messages in thread
From: Charles philip Chan @ 2005-08-25 17:35 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 535 bytes --]

On 25 Aug 2005, bojohan+news@dd.chalmers.se wrote:

> The former works. The latter is wrong.

Thanks, you learn something new everyday. To tell you the truth, I never
had to set it up manually. It worked out of the box with CVS Emacs.

I got confused because mouse-wheel-mode is both a function and
variable. I just glanced over the variable docstring without reading it
fully. :-(

Charles

-- 
"The IETF motto is 'rough consensus and running code'"
  
  -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  2005-08-25 14:37         ` Johan Bockgård
@ 2005-08-26  8:18           ` bernhard
  0 siblings, 0 replies; 10+ messages in thread
From: bernhard @ 2005-08-26  8:18 UTC (permalink / raw)


Am Thu, 25 Aug 2005 16:37:52 +0200 schrieb Johan Bockgård:

> 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.
>>
thanks a lot

Bernhard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: scroll mouse
  2005-08-25  6:40 ` Paulo da Costa
@ 2005-09-01  3:43   ` Stefan Monnier
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Monnier @ 2005-09-01  3:43 UTC (permalink / raw)


> In your custom.el, add the line
>  '(mouse-wheel-mode t nil (mwheel))
> to the custom-set-variables list.

You mean the "list" that starts with a warning like:

  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.

Please don't recommend such things to others:
Either use M-x customize-variable RET mouse-wheel-mode RET
or add (mouse-wheel-mode 1) in your .emacs.


        Stefan

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-09-01  3:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.