aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodor Thornhill2020-09-24 21:59:30 +0300
committerJuri Linkov2020-09-24 21:59:30 +0300
commit89dd8cd215148da4c6dffc15dc6c35df5122247b (patch)
tree1abfda3fed2ecac95cb0e598089dba4be8b097d3
parent4bc4d19bd16735f9ee79b2e736eeab59d57070d7 (diff)
downloademacs-89dd8cd215148da4c6dffc15dc6c35df5122247b.tar.gz
emacs-89dd8cd215148da4c6dffc15dc6c35df5122247b.zip
Set mwheel default scroll value to 1 (bug#43380)
* lisp/mwheel.el (mouse-wheel-scroll-amount): Change default value 5 to 1 and shift default value from 1 to 5. Default value is changed as discussed in etc/TODO.
-rw-r--r--etc/NEWS4
-rw-r--r--etc/TODO7
-rw-r--r--lisp/mwheel.el4
3 files changed, 8 insertions, 7 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5cb31256ff4..6a7c99f48d5 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -135,6 +135,10 @@ and mode line. ('mwheel-mode' is enabled by default on most graphical
135displays.) 135displays.)
136 136
137--- 137---
138** Mouse wheel scrolling now defaults to one line at a time.
139Old default of five lines at a time is now bound to Shift modifier.
140
141---
138** The default value of 'frame-title-format' and 'icon-title-format' has changed. 142** The default value of 'frame-title-format' and 'icon-title-format' has changed.
139These variables are used to display the title bar of visible frames 143These variables are used to display the title bar of visible frames
140and the title bar of an iconified frame. They now show the name of 144and the title bar of an iconified frame. They now show the name of
diff --git a/etc/TODO b/etc/TODO
index 152a29964f3..b445b673607 100644
--- a/etc/TODO
+++ b/etc/TODO
@@ -924,17 +924,14 @@ features of that interface could be implemented NS.
924 924
925**** Smooth scrolling -- maybe not a good idea 925**** Smooth scrolling -- maybe not a good idea
926Today, by default, scrolling with a trackpad makes the text move in 926Today, by default, scrolling with a trackpad makes the text move in
927steps of five lines. (Scrolling with SHIFT scrolls one line at a time.) 927steps of one line. (Scrolling with SHIFT scrolls five lines at a time.)
928 928
929The "mac" port provides smooth, pixel-based, scrolling. This is a very 929The "mac" port provides smooth, pixel-based, scrolling. This is a very
930popular features. However, there are drawbacks to this method: what 930popular feature. However, there are drawbacks to this method: what
931happens if only a fraction of a line is visible at the top of a 931happens if only a fraction of a line is visible at the top of a
932window, is the partially visible text considered part of the window or 932window, is the partially visible text considered part of the window or
933not? (Technically, what should 'window-start' return.) 933not? (Technically, what should 'window-start' return.)
934 934
935An alternative would be to make one-line scrolling the default on NS
936(or in Emacs in general).
937
938Note: This feature might not be allowed to be implemented until also 935Note: This feature might not be allowed to be implemented until also
939implemented in Emacs for a free system. 936implemented in Emacs for a free system.
940 937
diff --git a/lisp/mwheel.el b/lisp/mwheel.el
index 32fde0dd058..0100b8de81e 100644
--- a/lisp/mwheel.el
+++ b/lisp/mwheel.el
@@ -85,7 +85,7 @@ set to the event sent when clicking on the mouse wheel button."
85 :type 'number) 85 :type 'number)
86 86
87(defcustom mouse-wheel-scroll-amount 87(defcustom mouse-wheel-scroll-amount
88 '(5 ((shift) . 1) ((meta) . nil) ((control) . text-scale)) 88 '(1 ((shift) . 5) ((meta) . nil) ((control) . text-scale))
89 "Amount to scroll windows by when spinning the mouse wheel. 89 "Amount to scroll windows by when spinning the mouse wheel.
90This is an alist mapping the modifier key to the amount to scroll when 90This is an alist mapping the modifier key to the amount to scroll when
91the wheel is moved with the modifier key depressed. 91the wheel is moved with the modifier key depressed.
@@ -125,7 +125,7 @@ scrolling."
125 (float :tag "Scroll fraction of window") 125 (float :tag "Scroll fraction of window")
126 (const :tag "Change face size" :value text-scale))))) 126 (const :tag "Change face size" :value text-scale)))))
127 :set 'mouse-wheel-change-button 127 :set 'mouse-wheel-change-button
128 :version "27.1") 128 :version "28.1")
129 129
130(defcustom mouse-wheel-progressive-speed t 130(defcustom mouse-wheel-progressive-speed t
131 "If non-nil, the faster the user moves the wheel, the faster the scrolling. 131 "If non-nil, the faster the user moves the wheel, the faster the scrolling.