all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs Development <emacs-devel@gnu.org>,
	Dani Moncayo <dmoncayo@gmail.com>
Subject: Re: mouse-wheel-scroll
Date: Sun, 2 Apr 2017 11:41:39 +0100	[thread overview]
Message-ID: <CAPM58ohwYtdLkLK9Q40FW4=ZDBYkD5r-+UAa-VDf6TOHd9-z2Q@mail.gmail.com> (raw)
In-Reply-To: <83shls42wj.fsf@gnu.org>

On 1 April 2017 at 15:29, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Richard Copley <rcopley@gmail.com>
>> Date: Fri, 31 Mar 2017 20:02:25 +0100
>> Cc: Dani Moncayo <dmoncayo@gmail.com>, Emacs Development <emacs-devel@gnu.org>
>>
>> On MS Windows, one WM_MOUSEWHEEL event doesn't always mean the same
>> as another. Programs need to examine the wParam to find the scroll
>> distance. As far as I can tell Emacs doesn't do that.
>
> Not sure what you mean by "examine wParam".  We do use the recommended
> GET_WHEEL_DELTA_WPARAM macro.

So we do. Good. Sorry, I missed that.

I had thought we were treating each message as single-notch scroll.
It seemed like that could explain some of the strange scroll speeds
reported. My mistake.

Apologies for the delayed response too.

>> This might (possibly) explain Kunihiro's results
>
> Were they on MS-Windows?  I'm not sure.

We'd have had to ask, but it's a moot point now as far as this idea is
concerned.

>> if what Raymond Chen calls a
>> "sub-detent mouse" was involved. (See "Scrollbars bart [sic] 6 – The wheel",
>> "https://blogs.msdn.microsoft.com/oldnewthing/20030807-00/?p=42963".)
>
> What that blog suggests, AFAIU, means that the amount of scrolling
> could not be controlled via the system customization interfaces, only
> via Emacs's user options.

I'm confused. The blog says "the amount of scrolling is a user setting
which must be respected", and the sample code "requeries the user's
desired scroll delta at each mouse wheel message". But I don't see
anything there that applies to Emacs's user options. They are outside
its scope.

> Is that what we want?  It would mean that
> Emacs behaves differently from other applications on the same system.

Confused again. The blog is only about the interpretation of wheel messages.
How we respond to the messages is under our control. What they mean is not.

I posted the blog because it's a good explanation of the basics (remember
from earlier that I stupidly thought I'd found a big mistake?) and to say
what a sub "detent wheel" was.



  reply	other threads:[~2017-04-02 10:41 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28 23:13 mouse-wheel-scroll Tak Kunihiro
2017-03-29  2:39 ` mouse-wheel-scroll Eli Zaretskii
2017-03-29  6:06   ` mouse-wheel-scroll Tak Kunihiro
2017-03-29  7:36 ` mouse-wheel-scroll martin rudalics
2017-03-29  7:44   ` mouse-wheel-scroll Dani Moncayo
2017-03-29 19:09     ` mouse-wheel-scroll Philipp Stephani
2017-03-29 21:18       ` mouse-wheel-scroll Simen Heggestøyl
2017-03-29 21:22 ` mouse-wheel-scroll Kaushal Modi
2017-03-30  2:47   ` mouse-wheel-scroll Eli Zaretskii
2017-03-30  5:07     ` mouse-wheel-scroll Tak Kunihiro
2017-03-30 18:15       ` mouse-wheel-scroll Eli Zaretskii
2017-03-30 18:39         ` mouse-wheel-scroll Stefan Monnier
2017-03-30 20:34           ` mouse-wheel-scroll Eli Zaretskii
2017-03-31  0:26         ` mouse-wheel-scroll Tak Kunihiro
2017-03-31  6:39           ` mouse-wheel-scroll Eli Zaretskii
2017-03-31  6:55             ` mouse-wheel-scroll Dani Moncayo
2017-03-31  8:01               ` mouse-wheel-scroll Eli Zaretskii
2017-03-31  8:53                 ` mouse-wheel-scroll Dani Moncayo
2017-03-31  9:05                   ` mouse-wheel-scroll Eli Zaretskii
2017-03-31  9:24                     ` mouse-wheel-scroll Dani Moncayo
2017-03-31 12:22                       ` mouse-wheel-scroll Eli Zaretskii
2017-03-31 19:02                         ` mouse-wheel-scroll Richard Copley
2017-04-01 14:29                           ` mouse-wheel-scroll Eli Zaretskii
2017-04-02 10:41                             ` Richard Copley [this message]
2017-04-02 16:37                               ` mouse-wheel-scroll Eli Zaretskii
2017-04-01  8:17                   ` mouse-wheel-scroll Anders Lindgren
2017-03-31  9:04             ` mouse-wheel-scroll Tak Kunihiro
2017-04-02 23:20             ` mouse-wheel-scroll Tak Kunihiro
2017-04-03  2:34               ` mouse-wheel-scroll Eli Zaretskii
2017-04-03  5:50                 ` mouse-wheel-scroll Tak Kunihiro
2017-04-03 14:37                   ` mouse-wheel-scroll Eli Zaretskii
2017-04-03 23:07                     ` mouse-wheel-scroll Tak Kunihiro
2017-04-04 12:35                     ` mouse-wheel-scroll Alan Third
2017-03-30  7:29     ` mouse-wheel-scroll Dani Moncayo
2017-03-30  7:29     ` mouse-wheel-scroll martin rudalics
2017-03-30 13:44     ` mouse-wheel-scroll Kaushal Modi
  -- strict thread matches above, loose matches on Subject: below --
2017-03-31 14:02 mouse-wheel-scroll Angelo Graziosi
2017-03-31 22:37 ` mouse-wheel-scroll Richard Stallman
2017-04-01  8:13   ` mouse-wheel-scroll Angelo Graziosi

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='CAPM58ohwYtdLkLK9Q40FW4=ZDBYkD5r-+UAa-VDf6TOHd9-z2Q@mail.gmail.com' \
    --to=rcopley@gmail.com \
    --cc=dmoncayo@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.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.