From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.devel Subject: Re: naming of 26.1 mwheel- user options Date: Thu, 01 Mar 2018 21:20:54 +0900 (JST) Message-ID: <20180301.212054.1387727649261749755.tkk@misasa.okayama-u.ac.jp> References: <0FFA7F0C-FA0B-43D3-9037-1BEE7DB83B6F@misasa.okayama-u.ac.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Mar__1_21_20_54_2018_117)--" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519906922 12648 195.159.176.226 (1 Mar 2018 12:22:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2018 12:22:02 +0000 (UTC) Cc: rgm@gnu.org, tkk@misasa.okayama-u.ac.jp, emacs-devel@gnu.org To: athird@googlemail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 01 13:21:58 2018 Return-path: Envelope-to: ged-emacs-devel@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 1erNDh-0002me-5b for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2018 13:21:57 +0100 Original-Received: from localhost ([::1]:56048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erNFj-0003VV-Jp for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2018 07:24:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erNFb-0003Uw-Jh for emacs-devel@gnu.org; Thu, 01 Mar 2018 07:23:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erNFY-0000we-9Y for emacs-devel@gnu.org; Thu, 01 Mar 2018 07:23:55 -0500 Original-Received: from mxl065v67.mxlogic.net ([208.81.65.67]:44118 helo=s14p02o144.mxlogic.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erNFX-0000tK-MH; Thu, 01 Mar 2018 07:23:52 -0500 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s14p02o144.mxlogic.net(mxl_mta-8.5.0-1953) over TLS secured channel with ESMTP id bc0f79a5.0.416215.00-371.666467.s14p02o144.mxlogic.net (envelope-from ); Thu, 01 Mar 2018 05:23:39 -0700 (MST) X-MXL-Hash: 5a97f0cb179433e0-1ba4bd5f0914b1f1c9822350c600dfcbd8d77a9e Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 7d20_47ba_4c24bf17_93df_48be_a93c_91d70e5f2cdd; Thu, 01 Mar 2018 21:23:38 +0900 Original-Received: from localhost (p78059-ipngn200201tottori.tottori.ocn.ne.jp [114.176.69.59]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id E83C84C08D6; Thu, 1 Mar 2018 21:23:37 +0900 (JST) In-Reply-To: X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: ********** X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 10.1 X-NAI-Spam-Rules: 6 Rules triggered TS_MSG_REP_80_512=10, RCVD_BAD_SIP=0.1, EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_FAIL=0, RV6232=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6232> : inlines <6441> : streams <1780361> : uri <2601362> X-AnalysisOut: [v=2.2 cv=P5tKvmIu c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=v2DPQv5-lfwA:10 a=mDV] X-AnalysisOut: [3o1hIAAAA:8 a=CyYyvXujwI0B-bDwXQEA:9 a=CjuIK1q_8ugA:10 a=Y] X-AnalysisOut: [qLO1K-lNsrCSzQc8RgA:9 a=2Gx9PBEUTztXiwb-OaMA:9 a=N4TWCEimR] X-AnalysisOut: [WNlHMM9mCQA:9 a=_FVE-zBwftR9WsbkzFJk:22] X-Spam: [F=0.5200000000; CM=0.500; MH=0.520(2018030104); S=0.200(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [42.127.236.175] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 208.81.65.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223190 Archived-At: ----Next_Part(Thu_Mar__1_21_20_54_2018_117)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit > Mwheel-wheel? Shouldn't it be mouse-wheel? Thank you to point out! Let me send a patch again, to change names as below. [from mwheel-tilt-scroll-p] --> [to mouse-wheel-tilt-scroll] [from mwheel-flip-direction] --> [to mouse-wheel-flip-direction] * Commit log Change name of variables to be consistent Variables mwheel-tilt-scroll-p and mwheel-flip-direction were renamed to mouse-wheel-tilt-scroll and mouse-wheel-flip-direction, respectively. Suggested by Glenn Morris in emacs-devel@gnu.org. * lisp/mwheel.el (mouse-wheel-tilt-scroll): (mouse-wheel-flip-direction): * etc/NEWS: * doc/emacs/frames.texi (Mouse Commands): Variables are renamed. ----Next_Part(Thu_Mar__1_21_20_54_2018_117)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="frames.texi.diff" diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index 8cc4d64..c07e471 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi @@ -207,13 +207,13 @@ Mouse Commands @code{mouse-wheel-progressive-speed} determines whether the scroll speed is linked to how fast you move the wheel. -@vindex mwheel-tilt-scroll-p -@vindex mwheel-flip-direction +@vindex mouse-wheel-tilt-scroll +@vindex mouse-wheel-flip-direction Emacs can also support horizontal scrolling if your mouse's wheel can be tilted. This feature is off by default; the variable -@code{mwheel-tilt-scroll-p} turns it on. If you'd like to reverse the -direction of horizontal scrolling, customize the variable -@code{mwheel-flip-direction} to a non-@code{nil} value. +@code{mouse-wheel-tilt-scroll} turns it on. If you'd like to reverse +the direction of horizontal scrolling, customize the variable +@code{mouse-wheel-flip-direction} to a non-@code{nil} value. @node Word and Line Mouse ----Next_Part(Thu_Mar__1_21_20_54_2018_117)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mwheel.el.diff" diff --git a/lisp/mwheel.el b/lisp/mwheel.el index 9718ab8..cba1724 100644 --- a/lisp/mwheel.el +++ b/lisp/mwheel.el @@ -255,13 +255,13 @@ mwheel-scroll ;; Make sure we do indeed scroll to the end of the buffer. (end-of-buffer (while t (funcall mwheel-scroll-up-function))))) ((eq button mouse-wheel-left-event) ; for tilt scroll - (when mwheel-tilt-scroll-p - (funcall (if mwheel-flip-direction + (when mouse-wheel-tilt-scroll + (funcall (if mouse-wheel-flip-direction mwheel-scroll-right-function mwheel-scroll-left-function) amt))) ((eq button mouse-wheel-right-event) ; for tilt scroll - (when mwheel-tilt-scroll-p - (funcall (if mwheel-flip-direction + (when mouse-wheel-tilt-scroll + (funcall (if mouse-wheel-flip-direction mwheel-scroll-left-function mwheel-scroll-right-function) amt))) (t (error "Bad binding in mwheel-scroll")))) @@ -324,13 +324,13 @@ mwheel-install ;;; For tilt-scroll ;;; -(defcustom mwheel-tilt-scroll-p nil +(defcustom mouse-wheel-tilt-scroll nil "Enable scroll using tilting mouse wheel." :group 'mouse :type 'boolean :version "26.1") -(defcustom mwheel-flip-direction nil +(defcustom mouse-wheel-flip-direction nil "Swap direction of 'wheel-right and 'wheel-left." :group 'mouse :type 'boolean ----Next_Part(Thu_Mar__1_21_20_54_2018_117)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="NEWS.diff" diff --git a/etc/NEWS b/etc/NEWS index cb4048d..abd0792 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -431,9 +431,9 @@ always restricting the margin to a quarter of the window. +++ ** Emacs can scroll horizontally using mouse, touchpad, and trackbar. -You can enable this by customizing 'mwheel-tilt-scroll-p'. If you +You can enable this by customizing 'mouse-wheel-tilt-scroll'. If you want to reverse the direction of the scroll, customize -'mwheel-flip-direction'. +'mouse-wheel-flip-direction'. +++ ** The default GnuTLS priority string now includes %DUMBFW. ----Next_Part(Thu_Mar__1_21_20_54_2018_117)----