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: Fri, 26 Nov 2021 20:05:00 +0800 Message-ID: <8735njf7gz.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> <83pmqn2l3s.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="19853"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: rpluim@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 26 13:20:00 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 1mqaCt-0004t5-UP for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Nov 2021 13:20:00 +0100 Original-Received: from localhost ([::1]:42572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqaCs-0004i8-QM for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Nov 2021 07:19:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqZyk-000521-0y for emacs-devel@gnu.org; Fri, 26 Nov 2021 07:05:22 -0500 Original-Received: from sonic305-21.consmr.mail.ne1.yahoo.com ([66.163.185.147]:44914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqZyc-0000i9-0c for emacs-devel@gnu.org; Fri, 26 Nov 2021 07:05:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637928310; bh=HTungN8pmslwvNgWokYnRvhmKzwzvotbltK4SCvkkXc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=n2qpKVegGhNoppSCbwM/WxHfI9eKQWgtqRJs/vljIa2XHwCeQFiZVOoZl7ZYlrVhCeHMaDqyqt4SWhBGFbGwJj0Doi12cByk0c0oWGY/1urxremzOzMuvI4e+h4YvCrb8MaSFlHMysSI4Dem5pEkrkt6jxgWjP8d4dwGhKwf6NKBdNzLLXtIINtQctSNBCANPAoo2m/0ZWQEJGl+W4I+yc35Oa9w1IH1RIIn30J9/J76fJL/7uGR4P6Sxw//uKU1slcuYsQln2BIcJBCc7Col8mmvSTh9wWfumov7k/ChoF6lkYmTj/5uOs7wAqkTMqGtY+5SQCiUF7PBaoS2IjDbA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637928310; bh=CWwCfMd0xHbxtholINaEp+TwRFKkwRebc5+cpUwKIZ2=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Vfk+8aBnMT0+zH2SQU1m930LlkdOD6F5vD5Dm7EFYrhcA8UfxGXXkNXgFIy6sVr/tRPNQDZgjbB60YHykjfjBn5CRaE2FNEaaMV1P7Q07r71xHN6QT5ipgXoE62gAmZ0FqnqR/XUEUlaI9EWiCR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aSr3CPw X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Fri, 26 Nov 2021 12:05:10 +0000 Original-Received: by kubenode518.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 550f8650eb18017d970d039cbcc7ad6b; Fri, 26 Nov 2021 12:05:06 +0000 (UTC) In-Reply-To: <83pmqn2l3s.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 26 Nov 2021 13:48:55 +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.147; envelope-from=luangruo@yahoo.com; helo=sonic305-21.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:280225 Archived-At: Eli Zaretskii writes: > Btw, I have a general question regarding this "pixel-resolution" > scrolling support: > With mwheel.el, Emacs users can configure the meaning of each scroll > event in terms of text lines, via the mouse-wheel-scroll-amount > variable. But with this new mode, there's no such user control: the > conversion of the scroll amount reported by the wheel event to pixels > is either hard-coded in our code, or (on NS) determined by the OS. > Does it strike someone as "un-Emacsy"? It seems OK to me, but we could perhaps have customizations for that. The problem is that I don't see how such a customization could be implemented on platforms such as NS, or in the future, the PGTK port. > Also, if we detect that the mouse wheel is capable of reporting > fine-resolution scrolls, we use that unconditionally, and users have > no say about that. So if a user sets x-coalesce-scroll-events to nil > manually, but doesn't enable this new mode, they suddenly get much > faster scrolling because mwheel.el disregards the pixel-wise deltas. > Right? Yes, that's correct. > So maybe we should make x-coalesce-scroll-events and internal > variable, and say so in its doc string, because it should only be set > by this mode and its ilk, which do pay attention to the pixel deltas? I could imagine some user customizations making use of it, but I have no objection to making it an internal variable. Thanks.