GNU bug report logs - #5557
<left-margin> <double-wheel-down> is undefined

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Wed, 10 Feb 2010 13:22:01 UTC

Severity: minor

Tags: patch

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #71 received at 5557 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 5557 <at> debbugs.gnu.org, rudalics <at> gmx.at, larsi <at> gnus.org,
 lennart.borgman <at> gmail.com
Subject: Re: bug#5557: <left-margin> <double-wheel-down> is undefined
Date: Sat, 15 Aug 2020 20:40:01 +0300
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Fri, 14 Aug 2020 14:34:25 -0700
> Cc: rudalics <at> gmx.at, larsi <at> gnus.org, 5557 <at> debbugs.gnu.org, 
> 	lennart.borgman <at> gmail.com
> 
> Plus I really don't know why someone would want to do anything but
> scroll using the mouse wheel

??? We do that already: C-wheel-up increases the font size.  It
shouldn't be hard to imagine similar bindings on the fringe, for
example.

> OK, I guess we will have to agree to disagree.

Yes.

> One thing I don't understand is how binding to scroll-bar is supposed to
> work.  I tried the following, but it didn't work (tested in GTK and
> lucid):
> 
>     (global-set-key [vertical-scroll-bar mouse-5] 'foo-mouse-message)
>     (defun foo-mouse-message (event)
>       (interactive "e")
>       (message "%s" (format-time-string "%H:%M:%S")))
> 
> (Change vertical-scroll-bar to left-fringe to see that it works there.)

First, you don't need to do anything for vertical-scroll-bar, as the
mouse wheel is already handled there, at least on my system.

On a horizontal scroll-bar, if I use this:

  (global-set-key [horizontal-scroll-bar wheel-up] 'foo-mouse-message)

I get the expected result on my system.

What do you see Emacs say if you turn the wheel on the horizontal
scroll-bar in "emacs -Q"?




This bug report was last modified 4 years and 273 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.