From: Tak Kunihiro <tkk@misasa.okayama-u.ac.jp>
To: eliz@gnu.org
Cc: tkk@misasa.okayama-u.ac.jp, 26347@debbugs.gnu.org
Subject: bug#26347: patch for mwheel.el
Date: Wed, 12 Apr 2017 08:56:38 +0900 (JST) [thread overview]
Message-ID: <20170412.085638.30144618.tkk@misasa.okayama-u.ac.jp> (raw)
In-Reply-To: <83zifnjmxq.fsf@gnu.org>
Please revise words and phrases as you wish. On info revision, I also
put a recipe to scroll less. Please discard the part if that should
be done by different process.
# ChangeLog
Support scrolling by tiling wheel
Scroll right and left using wheel-right and wheel-left; This revision
also makes use of touchpad and trackpad (Bug#26347).
* doc/emacs/frames.texi (Mouse Commands): Document the change and recipe of scroll less
* lisp/mwheel.el (mwheel-scroll): Respond to wheel-right and wheel-left
* lisp/mwheel.el (mwheel-tilt-scroll-p): Enable tilt scrolling
* lisp/mwheel.el (mwheel-flip-direction): Flip scrolling direction
* lisp/mwheel.el (mwheel-scroll-left-function): Function to be called by wheel-left
* lisp/mwheel.el (mwheel-scroll-right-function): Function to be called by wheel-right
* lisp/mwheel.el (mouse-wheel-left-event): Event that calls wheel-left
* lisp/mwheel.el (mouse-wheel-right-event): Event that calls wheel-right
# NEWS
** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
You can start scrolling by customizing `mwheel-tilt-scroll-p'. When
direction of scroll is opposite, customize `mwheel-flip-direction'.
# Info
--- doc/emacs/frames.texi 2017-04-12 08:09:52.565691400 +0900
+++ doc/emacs/frames-b.texi 2017-04-12 08:16:45.075204400 +0900
@@ -206,6 +206,22 @@
@code{mouse-wheel-progressive-speed} determines whether the scroll
speed is linked to how fast you move the wheel.
+Emacs also supports horizontal scrolling by tilting ``wheel''. The
+variables @code{mwheel-tilt-scroll-p} turns the feature on. When
+direction is opposite as you wish, turn the variable
+@code{mwheel-flip-direction} on.
+
+Occasionally scrolling by a ``wheel'' is accelerated by system. In
+such case, default configuration may scroll too fast. If so, for
+example, you can add the following lines to your init file
+(@pxref{Init File}) to scroll less.
+
+@example
+(setq mouse-wheel-scroll-amount '(1 ((shift) . 5) ((control))))
+(setq mouse-wheel-progressive-speed nil)
+@end example
+
@node Word and Line Mouse
@section Mouse Commands for Words and Lines
next prev parent reply other threads:[~2017-04-11 23:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-03 11:11 bug#26347: patch for mwheel.el Tak Kunihiro
2017-04-03 15:00 ` Eli Zaretskii
2017-04-04 0:55 ` Tak Kunihiro
2017-04-04 2:52 ` Tak Kunihiro
2017-04-04 7:25 ` martin rudalics
2017-04-04 11:35 ` Tak Kunihiro
2017-04-04 14:34 ` Eli Zaretskii
2017-04-04 23:18 ` Tak Kunihiro
2017-04-05 2:36 ` Eli Zaretskii
2017-04-05 3:35 ` Tak Kunihiro
2017-04-11 9:47 ` Eli Zaretskii
2017-04-11 23:56 ` Tak Kunihiro [this message]
2017-04-12 13:35 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170412.085638.30144618.tkk@misasa.okayama-u.ac.jp \
--to=tkk@misasa.okayama-u.ac.jp \
--cc=26347@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).