From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 13 14:25:49 2020 Received: (at submit) by debbugs.gnu.org; 13 Sep 2020 18:25:49 +0000 Received: from localhost ([127.0.0.1]:51666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHWhB-000842-05 for submit@debbugs.gnu.org; Sun, 13 Sep 2020 14:25:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:51142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHWh7-00083s-Q4 for submit@debbugs.gnu.org; Sun, 13 Sep 2020 14:25:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHWh7-0000Ol-2a for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2020 14:25:45 -0400 Received: from out1.migadu.com ([2001:41d0:2:863f::]:35052) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHWh4-0001Hg-0C for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2020 14:25:44 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1600021536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=oLY5jHla/1JoLgHZrTMY7tKd7ZUBvd762d8xUetmbYk=; b=p1zp+eL5AIOsnX9X6dBs+IcuuJcEsJl4q9IA5lNifHnf3+jDa2Bk3xggBE6On2+fgHhQgJ btL/Mn5IYgn+UT73r0ke+Mc2lr03PQrA6CdnsRNJNrPeg7Hse3WQoFYGdqfjdMv2TTtP1w 0rLOdiGLlCa0vREDp8hGYEryvKwxo3i0yZ4VDNHGSTs1qFhJ3SpOHXp9PK07fqi9b2NRBh w7WGeYo9RVS6FIauQOwTNAIbHoxrOFPSwB24rB8pG/xzxipwDskR+vFvySR4moRUORSX1U TzFFtwxmIJwL6r2exGYHCTMNzCZbBey7Fc+5SxrqfwqXaYx5gpUXD12K3oclKA== From: Theodor Thornhill To: bug-gnu-emacs@gnu.org Subject: 28.0.50; [PATCH] Set mwheel default scroll value to 1 Date: Sun, 13 Sep 2020 20:26:16 +0200 Message-ID: <87bli9h6t3.fsf@thornhill.no> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.10 Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=theo@thornhill.no; helo=out1.migadu.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 14:25:36 X-ACL-Warn: Detected OS = ??? 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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.4 (--) --=-=-= Content-Type: text/plain Hello! In the spirit of moving towards a more "modern" emacs, I'll address with a patch the thing that actually confuses me personally the most. Also, it seems like an (dare I say it) uncontroversial change: set default scroll value to 1. It is mentioned as a small step towards the "smooth" scrolling. Is there some other places that needs to be updated? Have a nice day! Theodor Thornhill --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=mwheel-default.patch diff --git a/etc/NEWS b/etc/NEWS index db2adcec15..7e95b55d0b 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -127,6 +127,11 @@ the mouse cursor is on the scroll bars, fringes, margins, header line, and mode line. ('mwheel-mode' is enabled by default on most graphical displays.) +--- +** Mouse wheel scrolling now defaults to one line at a time +Default value is changed as discussed in etc/TODO. +Old default of five lines at a time is now bound to Shift modifier. + --- ** The default value of 'frame-title-format' and icon-title-format' has changed. These variables are used to display the title bar of visible frames diff --git a/etc/TODO b/etc/TODO index 152a29964f..b445b67360 100644 --- a/etc/TODO +++ b/etc/TODO @@ -924,17 +924,14 @@ features of that interface could be implemented NS. **** Smooth scrolling -- maybe not a good idea Today, by default, scrolling with a trackpad makes the text move in -steps of five lines. (Scrolling with SHIFT scrolls one line at a time.) +steps of one line. (Scrolling with SHIFT scrolls five lines at a time.) The "mac" port provides smooth, pixel-based, scrolling. This is a very -popular features. However, there are drawbacks to this method: what +popular feature. However, there are drawbacks to this method: what happens if only a fraction of a line is visible at the top of a window, is the partially visible text considered part of the window or not? (Technically, what should 'window-start' return.) -An alternative would be to make one-line scrolling the default on NS -(or in Emacs in general). - Note: This feature might not be allowed to be implemented until also implemented in Emacs for a free system. diff --git a/lisp/mwheel.el b/lisp/mwheel.el index 3b93bd1d5e..0e65ba883c 100644 --- a/lisp/mwheel.el +++ b/lisp/mwheel.el @@ -85,7 +85,7 @@ mouse-wheel-inhibit-click-time :type 'number) (defcustom mouse-wheel-scroll-amount - '(5 ((shift) . 1) ((meta) . nil) ((control) . text-scale)) + '(1 ((shift) . 5) ((meta) . nil) ((control) . text-scale)) "Amount to scroll windows by when spinning the mouse wheel. This is an alist mapping the modifier key to the amount to scroll when the wheel is moved with the modifier key depressed. @@ -125,7 +125,7 @@ mouse-wheel-scroll-amount (float :tag "Scroll fraction of window") (const :tag "Change face size" :value text-scale))))) :set 'mouse-wheel-change-button - :version "27.1") + :version "28.1") (defcustom mouse-wheel-progressive-speed t "If non-nil, the faster the user moves the wheel, the faster the scrolling. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 10:04:26 2020 Received: (at 43380) by debbugs.gnu.org; 18 Sep 2020 14:04:26 +0000 Received: from localhost ([127.0.0.1]:43877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJGzy-0000ST-4j for submit@debbugs.gnu.org; Fri, 18 Sep 2020 10:04:26 -0400 Received: from mail-ed1-f43.google.com ([209.85.208.43]:37445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJGzw-0000SD-Sz for 43380@debbugs.gnu.org; Fri, 18 Sep 2020 10:04:25 -0400 Received: by mail-ed1-f43.google.com with SMTP id n22so6233441edt.4 for <43380@debbugs.gnu.org>; Fri, 18 Sep 2020 07:04:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=R4CPPYWAQRslSQdF3B5BVps3nFDPnGQocFJZQvSPhG4=; b=B8BY6O53d5EE3a2WZXGlCsbGIjUms6DYT7TG0TIU4O7/xT3HdBZnB5KMPdMPlQudBe YmZSywHd+V/u4HLPGSO479MCfIo99MUHBdgU2R7q5JYYInoFx3EY2Quq+y2mmSFtcPe3 xcSpzpZijTIhXOnuH4099TNMEak/D7ypfI8hnKu4SXeR8hljKHtD57oQWl5DoxNxObVj QRbu/esH9RI6/OBqGybP5jAtfZNBD57119mQEdkcoTmKbNP2cjqVb5uGHb9SKgXiv+CB 5wVqIAP7MoAs25XTaoxpXtqs0/f5HULuot4PxTfLmMkMT6Mvcq415rvyi0s/Y8dy3mSN fPmA== X-Gm-Message-State: AOAM5329hkaJqXj8r2+nQiC2Yc1E51dvXQ1RANEhFGZa1LxAa4o4nH1Q Oi0RwbDgAuosu1ckzB0ar1fvy+JY+drEbjBx4jJqTB1v X-Google-Smtp-Source: ABdhPJzHtqGrpJAYwdJuWEJ9g24ev+p22TrLVEQXIuYza0y+84Ob74GXXWDhxT+4oxUO63yxgdAbNyo9K+neCIucXDo= X-Received: by 2002:a50:8524:: with SMTP id 33mr40064504edr.123.1600437859249; Fri, 18 Sep 2020 07:04:19 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 18 Sep 2020 07:04:18 -0700 From: Stefan Kangas In-Reply-To: <87bli9h6t3.fsf@thornhill.no> (Theodor Thornhill's message of "Sun, 13 Sep 2020 20:26:16 +0200") References: <87bli9h6t3.fsf@thornhill.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Fri, 18 Sep 2020 07:04:18 -0700 Message-ID: Subject: Re: bug#43380: 28.0.50; [PATCH] Set mwheel default scroll value to 1 To: Theodor Thornhill Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 43380 Cc: 43380@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: -0.5 (/) Hi Theodor, Theodor Thornhill writes: > In the spirit of moving towards a more "modern" emacs, I'll address with > a patch the thing that actually confuses me personally the most. Also, > it seems like an (dare I say it) uncontroversial change: set default > scroll value to 1. It is mentioned as a small step towards the "smooth" > scrolling. Is there some other places that needs to be updated? Thanks for the patch. Could you give some additional rationale for this change? For example, what does other software do here? What does other editors do? In what way does this help make Emacs behavior less surprising? Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 10:25:11 2020 Received: (at 43380) by debbugs.gnu.org; 18 Sep 2020 14:25:11 +0000 Received: from localhost ([127.0.0.1]:43915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJHJz-00039Q-UO for submit@debbugs.gnu.org; Fri, 18 Sep 2020 10:25:11 -0400 Received: from out0.migadu.com ([94.23.1.103]:41844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJHJw-00039E-WE for 43380@debbugs.gnu.org; Fri, 18 Sep 2020 10:25:07 -0400 Date: Fri, 18 Sep 2020 16:25:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1600439103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Sk0GzNHRok5Xi2bRh3fGpg5YsnjTv0sPBOZZ29VPSLQ=; b=NVJr9NhUFy9xZazI5qT2RFoWNrPtrIsFmsGVbkyDctPCCH5F/lC94mKEewN5++BqIAKX2P Yooy3o8TKKl9FxJfpeYlvvDv0bP5v8L4xoVkOfG+BxYghVcFy5/nkApyy3hDc9TQo8b1Oa rLf+BKfjtcZAIN84GGCpu8sBO/aqiQMuFNqBOo7Ya65oBI921PhhhwJWLy+7YCrsUkxu/t 4EH67bYF+K1HYIpmF148PkX2UCZ+vK2MRH5pfF3fq1OPfcpHeU0O+ceE/55E3yxpF09iJv XH9jv8pRocWCAOk1AjyVPwNcSASwSZVYNtRmi28yUD+TGYPZGwSiZpVz1cm5/w== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Theodor Thornhill To: Stefan Kangas Subject: Re: bug#43380: 28.0.50; [PATCH] Set mwheel default scroll value to 1 In-Reply-To: References: <87bli9h6t3.fsf@thornhill.no> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.10 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43380 Cc: 43380@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 (-) On September 18, 2020 4:04:18 PM GMT+02:00, Stefan Kangas wrote: >Hi Theodor, > >Theodor Thornhill writes: > >> In the spirit of moving towards a more "modern" emacs, I'll address wit= h >> a patch the thing that actually confuses me personally the most=2E Als= o, >> it seems like an (dare I say it) uncontroversial change: set default >> scroll value to 1=2E It is mentioned as a small step towards the "smoo= th" >> scrolling=2E Is there some other places that needs to be updated? > >Thanks for the patch=2E > >Could you give some additional rationale for this change? =20 Of course! Scrolling by 5 lines scrolls extremely fast when using touchpad= , so much so that on my personal laptop in scrolls to the end of even prett= y large files by moving my finger less than a centimeter=2E Also, since the= re is no tactile feedback on a touchpad, it gets very hard to predict=2E Wh= en swapping these, the ones wanting the five by five still get it by using = shift=2E=20 > For example, what does other software do here?=20 Most software scrolls pixel wise, and that is still a ways to go for emacs= , if I understand correctly=2E > What does other editors do? =20 The same as most other software, pixel wise=2E Comparable editors, like vi= m, scrolls one by one >In what way does this help make Emacs behavior less surprising? This should be as close to pixel wise we can get, and will be a lot more s= imilar in behavior to most other software, be it editors or browser or what= not=2E Hope this clarifies the rationale a little=2E Have a nice day! Theodor Thornhill From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 15:01:53 2020 Received: (at 43380) by debbugs.gnu.org; 24 Sep 2020 19:01:53 +0000 Received: from localhost ([127.0.0.1]:41750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLWV7-0004qY-FE for submit@debbugs.gnu.org; Thu, 24 Sep 2020 15:01:53 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:36003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLWV5-0004qF-9H; Thu, 24 Sep 2020 15:01:52 -0400 X-Originating-IP: 91.129.108.13 Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 86AD820008; Thu, 24 Sep 2020 19:01:41 +0000 (UTC) From: Juri Linkov To: Theodor Thornhill Subject: Re: bug#43380: 28.0.50; [PATCH] Set mwheel default scroll value to 1 References: <87bli9h6t3.fsf@thornhill.no> Date: Thu, 24 Sep 2020 22:00:13 +0300 In-Reply-To: (Theodor Thornhill's message of "Fri, 18 Sep 2020 16:25:01 +0200") Message-ID: <87mu1fdmpu.fsf@linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 43380 Cc: 43380@debbugs.gnu.org, Stefan Kangas 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 (-) tags 43380 fixed close 43380 28.0.50 thanks >>> In the spirit of moving towards a more "modern" emacs, I'll address with >>> a patch the thing that actually confuses me personally the most. Also, >>> it seems like an (dare I say it) uncontroversial change: set default >>> scroll value to 1. It is mentioned as a small step towards the "smooth" >>> scrolling. Is there some other places that needs to be updated? >> >>Thanks for the patch. >> >>Could you give some additional rationale for this change? > > Of course! Scrolling by 5 lines scrolls extremely fast when using touchpad, > so much so that on my personal laptop in scrolls to the end of even pretty > large files by moving my finger less than a centimeter. Also, since there > is no tactile feedback on a touchpad, it gets very hard to predict. When > swapping these, the ones wanting the five by five still get it by > using shift. > >> For example, what does other software do here? > > Most software scrolls pixel wise, and that is still a ways to go for emacs, if I understand correctly. > >> What does other editors do? > > The same as most other software, pixel wise. Comparable editors, like vim, scrolls one by one > >>In what way does this help make Emacs behavior less surprising? > > This should be as close to pixel wise we can get, and will be a lot more similar in behavior to most other software, be it editors or browser or whatnot. > > Hope this clarifies the rationale a little. Thanks, your patch is applied now (in anticipation of more changes in bug#43568) From unknown Tue Jul 15 11:13:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Oct 2020 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator