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 20:11:45 +0800 Message-ID: <87r1b1ajcu.fsf@yahoo.com> References: <20211125030922.2353.1129@vcs0.savannah.gnu.org> <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> <87sfvhc1hp.fsf@yahoo.com> <83tufxzwq9.fsf@gnu.org> <87k0gtc0z5.fsf@yahoo.com> <87fsrhc0lz.fsf@yahoo.com> <83pmqlzvel.fsf@gnu.org> <877dctbzno.fsf@yahoo.com> <83ilwdzv0i.fsf@gnu.org> <8735nhbz74.fsf@yahoo.com> <83h7bxzu0b.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="38913"; 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 13:12:54 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 1mqwZa-0009ye-71 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 13:12:54 +0100 Original-Received: from localhost ([::1]:49312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqwZY-0002zr-S7 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 07:12:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqwYh-0002Ii-50 for emacs-devel@gnu.org; Sat, 27 Nov 2021 07:11:59 -0500 Original-Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]:39581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqwYe-000461-SI for emacs-devel@gnu.org; Sat, 27 Nov 2021 07:11:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638015113; bh=83ID/cNHE8bHWiC7dxWwiSi5+6JoLbl2pxA5c+ZAoeI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=MDoFoHNuxLfwTCoIB6godhdY1QwkvrHlqObuFbsQQamsHfP2MlCUsuEXypvXAW0Iry2X1gprtnrLv3WyNikp2yN9q7IeBIhNxut6Ph/fyBODL+54H4xYLk6WtRsXAgk2O803c/WzTMUjiLJqKvWT72SwSr7y7pgyb1LHZ4gvSrAbX8/4NulKN5gFzm1RtUR7267sQrQZLRP/53MPIve3j1wnz8D5NxJJ0An9bFyox7IC8CkAOJjk52DCpAhEB3J8BtALlYXCZ2voAqzNDuzg2wLoY9jP2HDwlNcMAGstMvToH5d6spdEFJBsd4Qz4WOeCiLX6nM7LLeoUGeuzZCQ+g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638015113; bh=l6cYEEjswpBKLNZ9+JolSN+2KTo5yNRQe8LcD5EJi+u=; h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Bquswx.jMevAX5aW8BtWaFh9pXBsG8Zmvsb746mA2kyBgP6p_5XlaTz NDWrJwywJrB8mdkOIq9lRongchkwhnxq4hanRAIswqEvZeIGWCJLU.HTO_lhOYLjNhDLBPP2hIoM 4wEeSdR.qcSmoKph9Jb5ucu0Yfxt5De288OMYcDsez X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sat, 27 Nov 2021 12:11:53 +0000 Original-Received: by kubenode502.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID ce6ad16c371b3a8782fcdb1f728f2acd; Sat, 27 Nov 2021 12:11:50 +0000 (UTC) In-Reply-To: <83h7bxzu0b.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Nov 2021 14:02:28 +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.188.204; envelope-from=luangruo@yahoo.com; helo=sonic311-23.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:280333 Archived-At: Eli Zaretskii writes: > I did mean what happens when the precise scrolling information is > there. Thanks, then in that case a 5-element list is always produced. >> AFAIU (and this may not be a very accurate understanding), if event->arg >> is a cons, it means it might have line scroll information, and has pixel >> scroll information. >> >> Otherwise, if it is a number, it has only line information. >> >> Otherwise, if the wheel event is double or triple, `double_click_count' >> will be included. >> >> And otherwise, only the event name and position will be included. > > So I think the manual should describe these possibilities, i.e. that > every member past POSITION can be present or absent, and if it's > present, the next one could be present or absent, etc. Does this look OK to you? Thanks. @item (wheel-up @var{position} @var{clicks} @var{lines} @var{pixel-delta}) @itemx (wheel-down @var{position} @var{clicks} @var{lines} @var{pixel-delta}) These kinds of event are generated by moving a mouse wheel. The @var{position} element is a mouse position list (@pxref{Click Events}), specifying the position of the mouse cursor when the event occurred. @var{clicks}, if present, is the number of times in quick succession the wheel has been moved. @xref{Repeat Events}. @var{lines}, if present and not @code{nil}, is the number of screen lines that should be scrolled. @var{pixel-delta}, 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. Each parameters after @var{position} may be absent. Additionally, @var{lines} may be @code{nil}.