all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: RE: mwheel scroll horizontally
Date: Mon, 4 Oct 2010 17:01:16 -0700	[thread overview]
Message-ID: <DEACA322CDF14367BB3F2BDCD4155B0B@us.oracle.com> (raw)
In-Reply-To: <87hbh1cyu9.fsf@mail.jurta.org>

> > That's the wrong place for such control, IMO.  I mean that 
> > it shouldn't be hard-coded like that.  We should leave S-
> > and C- open for use with the wheel, and not hard-code them
> > to representing a scroll amount.
> 
> The Commentary in mwheel.el says:
> 
>   ;; I for one would prefer some way of converting the button4/button5
>   ;; events into different event types, like 'mwheel-up' or
>   ;; 'mwheel-down', but I cannot find a way to do this very easily (or
>   ;; portably), so for now I just live with it.
> 
> Is it what you mean?

No. I think that's something different.

I just meant that the option in question (whatever it's called) should not
decide once and for all, by the values it offers, that users can use S- and C-
for vertical scrolling and M- for horizontal scrolling, and it should not decide
once and for all that users can choose two scroll amounts for vertical scrolling
but only one amount for horizontal scrolling.  All possibilities should be open
to users.

My point was only that the user option should let users pick any combination of
modifiers and amounts for vertical and horizontal.  Choose a default
combination, OK, but don't hem in the user wrt the modifiers, scroll directions,
amounts (or even wheel direction: which wheel direction (up/down) maps to which
scroll direction (up/down - or left/right)).

Make the option as general as possible, while still making it easy to choose a
value.

> > There is nothing sacred about window scrolling - a mouse 
> > wheel can do lots more interesting things in Emacs than
> > scroll a window.
> 
> Yes, they are not just about scrolling.  For instance, in Gimp/Chrome
> C-mwheel zooms in/out (like `C-x C-+' `C-x C--' 
> `text-scale-adjust' in Emacs).

Yes.  My only point there was that sometimes users and library writers can
mistakenly get the impression that bindings we provide by default (e.g. the
wheel is bound for scrolling) are not to be overridden.  Anything we can do to
dispel such an impression helps.




  reply	other threads:[~2010-10-05  0:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-04 22:50 mwheel scroll horizontally Juri Linkov
2010-10-04 23:21 ` Drew Adams
2010-10-04 23:39   ` Juri Linkov
2010-10-05  0:01     ` Drew Adams [this message]
2010-10-05  4:29   ` Stephen J. Turnbull
2010-10-04 23:32 ` Juri Linkov
2010-10-07  9:18 ` Stefan Monnier
2010-10-07 22:05   ` Juri Linkov
2010-10-08 10:58     ` Jason Rumney
2010-10-08 23:56     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DEACA322CDF14367BB3F2BDCD4155B0B@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.