From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.bugs Subject: bug#26347: patch for mwheel.el Date: Wed, 12 Apr 2017 08:56:38 +0900 (JST) Message-ID: <20170412.085638.30144618.tkk@misasa.okayama-u.ac.jp> References: <83shlnoa14.fsf@gnu.org> <54B770D7-510E-49AE-BBCC-DE55B9D91B85@misasa.okayama-u.ac.jp> <83zifnjmxq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1491955033 31200 195.159.176.226 (11 Apr 2017 23:57:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Apr 2017 23:57:13 +0000 (UTC) Cc: tkk@misasa.okayama-u.ac.jp, 26347@debbugs.gnu.org To: eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 12 01:57:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cy5el-00081o-4V for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Apr 2017 01:57:07 +0200 Original-Received: from localhost ([::1]:41589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cy5eq-0007X3-Qx for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Apr 2017 19:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cy5eh-0007Wy-Kf for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 19:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cy5eg-00069C-FX for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 19:57:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45253) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cy5eg-000691-CH for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 19:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cy5eg-0001M5-5v for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 19:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Apr 2017 23:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26347-submit@debbugs.gnu.org id=B26347.14919550135194 (code B ref 26347); Tue, 11 Apr 2017 23:57:02 +0000 Original-Received: (at 26347) by debbugs.gnu.org; 11 Apr 2017 23:56:53 +0000 Original-Received: from localhost ([127.0.0.1]:43452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cy5eX-0001Li-BY for submit@debbugs.gnu.org; Tue, 11 Apr 2017 19:56:53 -0400 Original-Received: from mxl065v67.mxlogic.net ([208.81.65.67]:39766 helo=s14p02o144.mxlogic.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cy5eU-0001LZ-Um for 26347@debbugs.gnu.org; Tue, 11 Apr 2017 19:56:52 -0400 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s14p02o144.mxlogic.net(mxl_mta-8.5.0-1675) over TLS secured channel with ESMTP id c3d6de85.0.434729.00-374.914896.s14p02o144.mxlogic.net (envelope-from ); Tue, 11 Apr 2017 17:56:45 -0600 (MDT) X-MXL-Hash: 58ed6d3d411d5a00-925df61b1432c8852cb69c93cbf2c82b5745d97e Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 4939_06f0_4ec696d9_d6e6_48f6_9e6d_bdadba9546f3; Wed, 12 Apr 2017 08:56:39 +0900 Original-Received: from localhost (unknown [172.24.1.79]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id EFEAE4C0B16; Wed, 12 Apr 2017 08:56:39 +0900 (JST) In-Reply-To: <83zifnjmxq.fsf@gnu.org> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 4 Rules triggered EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV5996=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5996> : inlines <5804> : streams <1740789> : uri <2408021> X-AnalysisOut: [v=2.2 cv=MPYQoIRl c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=kj9zAlcOel0A:10 a=Azv] X-AnalysisOut: [cPWV-tVgA:10 a=lpm-l1lIlndHeon4IzIA:9 a=CjuIK1q_8ugA:10] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2017041119); S=0.216(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [42.127.236.175] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131489 Archived-At: 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