GNU bug report logs -
#5557
<left-margin> <double-wheel-down> is undefined
Previous Next
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 #59 received at 5557 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Wed, 12 Aug 2020 22:34:10 -0700
> Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>, 5557 <at> debbugs.gnu.org,
> lennart.borgman <at> gmail.com
>
> > Nowadays practically all applications scroll the window vertically
> > regardless of where the mouse pointer is - even when it's on the
> > horizontal scroll bar. The only exception is the title bar where some
> > window managers optionally "roll" the window in or out.
>
> That strengthens the case for doing the same in Emacs.
>
> I have attached a patch which implements this functionality.
> Any comments?
I have some:
> +(defun mouse-wheel--create-scroll-keys-get-key (binding event)
> + "Given BINDING and EVENT, return symbol for key.
> +Arguments are like in `mouse-wheel--create-scroll-keys'."
> + (intern (concat (pcase (caar binding)
> + ('alt "A-") ('control "C-") ('hyper "H-")
> + ('meta "M-") ('shift "S-") ('super "s-"))
> + (symbol-name event))))
I don't think I understand why we want to usurp mouse-wheel with every
possible modifier. I think the request was to honor only unmodified
mouse-wheel scrolls, no? Let's leave the modifiers to user bindings.
> +(defun mouse-wheel--create-scroll-keys (binding event)
> + "Return list of key vectors for BINDING and EVENT.
> +BINDING is an element in `mouse-wheel-scroll-amount'. EVENT is
> +an event used for scrolling, e.g. `mouse-wheel-down-event'."
> + (let ((prefixes (list 'left-margin 'right-margin
> + 'left-fringe 'right-fringe))
Martin says (and I concur) that we should also do this on horizontal
scroll bars and on the mode/header-lines.
Finally, this needs a NEWS entry.
Thanks.
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.