From unknown Fri Jun 20 07:27:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57140 <57140@debbugs.gnu.org> To: bug#57140 <57140@debbugs.gnu.org> Subject: Status: New user option mouse-wheel-text-scale-buffer Reply-To: bug#57140 <57140@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:27:40 +0000 retitle 57140 New user option mouse-wheel-text-scale-buffer reassign 57140 emacs submitter 57140 Tyler Grinn severity 57140 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 09:10:23 2022 Received: (at submit) by debbugs.gnu.org; 11 Aug 2022 13:10:23 +0000 Received: from localhost ([127.0.0.1]:52037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM7x9-0005bx-7D for submit@debbugs.gnu.org; Thu, 11 Aug 2022 09:10:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:39172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM7x6-0005bo-4S for submit@debbugs.gnu.org; Thu, 11 Aug 2022 09:10:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM7x4-0003PZ-9r for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2022 09:10:19 -0400 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]:40914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM7x1-0002FV-6L for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2022 09:10:16 -0400 Received: by mail-il1-x12c.google.com with SMTP id t15so9904740ilm.7 for ; Thu, 11 Aug 2022 06:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc; bh=UHLCJ/Hi8RvSWUoSaXHto6c9/oUTqwmzvkq7IxzwDX0=; b=gsdpgk5pF6ecVvl2lQ1e+uYANEqcMjjTU4BD4HppMtKlfKXqvyVPYUgaSYqNmFcLQo D8v+yRZuc5omJz5dK+L4N6pb68wlfaO4yR8rLCdqr2z7JRE0y/+cCyJQ1M/hoUn3K9Rh 5SXx63hOPMTc9Au5as265CCPv/FZKUtJW1DV2ePpMeElF5VJsrtnxHCqtMVT1KE7fX4i 6NZprh3lq+zB8tvUyzEBI7ZEvvxsw0mxaJZghA4oThEIdQBZSP1bfRg8pQg0Zn+vV9x/ PIRtPLp/+OT40fLR6ix9rIXffqPAVf+Mg2gzETbDJm10PuUO5VzPU8OiwaVmRS9487go gKuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc; bh=UHLCJ/Hi8RvSWUoSaXHto6c9/oUTqwmzvkq7IxzwDX0=; b=wrkH/UiNwVlkW+6BO5NWVxHobgBDPDPcmEJeHZA7uN1P3sbMbnJFNjYiVD3ywWZxuN hcvnTheTCIqKfHHcyaVi16h/1PDrfea2kabgoKBfSXjTPoFTosmudXaf+RfsWCxvU5x/ 7TUveqj6wKh3NODaOkaT9Vu+OkMPwuCp7sJTavAhPz4B4ygERXQFsfHkI99IdTujCkjd NdyO9oeoVwD2UuY3CYRKZFZs7GIX+O+Dl7lb6G9CyXCX2DoU59Ycu4kaTM1XRAwYfxw6 mYyzHfvcs1OB5P1/4+ai00rp6y3dpt2htshmrfREP3/320OQHWAk4tl2XBda/i9lFbcE d7BA== X-Gm-Message-State: ACgBeo0gOVQppc+XtGaToAZ7xLpKVkJJziRwoYbRohO8ZR4KAJf4raHi 8RF0BoHBQx6WpExC6jgoHheKE7g0GitCFg== X-Google-Smtp-Source: AA6agR4VDTgiB5OWjj54RfE7J56Cm8hbGY/bXYKUcT+xQ7FhikNrFSaLOqq+qLagjjBCsa0rOd1sAA== X-Received: by 2002:a05:6e02:1b8a:b0:2df:33d1:f85 with SMTP id h10-20020a056e021b8a00b002df33d10f85mr14742323ili.81.1660223413490; Thu, 11 Aug 2022 06:10:13 -0700 (PDT) Received: from tyler-fedora ([107.181.195.249]) by smtp.gmail.com with ESMTPSA id c12-20020a02330c000000b00342a03e834esm7911034jae.3.2022.08.11.06.10.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 06:10:12 -0700 (PDT) From: Tyler Grinn To: bug-gnu-emacs@gnu.org Subject: New user option mouse-wheel-text-scale-buffer Date: Thu, 11 Aug 2022 09:10:11 -0400 Message-ID: <871qtnudsc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::12c; envelope-from=tylergrinn@gmail.com; helo=mail-il1-x12c.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain By default, mouse-wheel-(global-)text-scale increases or decreases the text scale for every scroll event. I think it's a good idea to have an option to buffer that (is that the right word?) so you can more easily choose the text scale you want. I kept the default behavior intact. Best, Tyler --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-new-user-option-mouse-wheel-text-scale-buffer.patch Content-Description: mouse-wheel-text-scale-buffer >From 062db51e9f7faa341f92feff392a2c0109aa23dc Mon Sep 17 00:00:00 2001 From: Tyler Grinn Date: Wed, 10 Aug 2022 22:32:12 -0400 Subject: [PATCH] Add new user option mouse-wheel-text-scale-buffer * lisp/mwheel.el (mouse-wheel-text-scale-buffer): New user option. (mouse-wheel-text-scale): Use it. (mouse-wheel-global-text-scale): Use it. --- lisp/mwheel.el | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/lisp/mwheel.el b/lisp/mwheel.el index ba5255fc07..816398e063 100644 --- a/lisp/mwheel.el +++ b/lisp/mwheel.el @@ -214,6 +214,14 @@ mouse-wheel-flip-direction :type 'boolean :version "26.1") +(defcustom mouse-wheel-text-scale-buffer 0 + "Buffer this many mouse scroll events before changing text scale. +By default, every scroll event will trigger one text scale adjustment. +Increase this number to hinder text scale adjustments while scrolling." + :group 'mouse + :type 'number + :version "29.1") + (defun mwheel-event-button (event) (let ((x (event-basic-type event))) ;; Map mouse-wheel events to appropriate buttons @@ -424,6 +432,9 @@ mwheel-scroll (put 'mwheel-scroll 'scroll-command t) +(defvar mouse-wheel-text-scale-counter 0 + "Keeps track of how many mouse events since last text-scale.") + (defun mouse-wheel-text-scale (event) "Adjust font size of the default face according to EVENT. See also `text-scale-adjust'." @@ -435,10 +446,16 @@ mouse-wheel-text-scale (unwind-protect (cond ((memq button (list mouse-wheel-down-event mouse-wheel-down-alternate-event)) - (text-scale-increase 1)) + (setq mouse-wheel-text-scale-counter (1- mouse-wheel-text-scale-counter)) + (when (< mouse-wheel-text-scale-counter (- mouse-wheel-text-scale-buffer)) + (setq mouse-wheel-text-scale-counter 0) + (text-scale-increase 1))) ((memq button (list mouse-wheel-up-event mouse-wheel-up-alternate-event)) - (text-scale-decrease 1))) + (setq mouse-wheel-text-scale-counter (1+ mouse-wheel-text-scale-counter)) + (when (> mouse-wheel-text-scale-counter mouse-wheel-text-scale-buffer) + (setq mouse-wheel-text-scale-counter 0) + (text-scale-decrease 1)))) (select-window selected-window)))) (declare-function global-text-scale-adjust "face-remap.el" (increment)) @@ -450,10 +467,16 @@ mouse-wheel-global-text-scale (unwind-protect (cond ((memq button (list mouse-wheel-down-event mouse-wheel-down-alternate-event)) - (global-text-scale-adjust 1)) + (setq mouse-wheel-text-scale-counter (1- mouse-wheel-text-scale-counter)) + (when (<= mouse-wheel-text-scale-counter (- mouse-wheel-text-scale-buffer)) + (setq mouse-wheel-text-scale-counter 0) + (global-text-scale-adjust 1))) ((memq button (list mouse-wheel-up-event mouse-wheel-up-alternate-event)) - (global-text-scale-adjust -1)))))) + (setq mouse-wheel-text-scale-counter (1+ mouse-wheel-text-scale-counter)) + (when (>= mouse-wheel-text-scale-counter mouse-wheel-text-scale-buffer) + (setq mouse-wheel-text-scale-counter 0) + (global-text-scale-adjust -1))))))) (defun mouse-wheel--add-binding (key fun) "Bind mouse wheel button KEY to function FUN. -- 2.37.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 09:21:16 2022 Received: (at submit) by debbugs.gnu.org; 11 Aug 2022 13:21:16 +0000 Received: from localhost ([127.0.0.1]:52043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM87f-0005t7-K4 for submit@debbugs.gnu.org; Thu, 11 Aug 2022 09:21:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:57932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM87b-0005sx-Ux for submit@debbugs.gnu.org; Thu, 11 Aug 2022 09:21:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM87E-0007y8-Qc for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2022 09:21:04 -0400 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]:43676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM879-0004E6-Qw for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2022 09:20:45 -0400 Received: by mail-il1-x132.google.com with SMTP id x2so3803768ilp.10 for ; Thu, 11 Aug 2022 06:20:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:from:to:cc; bh=SNb+2AuYJkAKLr6o9Cvrgz2G1N7b+AL7zX3CbOwA+qE=; b=bs4mQJV1pihFVxC1xsiq8kJn12ITlpTMQEDceNIIa7qtS9ZDjPySFirSV/3jskTZlE +1bHElqMfGZOemteDq4+iluw1qXKh+cZJ7dzS5zHZSRGNevpG57SpmG3d1P4dsnbvvZG t39zFzGYhW5NqbwQptV6da5wi5KWzJ72sYG2Nvgy6s6ebFPVCuZeFv1W0GYp6opJ0Egv v/jTyB/JGdhaTtoZQYNA+VD9FShoV+VnnrrW56D/OK8LRcTKOuG0Xqy2SGtyGMinIBr1 XO2qv5vzlGaWC3oJ35xVb7FdrPB9RGn6z3fb+5s72YgGvreALh3IjHEpSp3lr31MKJ6X 9sWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc; bh=SNb+2AuYJkAKLr6o9Cvrgz2G1N7b+AL7zX3CbOwA+qE=; b=nWDrVEl7/Maybk/jYzBfCwitaKeaB75e/HmoKLFQ0xsQ3wrvl6dP8Npf2PZy9ktC9o EjKmzq3GYRhx5tLWjxWiFWDz8PQ32nPDSCB20UAzb+SVxA7/8C4q8Z8Z4BqyhA5XMCYs ZXkO2i2qFiragNQaE+mBfjelAu1RwYR2m/wgV670xTgh+NArAyb+HNRSxEJt5pBo07YH JQn4hqoX2aFik3lEWAYWDNdTXAp4ixvk5BVgfzfVS/bQv0ZubsQi0Xai/TkVjdqhxvvc GJLWV0nF2PGor4shODby3fusmXZMPfPFr4AiwGovZqvZ5fS+sL9z9r6/HupGbYjLprpZ nhHA== X-Gm-Message-State: ACgBeo2aTePIXG+2ndpThYYQdOottKr8o/u9zMdc8HoxmyL1xamu60MH IBd+cPn+ScwiD36dLwSeriNfQMe/udIvOg== X-Google-Smtp-Source: AA6agR6vagDpF2nWsmuCGunIwcUW2jWKXh3QPhXnjROkGkg7batC7idXCyyitCUfbuWQM250sT9ZFg== X-Received: by 2002:a05:6e02:1ca7:b0:2df:11b7:3fe1 with SMTP id x7-20020a056e021ca700b002df11b73fe1mr15588937ill.256.1660224041513; Thu, 11 Aug 2022 06:20:41 -0700 (PDT) Received: from tyler-fedora ([107.181.195.249]) by smtp.gmail.com with ESMTPSA id e12-20020a0566380ccc00b003434d0ae6e8sm933011jak.118.2022.08.11.06.20.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 06:20:40 -0700 (PDT) From: Tyler Grinn To: bug-gnu-emacs@gnu.org Subject: Re: New user option mouse-wheel-text-scale-buffer In-Reply-To: <871qtnudsc.fsf@gmail.com> (Tyler Grinn's message of "Thu, 11 Aug 2022 09:10:11 -0400") References: <871qtnudsc.fsf@gmail.com> Date: Thu, 11 Aug 2022 09:20:39 -0400 Message-ID: <878rnuudaw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::132; envelope-from=tylergrinn@gmail.com; helo=mail-il1-x132.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Tyler Grinn writes: > By default, mouse-wheel-(global-)text-scale increases or decreases the > text scale for every scroll event. I think it's a good idea to have an > option to buffer that (is that the right word?) so you can more easily > choose the text scale you want. I kept the default behavior intact. > > Best, > > Tyler There was a typo. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-new-user-option-mouse-wheel-text-scale-buffer.patch Content-Description: mouse-wheel-text-scale-buffer >From 94f0b6a2522050b8304aab0d85f3129805c1025e Mon Sep 17 00:00:00 2001 From: Tyler Grinn Date: Wed, 10 Aug 2022 22:32:12 -0400 Subject: [PATCH] Add new user option mouse-wheel-text-scale-buffer * lisp/mwheel.el (mouse-wheel-text-scale-buffer): New user option. (mouse-wheel-text-scale): Use it. (mouse-wheel-global-text-scale): Use it. --- lisp/mwheel.el | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/lisp/mwheel.el b/lisp/mwheel.el index ba5255fc07..16a63a8105 100644 --- a/lisp/mwheel.el +++ b/lisp/mwheel.el @@ -214,6 +214,14 @@ mouse-wheel-flip-direction :type 'boolean :version "26.1") +(defcustom mouse-wheel-text-scale-buffer 0 + "Buffer this many mouse scroll events before changing text scale. +By default, every scroll event will trigger one text scale adjustment. +Increase this number to hinder text scale adjustments while scrolling." + :group 'mouse + :type 'number + :version "29.1") + (defun mwheel-event-button (event) (let ((x (event-basic-type event))) ;; Map mouse-wheel events to appropriate buttons @@ -424,6 +432,9 @@ mwheel-scroll (put 'mwheel-scroll 'scroll-command t) +(defvar mouse-wheel-text-scale-counter 0 + "Keeps track of how many mouse events since last text-scale.") + (defun mouse-wheel-text-scale (event) "Adjust font size of the default face according to EVENT. See also `text-scale-adjust'." @@ -435,10 +446,16 @@ mouse-wheel-text-scale (unwind-protect (cond ((memq button (list mouse-wheel-down-event mouse-wheel-down-alternate-event)) - (text-scale-increase 1)) + (setq mouse-wheel-text-scale-counter (1- mouse-wheel-text-scale-counter)) + (when (< mouse-wheel-text-scale-counter (- mouse-wheel-text-scale-buffer)) + (setq mouse-wheel-text-scale-counter 0) + (text-scale-increase 1))) ((memq button (list mouse-wheel-up-event mouse-wheel-up-alternate-event)) - (text-scale-decrease 1))) + (setq mouse-wheel-text-scale-counter (1+ mouse-wheel-text-scale-counter)) + (when (> mouse-wheel-text-scale-counter mouse-wheel-text-scale-buffer) + (setq mouse-wheel-text-scale-counter 0) + (text-scale-decrease 1)))) (select-window selected-window)))) (declare-function global-text-scale-adjust "face-remap.el" (increment)) @@ -450,10 +467,16 @@ mouse-wheel-global-text-scale (unwind-protect (cond ((memq button (list mouse-wheel-down-event mouse-wheel-down-alternate-event)) - (global-text-scale-adjust 1)) + (setq mouse-wheel-text-scale-counter (1- mouse-wheel-text-scale-counter)) + (when (< mouse-wheel-text-scale-counter (- mouse-wheel-text-scale-buffer)) + (setq mouse-wheel-text-scale-counter 0) + (global-text-scale-adjust 1))) ((memq button (list mouse-wheel-up-event mouse-wheel-up-alternate-event)) - (global-text-scale-adjust -1)))))) + (setq mouse-wheel-text-scale-counter (1+ mouse-wheel-text-scale-counter)) + (when (> mouse-wheel-text-scale-counter mouse-wheel-text-scale-buffer) + (setq mouse-wheel-text-scale-counter 0) + (global-text-scale-adjust -1))))))) (defun mouse-wheel--add-binding (key fun) "Bind mouse wheel button KEY to function FUN. -- 2.37.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 09:28:39 2022 Received: (at 57140) by debbugs.gnu.org; 11 Aug 2022 13:28:40 +0000 Received: from localhost ([127.0.0.1]:52049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM8Ep-00062y-K8 for submit@debbugs.gnu.org; Thu, 11 Aug 2022 09:28:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM8Em-00062j-8G for 57140@debbugs.gnu.org; Thu, 11 Aug 2022 09:28:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM8Eg-0005Qq-Tt; Thu, 11 Aug 2022 09:28:30 -0400 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=ZfdJ6c29HF47OTY/OzUtjkeBwqdqhMnYb02XEZUH6/k=; b=YTSD952aCNSz 6QR6IivJamOzysVDE9cuK2TEZyhLHM4Iowtnc/ubW2J/YQ2dvulFoQGxPQCxR96UnaStGEuJmNDK5 ZEgBKRro3d+0XRGy1kTwe7UAvbH4Uq4u7PonEoe8LkNWp1a9FMKRP5BRU5/i7x08IRkzG4maC9AXF 5weoGpUqF80u+oGNa6RIEeWQNiRqwS7ckdmt0wwKGLgh/zRyGxQkkD2nq947/8rcB2nxlquSf2hVY W18+/Ny4fS4HXJj8joLpHltBdg4SLAzH8dVyuHdEtFkszi/E5sgHad2uaOMmCQvN9HlQbXWDxBZfd YMXLzo9HUggtAMIGbyUTmg==; Received: from [87.69.77.57] (port=3904 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 1oM8Ef-0004wv-VU; Thu, 11 Aug 2022 09:28:30 -0400 Date: Thu, 11 Aug 2022 16:28:23 +0300 Message-Id: <83o7wqq58o.fsf@gnu.org> From: Eli Zaretskii To: Tyler Grinn In-Reply-To: <878rnuudaw.fsf@gmail.com> (message from Tyler Grinn on Thu, 11 Aug 2022 09:20:39 -0400) Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tyler Grinn > Date: Thu, 11 Aug 2022 09:20:39 -0400 > > > By default, mouse-wheel-(global-)text-scale increases or decreases the > > text scale for every scroll event. I think it's a good idea to have an > > option to buffer that (is that the right word?) so you can more easily > > choose the text scale you want. I kept the default behavior intact. Thanks, but isn't it better to control the amount of scaling by changing the value of text-scale-mode-step instead? Having to scroll the wheel several clicks without any effect would be confusing, I think. And text-scale-mode-step is already a user variable that is available for this purpose. So maybe you should try decreasing the default value to, say, 1.02, to see if that satisfies your needs. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 11:24:01 2022 Received: (at 57140) by debbugs.gnu.org; 11 Aug 2022 15:24:01 +0000 Received: from localhost ([127.0.0.1]:54807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMA2T-0001Fi-6d for submit@debbugs.gnu.org; Thu, 11 Aug 2022 11:24:01 -0400 Received: from mail-io1-f51.google.com ([209.85.166.51]:38721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMA2R-0001FR-MM for 57140@debbugs.gnu.org; Thu, 11 Aug 2022 11:24:00 -0400 Received: by mail-io1-f51.google.com with SMTP id e69so14904621iof.5 for <57140@debbugs.gnu.org>; Thu, 11 Aug 2022 08:23:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=W/NQkN34Ked46h2boU273Bcq4sH+co+oY7l/dmeSmbo=; b=I3ctut1rZkzql13PdN58YRMN+UOkF4Tg3/wVsFvSdUCubN8/STzL0RUFiZ7hdHPN4B 8pLDDUBeI9bDOdes1i/tB+vEtWdZT12wYZsbHsHlhhG5GwRssOGDEtJ/96aR0QofGuM7 fCO6RBYq9uqLsQAeyrhCQ4O5eGGO7CGb0dgt3i74BnN0+DwUihV0gKBCK1plcdGplIdV vCvn1hzPDfSO37UAQq7kxkZoy0rxzihtoMCP7WB+QbtOv0jXNnNjDOr5n794vEi655BY x8XNtz4rLVH2ZYMfd28UII3Z8GL/J4IqlyDycNzwv5O1MP0i8XuP1+Ko20457upXRuwq BVzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=W/NQkN34Ked46h2boU273Bcq4sH+co+oY7l/dmeSmbo=; b=QoMDX7j0bQcBoELTjRGlPnp5UUvk7e4V4Qk2HkXUKH2z5iE2EGoUGHcwqitQS7RtbA fbfUbfTfjPuSUoJqxz9l0TT6NDYtHxnZVRX2hNuOkhC26dziU9SoYKpxUnyV2TPoUMQm OmjWR+JHC8ZzH2go2XxEOnY9mi+YEfTW75yXXcsu46HcmEk36f2Y9ZbYzWncBYng9AU4 gYJjZhFHk4xkpSxDP0lHA0FgJzl7TIUVzdbt4t/cv0RmTW68TZWkSRbcglPhL16ybX2P ud6AeWT0S53pbqm10gucXFF7SvMbr2BwzomQW3DN0O9ThWmxYsNVg/gwHacZ6mY7Co3+ 3x3Q== X-Gm-Message-State: ACgBeo0PftCiMFdJ2qe1vZ6rxM7h1EBw8BQLlJlYMSkQQuIj/hBVUKS0 HkkKK6yL7H+8/BQW4naS7j8I6YmA1IdLMA== X-Google-Smtp-Source: AA6agR6P6bV/b+D+H7fxrzEEyCHzWKizpxAaCOhnt22UjfHSsWX6j7VXKi3+BodHbLBYGnsKOmhHQA== X-Received: by 2002:a05:6638:1494:b0:33f:7724:20db with SMTP id j20-20020a056638149400b0033f772420dbmr15349779jak.30.1660231433597; Thu, 11 Aug 2022 08:23:53 -0700 (PDT) Received: from tyler-fedora ([107.181.195.249]) by smtp.gmail.com with ESMTPSA id o15-20020a02a1cf000000b0034288119965sm8731379jah.160.2022.08.11.08.23.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 08:23:52 -0700 (PDT) From: Tyler Grinn To: Eli Zaretskii Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer In-Reply-To: <83o7wqq58o.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 11 Aug 2022 16:28:23 +0300") References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> <83o7wqq58o.fsf@gnu.org> Date: Thu, 11 Aug 2022 11:23:51 -0400 Message-ID: <87pmh6st14.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Tyler Grinn >> Date: Thu, 11 Aug 2022 09:20:39 -0400 >> >> > By default, mouse-wheel-(global-)text-scale increases or decreases the >> > text scale for every scroll event. I think it's a good idea to have an >> > option to buffer that (is that the right word?) so you can more easily >> > choose the text scale you want. I kept the default behavior intact. > > Thanks, but isn't it better to control the amount of scaling by > changing the value of text-scale-mode-step instead? Having to scroll > the wheel several clicks without any effect would be confusing, I > think. And text-scale-mode-step is already a user variable that is > available for this purpose. So maybe you should try decreasing the > default value to, say, 1.02, to see if that satisfies your needs. For some trackpads, controlling how many 'clicks' to scroll is quite difficult. The step size fixes the issue of scrolling too fast, but I still have trouble choosing the exact text scale I want. My preference is still for a larger step size and throttling scroll events. Thanks, Tyler From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 12:02:41 2022 Received: (at 57140) by debbugs.gnu.org; 11 Aug 2022 16:02:41 +0000 Received: from localhost ([127.0.0.1]:54852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMAdt-0002KQ-7y for submit@debbugs.gnu.org; Thu, 11 Aug 2022 12:02:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMAdr-0002K9-Ak for 57140@debbugs.gnu.org; Thu, 11 Aug 2022 12:02:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMAdm-0006B9-4O; Thu, 11 Aug 2022 12:02:34 -0400 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=2jDcSqPmBhavQVXB6b9eG/VreLCqNYFinzb2svLdoKU=; b=Q88F1UMlHOpb +eW/z0YLLK3kEFvE5slpoAS/RMuUryjeVNgChtJJI8I39vtN10w1pcUmCLZBbk6o3Zdn56N6BkpLf h5CDfQ9kmwi4dibxvTUZoU/Uj1D4HlJz0SvbtZw2tUvcJfpxipatpWMtS2CZVFXGMuy8Kc+yBfJPY JYWTO9z3ou6CZniGpbpg6m6QR35VyBRsBcQ3LluS9l1Flqhw5iQd/AiU9w7Qg7Mq3dTwhTnogd2FK Somdg8ehNpCM2W3RkdVJZPwb3ANGs/Vk4uqPO4oyu1VKl4i+L5sY6fdvG4afOfD5Y0OEM2+NC/+x4 Yv627+XTFTy1KYIZQ/jX2g==; Received: from [87.69.77.57] (port=1359 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 1oMAdl-0005QT-K9; Thu, 11 Aug 2022 12:02:33 -0400 Date: Thu, 11 Aug 2022 19:02:27 +0300 Message-Id: <83k07epy3w.fsf@gnu.org> From: Eli Zaretskii To: Tyler Grinn In-Reply-To: <87pmh6st14.fsf@gmail.com> (message from Tyler Grinn on Thu, 11 Aug 2022 11:23:51 -0400) Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> <83o7wqq58o.fsf@gnu.org> <87pmh6st14.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tyler Grinn > Cc: 57140@debbugs.gnu.org > Date: Thu, 11 Aug 2022 11:23:51 -0400 > > Eli Zaretskii writes: > > > Thanks, but isn't it better to control the amount of scaling by > > changing the value of text-scale-mode-step instead? Having to scroll > > the wheel several clicks without any effect would be confusing, I > > think. And text-scale-mode-step is already a user variable that is > > available for this purpose. So maybe you should try decreasing the > > default value to, say, 1.02, to see if that satisfies your needs. > > For some trackpads, controlling how many 'clicks' to scroll is quite > difficult. The step size fixes the issue of scrolling too fast, but I > still have trouble choosing the exact text scale I want. My preference > is still for a larger step size and throttling scroll events. Sorry, I don't understand why you need to count clicks. Typically when users change the text scale, they just turn the wheel until the size they get fits their needs. Making text-scale-mode-step smaller causes finer changes, so it's easier to be more precise in finding the desired scale. Can you explain how your proposal makes it easier than that, and why? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 13:01:02 2022 Received: (at 57140) by debbugs.gnu.org; 11 Aug 2022 17:01:02 +0000 Received: from localhost ([127.0.0.1]:54922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMBYL-0003uQ-Ob for submit@debbugs.gnu.org; Thu, 11 Aug 2022 13:01:02 -0400 Received: from mail-il1-f180.google.com ([209.85.166.180]:36841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMBYH-0003u0-R5 for 57140@debbugs.gnu.org; Thu, 11 Aug 2022 13:01:00 -0400 Received: by mail-il1-f180.google.com with SMTP id c5so542999ilh.3 for <57140@debbugs.gnu.org>; Thu, 11 Aug 2022 10:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=TK2cvODqst6KfCBURUBtWBMq5erDcuEIXyLJ1ryKfgo=; b=Td991tLcQDkViwYP8qD9do2FsHX8rwUzpaMtCwuYi8k8RqHLTfh5Yk7LfAEngok39c l4mm7BfGi6YGcNjnZNgqNyKztAAmzrOqZIsSYDd/BJCQQ7aGB01fdhTvT3tCLf44FrTl FjcQRdjvfqwiphgt6cUvhj6b5Dw99y0MqX9HJFBVXwROWK31Nx8qDZtgoxUwh0c/7N3g zdf6goi0CuWVWNBJC9SxDYUTmSk2GceISDchDdzdc8AXMqhIFxNhZx31vdVyL870Fylk 13I0nuR0yfj39CbaUmoMA1bgwE2oRE/niifyoqyudfVAPt7YSQo/2Ixzi3whTq7hUQKK tqlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=TK2cvODqst6KfCBURUBtWBMq5erDcuEIXyLJ1ryKfgo=; b=ansP8v5RU5wH/1ZJmuOPC08L5wZf9u4QP0cjLr1IZFCJZ16yPGAt4orAdExQIlk3Ys Y9+VoaoHfS+vMVh1/RXfCYPVucOmw2/mf89Ji5atdkmcD8L+cC8ZMvKNujGt1OGwxqlp NuQ0BtAXeaaLKjCGIsHQlKdIPSp+NP0KKAbD4Gfhljn3R5XSf06poXyqw+UwWBlkmkfE OZ+ZvehVNxay51geW+iRUn8atYjY9nVX3eF9OhH8cJUACPfnOfTE4ktNMfVtoml6qCj+ 8a5OQVJ6muIKxOJeiW24rm17jQdhtvmTbDu72Nx8/KDaioumKhNYR/MBwAD7PPm7/QsV 4+ZA== X-Gm-Message-State: ACgBeo1HdE8Os5xjPS3w8fnkADv1uGwQYsQnGXQFqelU5OyvJO+S6ISA cL2smtrhwsgADH/N1hrKvr4KbLF93EByeA== X-Google-Smtp-Source: AA6agR60W8LJhjDvY00GGzSV3s7VYyic0gMfl657JP6EooAyP1ZchTEGNStHBqrXNjK1OujYPvbAmw== X-Received: by 2002:a92:c247:0:b0:2df:2e4d:5930 with SMTP id k7-20020a92c247000000b002df2e4d5930mr48300ilo.229.1660237248393; Thu, 11 Aug 2022 10:00:48 -0700 (PDT) Received: from tyler-fedora ([107.181.195.249]) by smtp.gmail.com with ESMTPSA id d15-20020a02858f000000b003429fc56e6bsm3672jai.27.2022.08.11.10.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 10:00:47 -0700 (PDT) From: Tyler Grinn To: Eli Zaretskii Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer In-Reply-To: <83k07epy3w.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 11 Aug 2022 19:02:27 +0300") References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> <83o7wqq58o.fsf@gnu.org> <87pmh6st14.fsf@gmail.com> <83k07epy3w.fsf@gnu.org> Date: Thu, 11 Aug 2022 13:00:45 -0400 Message-ID: <87a68asojm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Tyler Grinn >> Cc: 57140@debbugs.gnu.org >> Date: Thu, 11 Aug 2022 11:23:51 -0400 >> >> Eli Zaretskii writes: >> >> > Thanks, but isn't it better to control the amount of scaling by >> > changing the value of text-scale-mode-step instead? Having to scroll >> > the wheel several clicks without any effect would be confusing, I >> > think. And text-scale-mode-step is already a user variable that is >> > available for this purpose. So maybe you should try decreasing the >> > default value to, say, 1.02, to see if that satisfies your needs. >> >> For some trackpads, controlling how many 'clicks' to scroll is quite >> difficult. The step size fixes the issue of scrolling too fast, but I >> still have trouble choosing the exact text scale I want. My preference >> is still for a larger step size and throttling scroll events. > > Sorry, I don't understand why you need to count clicks. Typically > when users change the text scale, they just turn the wheel until the > size they get fits their needs. Making text-scale-mode-step smaller > causes finer changes, so it's easier to be more precise in finding the > desired scale. > > Can you explain how your proposal makes it easier than that, and why? Sure, let me rephrase: for two-finger scrolling, it's hard to emit a single scroll event. With a smaller step size it is easier to get it close to the scale I want, but regardless of the step size, choosing an exact text scale is difficult. This leads to buffers having slightly different text scales. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 13:16:36 2022 Received: (at 57140) by debbugs.gnu.org; 11 Aug 2022 17:16:36 +0000 Received: from localhost ([127.0.0.1]:54933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMBnP-0004Lk-SZ for submit@debbugs.gnu.org; Thu, 11 Aug 2022 13:16:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMBnM-0004LX-Gx for 57140@debbugs.gnu.org; Thu, 11 Aug 2022 13:16:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMBnH-0000v1-5C; Thu, 11 Aug 2022 13:16:27 -0400 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=PVSGtZ/MRmHDfqMpmzLApppcdYH9oTBrumnFiw/yWTQ=; b=CpXA2g2FsDgt j86HQgCpQMhrKSGz9Q3LUkVqTjzxXq8AlONnniDN62Dh+IbxVgt0K6N90dDxuv4bIkIQGhxdQm8c+ XpYpXzP1RgIQvk8Bd6Y0W0DatyVExmowmgHJbp1HyW72oVBSIwTuhLcRMHT1lqkSzUWAKg6lKdM+8 bAHz8YuaH5EgH9REOuW1INgOz8NM75VGypLvLGAP4fomOfeWo8SC3CmVuXjV+ojtJrzvM+p4na1MR 6pOdosrpUrUPNL3URcpnOLg93sI0Zx0VUtFqkVccT+DeTmKf/ulv+Uafouzvl0UgVRXn03SUliE66 V1ij2MmfQ54SBRo0GpglOQ==; Received: from [87.69.77.57] (port=2055 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 1oMBnG-0002DD-JD; Thu, 11 Aug 2022 13:16:26 -0400 Date: Thu, 11 Aug 2022 20:16:21 +0300 Message-Id: <834jyipuoq.fsf@gnu.org> From: Eli Zaretskii To: Tyler Grinn In-Reply-To: <87a68asojm.fsf@gmail.com> (message from Tyler Grinn on Thu, 11 Aug 2022 13:00:45 -0400) Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> <83o7wqq58o.fsf@gnu.org> <87pmh6st14.fsf@gmail.com> <83k07epy3w.fsf@gnu.org> <87a68asojm.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tyler Grinn > Cc: 57140@debbugs.gnu.org > Date: Thu, 11 Aug 2022 13:00:45 -0400 > > Eli Zaretskii writes: > > >> From: Tyler Grinn > >> Cc: 57140@debbugs.gnu.org > >> Date: Thu, 11 Aug 2022 11:23:51 -0400 > >> > >> Eli Zaretskii writes: > >> > >> > Thanks, but isn't it better to control the amount of scaling by > >> > changing the value of text-scale-mode-step instead? Having to scroll > >> > the wheel several clicks without any effect would be confusing, I > >> > think. And text-scale-mode-step is already a user variable that is > >> > available for this purpose. So maybe you should try decreasing the > >> > default value to, say, 1.02, to see if that satisfies your needs. > >> > >> For some trackpads, controlling how many 'clicks' to scroll is quite > >> difficult. The step size fixes the issue of scrolling too fast, but I > >> still have trouble choosing the exact text scale I want. My preference > >> is still for a larger step size and throttling scroll events. > > > > Sorry, I don't understand why you need to count clicks. Typically > > when users change the text scale, they just turn the wheel until the > > size they get fits their needs. Making text-scale-mode-step smaller > > causes finer changes, so it's easier to be more precise in finding the > > desired scale. > > > > Can you explain how your proposal makes it easier than that, and why? > > Sure, let me rephrase: for two-finger scrolling, it's hard to emit a > single scroll event. With a smaller step size it is easier to get it > close to the scale I want, but regardless of the step size, choosing an > exact text scale is difficult. This leads to buffers having slightly > different text scales. If that's the problem, shouldn't that be handled by techniques we use in precision-scrolling? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 13:39:07 2022 Received: (at 57140) by debbugs.gnu.org; 11 Aug 2022 17:39:07 +0000 Received: from localhost ([127.0.0.1]:54947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMC9D-0004tQ-4T for submit@debbugs.gnu.org; Thu, 11 Aug 2022 13:39:07 -0400 Received: from mail-io1-f41.google.com ([209.85.166.41]:34642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMC98-0004su-Fa for 57140@debbugs.gnu.org; Thu, 11 Aug 2022 13:39:06 -0400 Received: by mail-io1-f41.google.com with SMTP id x64so15222677iof.1 for <57140@debbugs.gnu.org>; Thu, 11 Aug 2022 10:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=/5rJ/tqi1xLZEV/fGSevEd5rMYbm5XKXNn+NA52V+ow=; b=A37qYX9CNZUpGCvXcILTgkIhew2DZbsL4iJZ5ithxKOjLssdTgBbarYk1q1nzlBdZb bvb57FFTAEaiEKNsqFB/KjOD4mAvuesdORE+dky9FESB8SP/42zdZujfg7RmcODSmkPr PoiISmlyDiMwODnkfMgKcU5xvAUmfPnPHph8sxG7i5XmKqjaHThrI2BE/yxNx0WHVX8g jCoRStyFbysutTnK7P89EoMXNM6Kf92qJUQZ9+DyU+VaZr2enQ4rdliRjQePezxFrrO3 lg+l+TdmNCRWrUwwCFo0R9oNBvUdUqyWcU44GLxr1XycgzZR0bJPdoOfXXG8htLkLvM1 W4PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=/5rJ/tqi1xLZEV/fGSevEd5rMYbm5XKXNn+NA52V+ow=; b=6c1fo4HabmSng7zDK9cZvmHlK1bywqsdM9HuSzAMQHfJi9qoXl+Kru+SIcvbc3QI8p EFaByaMLe1WJaW+2bd0TwHt0Lb5dOfFP3jiMfR5TRdI4lan1gAGtIphc7H9EQJZ7HPLh 7O62ua/1rU9Uvpcy2NuSxVpOkkIynxSIaXKi+7fXnLtqG7Egf3UA3uX9vfqtSXOef3X1 HMecz1Cd2MREx4qmTCEjcHIP07ELTgRtusDsHQ1wuYLH8DSQsk09oL94ve1qzUhrULNv 7cOfQVqBjOiSL+v/NDAroEeloeBNfEETa17U5eJo0CFGeRKqU6VydVeFbBCYFUcvYzbJ ajpg== X-Gm-Message-State: ACgBeo2Yjysp27ZYYKrfryRBsORUEgpXW/lEApJgScdWTfTbQdQMuAW3 OV3CMWf4HFmFUsHKerle+MVvkFwtrFd26Q== X-Google-Smtp-Source: AA6agR4iMbsulu3X59nkxDkgYFcoq3Y/Ejea8ylXV705/DQrVJHYx7+xijVC8+NCxr1z2nEg7T6Kwg== X-Received: by 2002:a02:cb47:0:b0:342:8e65:7518 with SMTP id k7-20020a02cb47000000b003428e657518mr199127jap.242.1660239536278; Thu, 11 Aug 2022 10:38:56 -0700 (PDT) Received: from tyler-fedora ([107.181.195.249]) by smtp.gmail.com with ESMTPSA id e8-20020a056602044800b0067c09fd0b53sm3763721iov.21.2022.08.11.10.38.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 10:38:55 -0700 (PDT) From: Tyler Grinn To: Eli Zaretskii Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer In-Reply-To: <834jyipuoq.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 11 Aug 2022 20:16:21 +0300") References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> <83o7wqq58o.fsf@gnu.org> <87pmh6st14.fsf@gmail.com> <83k07epy3w.fsf@gnu.org> <87a68asojm.fsf@gmail.com> <834jyipuoq.fsf@gnu.org> Date: Thu, 11 Aug 2022 13:38:53 -0400 Message-ID: <87r11mr87m.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Tyler Grinn >> Cc: 57140@debbugs.gnu.org >> Date: Thu, 11 Aug 2022 13:00:45 -0400 >> >> Eli Zaretskii writes: >> >> >> From: Tyler Grinn >> >> Cc: 57140@debbugs.gnu.org >> >> Date: Thu, 11 Aug 2022 11:23:51 -0400 >> >> >> >> Eli Zaretskii writes: >> >> >> >> > Thanks, but isn't it better to control the amount of scaling by >> >> > changing the value of text-scale-mode-step instead? Having to scroll >> >> > the wheel several clicks without any effect would be confusing, I >> >> > think. And text-scale-mode-step is already a user variable that is >> >> > available for this purpose. So maybe you should try decreasing the >> >> > default value to, say, 1.02, to see if that satisfies your needs. >> >> >> >> For some trackpads, controlling how many 'clicks' to scroll is quite >> >> difficult. The step size fixes the issue of scrolling too fast, but I >> >> still have trouble choosing the exact text scale I want. My preference >> >> is still for a larger step size and throttling scroll events. >> > >> > Sorry, I don't understand why you need to count clicks. Typically >> > when users change the text scale, they just turn the wheel until the >> > size they get fits their needs. Making text-scale-mode-step smaller >> > causes finer changes, so it's easier to be more precise in finding the >> > desired scale. >> > >> > Can you explain how your proposal makes it easier than that, and why? >> >> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a >> single scroll event. With a smaller step size it is easier to get it >> close to the scale I want, but regardless of the step size, choosing an >> exact text scale is difficult. This leads to buffers having slightly >> different text scales. > > If that's the problem, shouldn't that be handled by techniques we use > in precision-scrolling? Could you expand on that? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 13:48:05 2022 Received: (at 57140) by debbugs.gnu.org; 11 Aug 2022 17:48:05 +0000 Received: from localhost ([127.0.0.1]:54952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMCHt-000595-C2 for submit@debbugs.gnu.org; Thu, 11 Aug 2022 13:48:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMCHp-00057z-PP for 57140@debbugs.gnu.org; Thu, 11 Aug 2022 13:48:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMCHk-0005fm-G0; Thu, 11 Aug 2022 13:47:56 -0400 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=gqrKM/VdoIVA2X3RmyHVWoYlT0/SkFPesD3VzsbxIT8=; b=b7mwJUCfzmiZ Kbsi37XCkjBCwv+9ah/cj+4AuLO27Ln2ebECqlsv+x63Fh8Z2UTK1vQ2l5RxvNwYNQadF+H6tNyPT Li18dtCjPxTHddLg7A+OmnvlgaFBTXTqvJspx6KfgWRtYBhtS9kr6M11wXeBEZMSiLYZDGtGxdjZZ 2ZqdQqBHc+IK6b9nU9cJpGMoE6wQLetKaywuZQNX19iA4absXkrCytjF3MGWpUeW1MkRYJx0rcDFo hRYmC2r9zwrNoWmBev9u93aiq5RhrZd/EarqlfN+a7k3RzuPTKQbn1CSlwmZiuv6WARhUP8HwsWxo 4CP6NdKavnxg2Liqx9B7UA==; Received: from [87.69.77.57] (port=4108 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 1oMCHh-0004ND-Rt; Thu, 11 Aug 2022 13:47:54 -0400 Date: Thu, 11 Aug 2022 20:47:47 +0300 Message-Id: <8335e2pt8c.fsf@gnu.org> From: Eli Zaretskii To: Tyler Grinn In-Reply-To: <87r11mr87m.fsf@gmail.com> (message from Tyler Grinn on Thu, 11 Aug 2022 13:38:53 -0400) Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> <83o7wqq58o.fsf@gnu.org> <87pmh6st14.fsf@gmail.com> <83k07epy3w.fsf@gnu.org> <87a68asojm.fsf@gmail.com> <834jyipuoq.fsf@gnu.org> <87r11mr87m.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tyler Grinn > Cc: 57140@debbugs.gnu.org > Date: Thu, 11 Aug 2022 13:38:53 -0400 > > Eli Zaretskii writes: > > >> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a > >> single scroll event. With a smaller step size it is easier to get it > >> close to the scale I want, but regardless of the step size, choosing an > >> exact text scale is difficult. This leads to buffers having slightly > >> different text scales. > > > > If that's the problem, shouldn't that be handled by techniques we use > > in precision-scrolling? > > Could you expand on that? Are you familiar with pixel-scroll-precision-mode? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 15:24:44 2022 Received: (at 57140) by debbugs.gnu.org; 11 Aug 2022 19:24:44 +0000 Received: from localhost ([127.0.0.1]:55058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMDnP-0007lK-Mk for submit@debbugs.gnu.org; Thu, 11 Aug 2022 15:24:44 -0400 Received: from mail-il1-f180.google.com ([209.85.166.180]:39516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMDnN-0007l7-OD for 57140@debbugs.gnu.org; Thu, 11 Aug 2022 15:24:43 -0400 Received: by mail-il1-f180.google.com with SMTP id j20so10471720ila.6 for <57140@debbugs.gnu.org>; Thu, 11 Aug 2022 12:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=yss50aTJOwlr9YibkXOEwBJGfznQQynDmhlDARWeuIg=; b=dp6FsF+GcixKZdVpmZwc0RkwM6d3n/gFkBYAd9d+c5pA5tuvckMdqSYrqigkJvlSoN nEIOGcEI9+pLITxEsgImmxqgXz7UM1ghBx2LIBVsrwgeVt2HCh2v/w9eaMkzJoDZzA6t fNO7rDSt/sJ86T1bNB8KCDm7ayloFwz5ZcoioJKLAXtkoAwryowVEeYQxI+78bxndbMr 0kbzITh2Tnf83BXuBPI5yJxYGofUOHfs1Ge6rtsRD1EgTNMsrVzBnRaRzeMjgB5wRwv5 MeCDA/8EtJMm/9xGyPcyihpHHkKftim4elp1fpVUiW0CgrlFN/WKwJ9vbX1XtGUAhnAv 5D7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=yss50aTJOwlr9YibkXOEwBJGfznQQynDmhlDARWeuIg=; b=W1d37sCo7J/5ugVMt+hjPCAWP4hNNRCJHwCvY3RcNn1tJNfPREzcSt3h81H5dKOlBC G99DXavrogb1TYDb+xbLg+D1R03Nzuaxjy918gG9j+NVwRv0Vdy8G5k3PJMJhpQdG51R zWS2Eq4Cjt+UIT7TiLf5e4Qb3IxX4bybX0n1pnKZ4K+ddpuXICHLa8taf27xKWdZTM53 oAa1W+qcCk1b8EQ+gG/Ru0ysH1QJp8MQSNrGW6RUk0JN6g+aDAOS1ltFC1xKQU/ShTwv GuRXl26/icZUSCN8/RKzGuv9+yTCG9O/FAWU3t1aD+oScFv/CHEWnNzNaXye55MrsDfv y+kg== X-Gm-Message-State: ACgBeo2rdK3Bgtu+1A8PnlAowPOWcRqqM3xQuHtzWBDADCJ6BadcAMiD pq8rainRhEd0xUSiNEp35gPa+42e+ACHHA== X-Google-Smtp-Source: AA6agR5PEaKM6cV82KsuZ5e3g3Z8GCW5xFeRkVT5BJAsD1C+G2iWphCzFZ9wVZKZGXzz3UR8VE2/og== X-Received: by 2002:a05:6e02:509:b0:2de:7215:a6fa with SMTP id d9-20020a056e02050900b002de7215a6famr306950ils.318.1660245875467; Thu, 11 Aug 2022 12:24:35 -0700 (PDT) Received: from tyler-fedora ([107.181.195.249]) by smtp.gmail.com with ESMTPSA id y27-20020a02731b000000b003427170b558sm137997jab.57.2022.08.11.12.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 12:24:34 -0700 (PDT) From: Tyler Grinn To: Eli Zaretskii Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer In-Reply-To: <8335e2pt8c.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 11 Aug 2022 20:47:47 +0300") References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> <83o7wqq58o.fsf@gnu.org> <87pmh6st14.fsf@gmail.com> <83k07epy3w.fsf@gnu.org> <87a68asojm.fsf@gmail.com> <834jyipuoq.fsf@gnu.org> <87r11mr87m.fsf@gmail.com> <8335e2pt8c.fsf@gnu.org> Date: Thu, 11 Aug 2022 15:24:33 -0400 Message-ID: <87k07er3bi.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Tyler Grinn >> Cc: 57140@debbugs.gnu.org >> Date: Thu, 11 Aug 2022 13:38:53 -0400 >> >> Eli Zaretskii writes: >> >> >> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a >> >> single scroll event. With a smaller step size it is easier to get it >> >> close to the scale I want, but regardless of the step size, choosing an >> >> exact text scale is difficult. This leads to buffers having slightly >> >> different text scales. >> > >> > If that's the problem, shouldn't that be handled by techniques we use >> > in precision-scrolling? >> >> Could you expand on that? > > Are you familiar with pixel-scroll-precision-mode? Yes, but it's unclear which techniques you're referring to, or what is lacking from the proposed behavior. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 12 01:36:18 2022 Received: (at 57140) by debbugs.gnu.org; 12 Aug 2022 05:36:18 +0000 Received: from localhost ([127.0.0.1]:55400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMNLF-0006jr-PD for submit@debbugs.gnu.org; Fri, 12 Aug 2022 01:36:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMNLA-0006jb-TK for 57140@debbugs.gnu.org; Fri, 12 Aug 2022 01:36:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMNL5-000467-At; Fri, 12 Aug 2022 01:36:07 -0400 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=Gky/G5Y31v+VtXaJH6b+Rt0Vn3unowCO0ChgwEfoi6c=; b=UpPGSfq1YwI9 g4cV9GCGkS8tN3cJN6UI/k4SWA547U7Qf0G7vIzt7HnBoPfkTAEE6ofZcVyvW6p7AORKaTmmBCCGy v6s6IHqkT7hG/Rjz1becrdQZ0MmfO1coKxYYprRVAaisvP0YXLzYIEV74LlgWdLCEu+pp3y5vqFWu wtVVzkd8hdf6d+2MtMLw0N7H0EFIUdtr2vBGErxmj7kNz+SWCasJwOUdoHNuo10Uqy4p9XLuqtoGw 2sOh2OoKsIPTFnoDZD9enw7Fb11wGsNVU8gcV4iIJ6vt3PIxySsDpfzm/4ZfBYim9towdroxY4bFW albmnCiCiCfhlPtG39Mofw==; Received: from [87.69.77.57] (port=3403 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 1oMNL3-0001lZ-9s; Fri, 12 Aug 2022 01:36:07 -0400 Date: Fri, 12 Aug 2022 08:36:00 +0300 Message-Id: <83v8qynhvj.fsf@gnu.org> From: Eli Zaretskii To: Tyler Grinn In-Reply-To: <87k07er3bi.fsf@gmail.com> (message from Tyler Grinn on Thu, 11 Aug 2022 15:24:33 -0400) Subject: Re: bug#57140: New user option mouse-wheel-text-scale-buffer References: <871qtnudsc.fsf@gmail.com> <878rnuudaw.fsf@gmail.com> <83o7wqq58o.fsf@gnu.org> <87pmh6st14.fsf@gmail.com> <83k07epy3w.fsf@gnu.org> <87a68asojm.fsf@gmail.com> <834jyipuoq.fsf@gnu.org> <87r11mr87m.fsf@gmail.com> <8335e2pt8c.fsf@gnu.org> <87k07er3bi.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57140 Cc: 57140@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tyler Grinn > Cc: 57140@debbugs.gnu.org > Date: Thu, 11 Aug 2022 15:24:33 -0400 > > Eli Zaretskii writes: > > >> From: Tyler Grinn > >> Cc: 57140@debbugs.gnu.org > >> Date: Thu, 11 Aug 2022 13:38:53 -0400 > >> > >> Eli Zaretskii writes: > >> > >> >> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a > >> >> single scroll event. With a smaller step size it is easier to get it > >> >> close to the scale I want, but regardless of the step size, choosing an > >> >> exact text scale is difficult. This leads to buffers having slightly > >> >> different text scales. > >> > > >> > If that's the problem, shouldn't that be handled by techniques we use > >> > in precision-scrolling? > >> > >> Could you expand on that? > > > > Are you familiar with pixel-scroll-precision-mode? > > Yes, but it's unclear which techniques you're referring to, or what is > lacking from the proposed behavior. I refer to that mode's use of mwheel-coalesce-scroll-events and the pixel-scroll-precision-* variables. That uses underlying capabilities of using high-precision mouse events which are new in Emacs 29.