From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master e37eb7f: Add support for pixel wheel deltas on NS Date: Fri, 26 Nov 2021 13:48:55 +0200 Message-ID: <83pmqn2l3s.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26215"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, emacs-devel@gnu.org To: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 26 12:49:49 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 1mqZjh-0006f6-6t for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Nov 2021 12:49:49 +0100 Original-Received: from localhost ([::1]:32842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqZjg-0008Rf-9z for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Nov 2021 06:49:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqZim-0007mZ-IL for emacs-devel@gnu.org; Fri, 26 Nov 2021 06:48:52 -0500 Original-Received: from [2001:470:142:3::e] (port=37900 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqZim-0006a0-6a; Fri, 26 Nov 2021 06:48:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PfWY3wPiCSHN38G1nDKbH28SNBdeEwd2czPfUfGfbSo=; b=RXisvVMDJaqN qsjMBl1/oJfnsaBQa2af+XeVmQrFhAGL/oSUSk28vzuBjTXdVEC90aM3Gyj7skIBwSd4damcDX365 TOst9ukIzX3bicGHi0TNNywM0+qHRyw+4eyvfEpDSnsuQMqMDxpvhb8Vc69uLhzWPATcAhBYY8tQn c61af7c+3aMwze0I52/5YMpfRaouB7AX0f+ayDFBmIL23eYuMOe7BrWyuY3N4Ur4MUFnuQ++pp/Uz 374MmdBW1pHDFfjRptsGizIEjwxV61RVu8GZmrJbGV0oVRc/Jf/hfLEhhQSBCSCEhttggsJSjpRfG iseaiGk1WSzPV5sr8Aksug==; Original-Received: from [87.69.77.57] (port=2538 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqZil-0005qy-TT; Fri, 26 Nov 2021 06:48:52 -0500 In-Reply-To: <83r1b32lvr.fsf@gnu.org> (message from Eli Zaretskii on Fri, 26 Nov 2021 13:32:08 +0200) 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:280221 Archived-At: 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"? 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? 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?