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#26599: patch for mwheel.el Date: Wed, 26 Apr 2017 15:08:42 +0900 Message-ID: References: <20170422.102752.273612275.tkk@misasa.okayama-u.ac.jp> <83k26cria3.fsf@gnu.org> <20170423.151300.318983865.tkk@misasa.okayama-u.ac.jp> <83lgqnpxs4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1493186956 28655 195.159.176.226 (26 Apr 2017 06:09:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2017 06:09:16 +0000 (UTC) Cc: Kunihiro Tak , 26599@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 26 08:09:09 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 1d3G8R-0007Ed-Cs for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 08:09:07 +0200 Original-Received: from localhost ([::1]:52819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3G8V-0006TQ-Cf for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 02:09:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3G8P-0006TA-P1 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 02:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3G8M-00023s-I8 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 02:09:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3G8M-00023J-Ez for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 02:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3G8M-0004Kx-7Q for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 02:09: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: Wed, 26 Apr 2017 06:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26599 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26599-submit@debbugs.gnu.org id=B26599.149318693716658 (code B ref 26599); Wed, 26 Apr 2017 06:09:02 +0000 Original-Received: (at 26599) by debbugs.gnu.org; 26 Apr 2017 06:08:57 +0000 Original-Received: from localhost ([127.0.0.1]:40464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3G8H-0004Kc-FF for submit@debbugs.gnu.org; Wed, 26 Apr 2017 02:08:57 -0400 Original-Received: from mxl069v65.mxlogic.net ([208.81.69.65]:15465 helo=s18p02o142.mxlogic.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3G8E-0004KS-L0 for 26599@debbugs.gnu.org; Wed, 26 Apr 2017 02:08:55 -0400 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o142.mxlogic.net(mxl_mta-8.5.0-1675) over TLS secured channel with ESMTP id 17930095.0.461868.00-390.1029153.s18p02o142.mxlogic.net (envelope-from ); Wed, 26 Apr 2017 00:08:51 -0600 (MDT) X-MXL-Hash: 590039734a4005fa-fb945337365de164aef80e0821f420530e0089b8 Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 01fa_5937_f6589fc2_9712_497d_a24e_9c768caabcff; Wed, 26 Apr 2017 15:08:43 +0900 Original-Received: from [192.168.1.50] (vesta.misasa.okayama-u.ac.jp [150.46.48.154]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 40C6A4C05A9; Wed, 26 Apr 2017 15:08:44 +0900 (JST) In-Reply-To: <83lgqnpxs4.fsf@gnu.org> X-Mailer: Apple Mail (2.1878.6) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0.1 X-NAI-Spam-Rules: 5 Rules triggered GME_TWTRE=0.1, EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6008=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6008> : inlines <5820> : streams <1742833> : uri <2416335> X-AnalysisOut: [v=2.2 cv=Cr/PSjwD c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=N659UExz7-8A:10 a=Azv] X-AnalysisOut: [cPWV-tVgA:10 a=7Gn5u6DG4zczJlNYHzoA:9 a=pILNOxqGKmIA:10] X-Spam: [F=0.5399361022; CM=0.500; MH=0.539(2017042509); S=0.200(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:131996 Archived-At: >>>> Is it possible to add a line that runs hook on `mwheel.el' to let = me >>>> do so without advice-add? >>>=20 >>> Wouldn't it be better to have a user option which would turn off >>> auto-hscroll-mode without running any hooks? >>=20 >> Yes. A concern is how to turn auto-hscroll-mode t back. >=20 > maybe I misunderstand something: what I had in mind is turn off > auto-hscroll-mode as part of the mwheel commands, then turn it back on > when the mwheel command did its job. >=20 >> User decides when to set auto-hscroll-mode t again by an event = besides >> wheel-up, -down, -left, or -down. >=20 > No, I meant to have it off as long as the mwheel command runs, and > restore it right back immediately afterwards. Let=92s consider a buffer consists of very long lines and an empty line. Point starts from A with auto-hscroll-mode t. 0000..0000 A 0000..0000 I C B D 00..0000 Z Point reaches to B by scroll up and as soon as auto-hscroll-mode is set to t, scope will be shifted to point C. Another scrolling up moves point to D instead of Z. To visit point Z, timer is required. A minor-mode serves as a long = timer.