aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTak Kunihiro2018-03-01 20:44:22 -0500
committerGlenn Morris2018-03-01 20:44:22 -0500
commit3968f72be861b3ee1de590b1ef53f9fb56f3640e (patch)
tree4cde3b749141f45e8e81cc9e7cee13869a3af5b4
parentd6e78de50bac51da6927ca511cca2d6a176793bb (diff)
downloademacs-3968f72be861b3ee1de590b1ef53f9fb56f3640e.tar.gz
emacs-3968f72be861b3ee1de590b1ef53f9fb56f3640e.zip
Rename some mwheel options, for consistency
* lisp/mwheel.el (mouse-wheel-tilt-scroll) (mouse-wheel-flip-direction): Rename from mwheel-tilt-scroll-p, mwheel-flip-direction. (mwheel-scroll): Update for option renaming. * doc/emacs/frames.texi (Mouse Commands): Update for option renaming.
-rw-r--r--doc/emacs/frames.texi10
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/mwheel.el12
3 files changed, 13 insertions, 13 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index 17f6f35a8a3..11611e73516 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -207,13 +207,13 @@ buffers are scrolled. The variable
207@code{mouse-wheel-progressive-speed} determines whether the scroll 207@code{mouse-wheel-progressive-speed} determines whether the scroll
208speed is linked to how fast you move the wheel. 208speed is linked to how fast you move the wheel.
209 209
210@vindex mwheel-tilt-scroll-p 210@vindex mouse-wheel-tilt-scroll
211@vindex mwheel-flip-direction 211@vindex mouse-wheel-flip-direction
212Emacs can also support horizontal scrolling if your mouse's wheel can 212Emacs can also support horizontal scrolling if your mouse's wheel can
213be tilted. This feature is off by default; the variable 213be tilted. This feature is off by default; the variable
214@code{mwheel-tilt-scroll-p} turns it on. If you'd like to reverse the 214@code{mouse-wheel-tilt-scroll} turns it on. If you'd like to reverse
215direction of horizontal scrolling, customize the variable 215the direction of horizontal scrolling, customize the variable
216@code{mwheel-flip-direction} to a non-@code{nil} value. 216@code{mouse-wheel-flip-direction} to a non-@code{nil} value.
217 217
218 218
219@node Word and Line Mouse 219@node Word and Line Mouse
diff --git a/etc/NEWS b/etc/NEWS
index cb4048dee4a..eded00e6554 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -431,9 +431,9 @@ always restricting the margin to a quarter of the window.
431 431
432+++ 432+++
433** Emacs can scroll horizontally using mouse, touchpad, and trackbar. 433** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
434You can enable this by customizing 'mwheel-tilt-scroll-p'. If you 434You can enable this by customizing 'mouse-wheel-tilt-scroll'. If you
435want to reverse the direction of the scroll, customize 435want to reverse the direction of the scroll, customize
436'mwheel-flip-direction'. 436'mouse-wheel-flip-direction'.
437 437
438+++ 438+++
439** The default GnuTLS priority string now includes %DUMBFW. 439** The default GnuTLS priority string now includes %DUMBFW.
diff --git a/lisp/mwheel.el b/lisp/mwheel.el
index 9718ab87d39..7107d64aa1a 100644
--- a/lisp/mwheel.el
+++ b/lisp/mwheel.el
@@ -255,13 +255,13 @@ non-Windows systems."
255 ;; Make sure we do indeed scroll to the end of the buffer. 255 ;; Make sure we do indeed scroll to the end of the buffer.
256 (end-of-buffer (while t (funcall mwheel-scroll-up-function))))) 256 (end-of-buffer (while t (funcall mwheel-scroll-up-function)))))
257 ((eq button mouse-wheel-left-event) ; for tilt scroll 257 ((eq button mouse-wheel-left-event) ; for tilt scroll
258 (when mwheel-tilt-scroll-p 258 (when mouse-wheel-tilt-scroll
259 (funcall (if mwheel-flip-direction 259 (funcall (if mouse-wheel-flip-direction
260 mwheel-scroll-right-function 260 mwheel-scroll-right-function
261 mwheel-scroll-left-function) amt))) 261 mwheel-scroll-left-function) amt)))
262 ((eq button mouse-wheel-right-event) ; for tilt scroll 262 ((eq button mouse-wheel-right-event) ; for tilt scroll
263 (when mwheel-tilt-scroll-p 263 (when mouse-wheel-tilt-scroll
264 (funcall (if mwheel-flip-direction 264 (funcall (if mouse-wheel-flip-direction
265 mwheel-scroll-left-function 265 mwheel-scroll-left-function
266 mwheel-scroll-right-function) amt))) 266 mwheel-scroll-right-function) amt)))
267 (t (error "Bad binding in mwheel-scroll")))) 267 (t (error "Bad binding in mwheel-scroll"))))
@@ -324,13 +324,13 @@ the mode if ARG is omitted or nil."
324 324
325;;; For tilt-scroll 325;;; For tilt-scroll
326;;; 326;;;
327(defcustom mwheel-tilt-scroll-p nil 327(defcustom mouse-wheel-tilt-scroll nil
328 "Enable scroll using tilting mouse wheel." 328 "Enable scroll using tilting mouse wheel."
329 :group 'mouse 329 :group 'mouse
330 :type 'boolean 330 :type 'boolean
331 :version "26.1") 331 :version "26.1")
332 332
333(defcustom mwheel-flip-direction nil 333(defcustom mouse-wheel-flip-direction nil
334 "Swap direction of 'wheel-right and 'wheel-left." 334 "Swap direction of 'wheel-right and 'wheel-left."
335 :group 'mouse 335 :group 'mouse
336 :type 'boolean 336 :type 'boolean