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.bugs Subject: bug#61307: 30.0.50; pixel-scroll-precision-mode: window-scroll-functions? Date: Mon, 13 Feb 2023 05:31:00 +0200 Message-ID: <83mt5ifdhn.fsf@gnu.org> References: <87y1pbsgu5.fsf@web.de> <83h6vzq9at.fsf@gnu.org> <878rhascr8.fsf@web.de> <83wn4ngjvp.fsf@gnu.org> <875yc6cnmk.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30699"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61307@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 13 04:32:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pRPZe-0007jK-Nm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Feb 2023 04:32:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRPZU-0001Kp-Kn; Sun, 12 Feb 2023 22:32:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRPZT-0001JJ-2A for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 22:32:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRPZS-00054b-MY for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 22:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRPZS-0007OH-Cd for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 22:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Feb 2023 03:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61307 X-GNU-PR-Package: emacs Original-Received: via spool by 61307-submit@debbugs.gnu.org id=B61307.167625909328363 (code B ref 61307); Mon, 13 Feb 2023 03:32:02 +0000 Original-Received: (at 61307) by debbugs.gnu.org; 13 Feb 2023 03:31:33 +0000 Original-Received: from localhost ([127.0.0.1]:47296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRPYz-0007NO-KG for submit@debbugs.gnu.org; Sun, 12 Feb 2023 22:31:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRPYy-0007N9-3e for 61307@debbugs.gnu.org; Sun, 12 Feb 2023 22:31:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRPYs-00051d-QJ; Sun, 12 Feb 2023 22:31:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gvrU0i6Jj6pO9aKlfw1/E25PzO9VW+HDrTK9tkU11TY=; b=GeqPXrx5VTxcR5oYUkE5 1AxeGUGkqm+gNNXcE2Sst4jIexKG2B4QbGFQvCnmVQncvmeVXNIQFc8akLh6s6wCkj/+Hk14BF+Qn axCkXuwTk5l3w+ZDNi0P48oFNFnB0JbqQB1EHqXIuqSHxZDBSjfoUAvGvSu7Hk6NgYLUqaCWJDIs7 utz2dkUBacG2XzSqESZiwkEXiOdf7Hxy0+5NUKb9FKHHAb/1UHgwRC2MbyeNZL7P73sJ5u63sc1uS Rhdp541g7YqZC0Vu+bmnRw7N1ut26VMq5TuGyHWU233VZh/UGSIThmEejTQYtOZqozaX/EHs8mHRF osCwSy+aWrBZdg==; Original-Received: from [87.69.77.57] (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 1pRPYq-000180-Lr; Sun, 12 Feb 2023 22:31:26 -0500 In-Reply-To: <875yc6cnmk.fsf@web.de> (message from Michael Heerdegen on Mon, 13 Feb 2023 03:20:19 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255458 Archived-At: > From: Michael Heerdegen > Cc: 61307@debbugs.gnu.org > Date: Mon, 13 Feb 2023 03:20:19 +0100 > > Eli Zaretskii writes: > > > So I guess we should add calls to window-scroll-functions inside > > pixel-scroll.el functions which actually scroll. Patches welcome. > > pixel-scroll-mode (without "precision") already behaves correctly, > AFAICT. > > pixel-scroll-precision-mode has basically one command in its minor mode > map that does not call the w-s-functions: `pixel-scroll-precision'. > > So the naïve approach would be: call `window-scroll-functions' at the > end of that command. Is this the right direction? Else I guess I'm not > qualified here. Haven't checked that momentum stuff (for scrolling) yet. Each command would be too often, I think, since this could be every pixel. So I thought about some factor, perhaps configurable via a variable, that would cause the call to be done every N pixels of scroll. WDYT?