GNU bug report logs - #43380
28.0.50; [PATCH] Set mwheel default scroll value to 1

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Theodor Thornhill <theo@HIDDEN>; Keywords: patch; dated Sun, 13 Sep 2020 18:26:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 43380 <at> debbugs.gnu.org:


Received: (at 43380) by debbugs.gnu.org; 18 Sep 2020 14:25:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 10:25:11 2020
Received: from localhost ([127.0.0.1]:43915 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJHJz-00039Q-UO
	for submit <at> 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 <theo@HIDDEN>) id 1kJHJw-00039E-WE
 for 43380 <at> 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@HIDDEN and
 include these headers.
From: Theodor Thornhill <theo@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#43380: 28.0.50; [PATCH] Set mwheel default scroll value to 1
In-Reply-To: <CADwFkmkVtRCT6OF4+qwPwF3tgFruerayS95kHn7apm0duta=Ew@HIDDEN>
References: <87bli9h6t3.fsf@HIDDEN>
 <CADwFkmkVtRCT6OF4+qwPwF3tgFruerayS95kHn7apm0duta=Ew@HIDDEN>
Message-ID: <E3AF6596-3E5E-4319-8142-A57371DE8DF7@HIDDEN>
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 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)



On September 18, 2020 4:04:18 PM GMT+02:00, Stefan Kangas <stefan@marxist=
=2Ese> wrote:
>Hi Theodor,
>
>Theodor Thornhill <theo@thornhill=2Eno> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43380; Package emacs. Full text available.

Message received at 43380 <at> debbugs.gnu.org:


Received: (at 43380) by debbugs.gnu.org; 18 Sep 2020 14:04:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 10:04:26 2020
Received: from localhost ([127.0.0.1]:43877 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJGzy-0000ST-4j
	for submit <at> 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 <stefankangas@HIDDEN>) id 1kJGzw-0000SD-Sz
 for 43380 <at> 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 <at> 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 <stefan@HIDDEN>
In-Reply-To: <87bli9h6t3.fsf@HIDDEN> (Theodor Thornhill's message of
 "Sun, 13 Sep 2020 20:26:16 +0200")
References: <87bli9h6t3.fsf@HIDDEN>
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: <CADwFkmkVtRCT6OF4+qwPwF3tgFruerayS95kHn7apm0duta=Ew@HIDDEN>
Subject: Re: bug#43380: 28.0.50; [PATCH] Set mwheel default scroll value to 1
To: Theodor Thornhill <theo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 43380
Cc: 43380 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Hi Theodor,

Theodor Thornhill <theo@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43380; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Sep 2020 18:25:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 13 14:25:49 2020
Received: from localhost ([127.0.0.1]:51666 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kHWhB-000842-05
	for submit <at> 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 <theo@HIDDEN>) id 1kHWh7-00083s-Q4
 for submit <at> 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 <theo@HIDDEN>) id 1kHWh7-0000Ol-2a
 for bug-gnu-emacs@HIDDEN; 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 <theo@HIDDEN>) id 1kHWh4-0001Hg-0C
 for bug-gnu-emacs@HIDDEN; Sun, 13 Sep 2020 14:25:44 -0400
X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN 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 <theo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
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@HIDDEN>
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@HIDDEN; 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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.

--=-=-=--




Acknowledgement sent to Theodor Thornhill <theo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#43380; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 18 Sep 2020 14:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.