diff options
| author | Theodor Thornhill | 2020-09-24 21:59:30 +0300 |
|---|---|---|
| committer | Juri Linkov | 2020-09-24 21:59:30 +0300 |
| commit | 89dd8cd215148da4c6dffc15dc6c35df5122247b (patch) | |
| tree | 1abfda3fed2ecac95cb0e598089dba4be8b097d3 | |
| parent | 4bc4d19bd16735f9ee79b2e736eeab59d57070d7 (diff) | |
| download | emacs-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/NEWS | 4 | ||||
| -rw-r--r-- | etc/TODO | 7 | ||||
| -rw-r--r-- | lisp/mwheel.el | 4 |
3 files changed, 8 insertions, 7 deletions
| @@ -135,6 +135,10 @@ and mode line. ('mwheel-mode' is enabled by default on most graphical | |||
| 135 | displays.) | 135 | displays.) |
| 136 | 136 | ||
| 137 | --- | 137 | --- |
| 138 | ** Mouse wheel scrolling now defaults to one line at a time. | ||
| 139 | Old 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. |
| 139 | These variables are used to display the title bar of visible frames | 143 | These variables are used to display the title bar of visible frames |
| 140 | and the title bar of an iconified frame. They now show the name of | 144 | and the title bar of an iconified frame. They now show the name of |
| @@ -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 |
| 926 | Today, by default, scrolling with a trackpad makes the text move in | 926 | Today, by default, scrolling with a trackpad makes the text move in |
| 927 | steps of five lines. (Scrolling with SHIFT scrolls one line at a time.) | 927 | steps of one line. (Scrolling with SHIFT scrolls five lines at a time.) |
| 928 | 928 | ||
| 929 | The "mac" port provides smooth, pixel-based, scrolling. This is a very | 929 | The "mac" port provides smooth, pixel-based, scrolling. This is a very |
| 930 | popular features. However, there are drawbacks to this method: what | 930 | popular feature. However, there are drawbacks to this method: what |
| 931 | happens if only a fraction of a line is visible at the top of a | 931 | happens if only a fraction of a line is visible at the top of a |
| 932 | window, is the partially visible text considered part of the window or | 932 | window, is the partially visible text considered part of the window or |
| 933 | not? (Technically, what should 'window-start' return.) | 933 | not? (Technically, what should 'window-start' return.) |
| 934 | 934 | ||
| 935 | An alternative would be to make one-line scrolling the default on NS | ||
| 936 | (or in Emacs in general). | ||
| 937 | |||
| 938 | Note: This feature might not be allowed to be implemented until also | 935 | Note: This feature might not be allowed to be implemented until also |
| 939 | implemented in Emacs for a free system. | 936 | implemented 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. |
| 90 | This is an alist mapping the modifier key to the amount to scroll when | 90 | This is an alist mapping the modifier key to the amount to scroll when |
| 91 | the wheel is moved with the modifier key depressed. | 91 | the 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. |