From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master e37eb7f: Add support for pixel wheel deltas on NS Date: Sat, 27 Nov 2021 18:54:42 +0800 Message-ID: <87sfvhc1hp.fsf@yahoo.com> References: <20211125030922.2353.1129@vcs0.savannah.gnu.org> <20211125030924.7258E2094B@vcs0.savannah.gnu.org> <871r34h6pi.fsf@gmail.com> <87fsrkzfq1.fsf@yahoo.com> <83tug05whz.fsf@gnu.org> <87tufzycli.fsf@yahoo.com> <837dcv4e79.fsf@gnu.org> <87wnkvflk7.fsf@yahoo.com> <83zgpr2uvr.fsf@gnu.org> <87fsrjfeb1.fsf@yahoo.com> <83r1b32lvr.fsf@gnu.org> <877dcvf8ec.fsf@yahoo.com> <831r323lgs.fsf@gnu.org> <87v90ecvoa.fsf@yahoo.com> <83lf1a1651.fsf@gnu.org> <875ysecd75.fsf@yahoo.com> <83fsri13k0.fsf@gnu.org> <87wnkuax4q.fsf@yahoo.com> <83y259zxgz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8789"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 11:56:14 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqvNN-000293-3K for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 11:56:13 +0100 Original-Received: from localhost ([::1]:42142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqvNL-0006cE-Cy for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 05:56:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqvM7-0005RN-VK for emacs-devel@gnu.org; Sat, 27 Nov 2021 05:54:55 -0500 Original-Received: from sonic305-20.consmr.mail.ne1.yahoo.com ([66.163.185.146]:33600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqvM5-0001Pr-4q for emacs-devel@gnu.org; Sat, 27 Nov 2021 05:54:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638010491; bh=S4rVeLwVnIoZK4OOdXdwi8SpZZcMR9JpvCEBJ/XGtb0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=IQl/eRlRhH0RbWGkGgV7yh4eYmnRWM9LFa3b5c2sWmtN3hzRi7vCo9eIFpjuNQmufTfIrgoNBjYFqOwNzVNYB0s1/Ed35Sd4GIAkrpDockRAvwamiVGhfBVENqimCfU2H6j4jqFSRsvXrXF0Hzp/zU4QgYn/TZpDlHULCa4S6Ub5aURZmHU311tFljz+qUWFlQbl3YW5BkzrEYEj+7VtJN3S3seUIjKo5f2U9gWKBCeqx0xiqXdIkV5N18Nc70bKQ6USxVcMCxGrEEHlcTa7h3gUMTaM42d3p4muBDIfOsA//EeufrajZV8H9bK0wxRPkc3CiXih+sOeiQo5rlMTKw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638010491; bh=kCki6+mwM1SfkuoPI8YokRsT8qPQxRMLfqMtPFZxGyx=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=bLQjmg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jlK8eXcv0azs3fi8tLaoHc3 0w583q9XghGrDD5aGT3OHLfLm0CDULrSLjt1OvtUXLGQ3Z8CN7DLnpoGfQmTT_GH5V1DA0mBGV7O FrO9FhcBGmgG30fDTo5lMr6iurmOUnNUDuJ7fXe4Wx X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Sat, 27 Nov 2021 10:54:51 +0000 Original-Received: by kubenode515.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7cd454cfe4edc0de42bab7b86dfb0ea6; Sat, 27 Nov 2021 10:54:47 +0000 (UTC) In-Reply-To: <83y259zxgz.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Nov 2021 12:47:40 +0200") X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.146; envelope-from=luangruo@yahoo.com; helo=sonic305-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280322 Archived-At: Eli Zaretskii writes: >> From: Po Lu >> Cc: rpluim@gmail.com, emacs-devel@gnu.org >> Date: Sat, 27 Nov 2021 15:14:13 +0800 >> >> >> On a reasonably sized frame that would be 1 to 2 pixels. >> >> > Is this with a mouse wheel or with a touchpad? I was asking about the >> > mouse wheel. >> >> This is with a mouse wheel that supports pixel values, i.e., a mouse >> wheel that has no fixed "steps". (A mouse wheel with fixed steps would >> however report a value of 1.0: every XInput 2 program I tried will >> scroll the close-to-100 pixels that implies on each turn of such a >> wheel.) > > OK, thanks. > > Btw, I'm confused by the documentation of the enhanced mouse-wheel > events. The manual says > > @item (wheel-up @var{position}) > @itemx (wheel-down @var{position}) > [...] > The event may have additional arguments after > @var{position}. The third argument after @var{position}, if present, > is a pair of the form @w{@code{(@var{x} . @var{y})}}, where @var{x} > and @var{y} are the number of pixels to scroll by in each axis. > It mentions the 3rd argument (starting from 1, I presume, given the > format of the event shown in @item). But the code in pixel-scroll.el > does: It says "the third argument after @var{position}", which is the fifth element (1-based) in the lispy event, as position is the second element (again, one-based) of the event. But I agree that the wording is confusing and can probably be improved to just mention that the fifth element contains the pixel information. Thanks.