From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.devel Subject: Re: mouse-wheel-scroll Date: Sun, 2 Apr 2017 11:41:39 +0100 Message-ID: References: <83tw6b5vm4.fsf@gnu.org> <20170330.140716.518256554.tkk@misasa.okayama-u.ac.jp> <83o9wi637e.fsf@gnu.org> <82863D66-6F78-472B-8B19-74CF469EE5B1@misasa.okayama-u.ac.jp> <83k27654sa.fsf@gnu.org> <83d1cx6fiv.fsf@gnu.org> <83a8816cl8.fsf@gnu.org> <838tnl63fg.fsf@gnu.org> <83shls42wj.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1491129777 22549 195.159.176.226 (2 Apr 2017 10:42:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Apr 2017 10:42:57 +0000 (UTC) Cc: Emacs Development , Dani Moncayo To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 02 12:42:52 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cucyA-0005BS-Vy for ged-emacs-devel@m.gmane.org; Sun, 02 Apr 2017 12:42:51 +0200 Original-Received: from localhost ([::1]:54382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cucyG-0006uz-Tp for ged-emacs-devel@m.gmane.org; Sun, 02 Apr 2017 06:42:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cucxb-0006ur-Bg for emacs-devel@gnu.org; Sun, 02 Apr 2017 06:42:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cucxa-0000qA-At for emacs-devel@gnu.org; Sun, 02 Apr 2017 06:42:15 -0400 Original-Received: from mail-ua0-x234.google.com ([2607:f8b0:400c:c08::234]:34629) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cucxY-0000mv-5m; Sun, 02 Apr 2017 06:42:12 -0400 Original-Received: by mail-ua0-x234.google.com with SMTP id 9so14915371uau.1; Sun, 02 Apr 2017 03:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xJmZnFrYXewgIT7vQV8G+W/5d8NVWJrueLmGOACC6VE=; b=ql0HL2k+ftgXU7Kcj5m7u5PpSyxh50HcIG5pBL2vYLd8biky5mBbP8uXeYzGGUyz0L N7um4xd4nEAAX0QXnTQwWn1X5cNtfqVGbFFgGStkI4GT+lj0Qom1oKrEBIZzXF57Xms+ pcyzEGyTsSg4dFydnEeXCy1M+XtCE6QbmJXQlMyEVBWI8mvTUdprBvEPJ9jOQZhGfsFs B6oVMTYPeB1J/7lRPwYaZmD9ygHam17dFPz83/v7uGUCTCTkw1UP7e/9gnQG1cr+Jya8 9VGFrdyaf59Tmcfss9bYHKgMqZSGX+2hpq8/OaBzBRGplGcCr/KEFp/dXGjFsCccynj8 9xqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xJmZnFrYXewgIT7vQV8G+W/5d8NVWJrueLmGOACC6VE=; b=OBWJ7R6Lj9bhSFwZF9ixNQdpy2JvlnW6K6fjn39u7N431VhATrden2jWSKeurTizt9 0Cil6kwR2rZb8L1F80YujgUPCghzuc5nfi9pAPD6kaHiPNmGgzYooNnB/sufqXOjxUI0 KJL0oOJaTEBBVr1Fp7ApNogvIvJdYZzJD2KVAstcjdOMsURMt+TX8wSGoDDrcUJ4MJng ftVRTeHj7AwjK6cQaMYqTFxIcFQ5vtXv6YrI8WCfHqOgoVCdLndfHdPA7PIFsBPrjmQG PBJ5YCd6rekmwIVugfXNIkJ5nw+AAbRB1tJ9tmOHLDoZLelzrcZhCEWNcxP5AQ/scnI9 XAig== X-Gm-Message-State: AFeK/H1nNR0vXV240Mjw5faUtnzDVtwWaSFIwJof9n76dKOEMmMfuTWndGgotV1ggJyyTU8fQu4HEBUdbKHlqg== X-Received: by 10.159.48.221 with SMTP id k29mr6180827uab.6.1491129729914; Sun, 02 Apr 2017 03:42:09 -0700 (PDT) Original-Received: by 10.176.71.131 with HTTP; Sun, 2 Apr 2017 03:41:39 -0700 (PDT) In-Reply-To: <83shls42wj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400c:c08::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213589 Archived-At: On 1 April 2017 at 15:29, Eli Zaretskii wrote: >> From: Richard Copley >> Date: Fri, 31 Mar 2017 20:02:25 +0100 >> Cc: Dani Moncayo , Emacs Development >> >> 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 =E2=80=93= The wheel", >> "https://blogs.msdn.microsoft.com/oldnewthing/20030807-00/?p=3D42963".) > > 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.