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: Tue, 4 Apr 2017 09:55:01 +0900 Message-ID: <7CB47036-03AE-4C5B-9E14-3D84A6C4C757@misasa.okayama-u.ac.jp> References: <338AA78D-144B-4857-AFE7-97E624DD85C4@misasa.okayama-u.ac.jp> <83mvbxpmdb.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 1491267374 31126 195.159.176.226 (4 Apr 2017 00:56:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2017 00:56:14 +0000 (UTC) Cc: Kunihiro Tak , 26347@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 04 02:56:10 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 1cvClU-0007GB-1j for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Apr 2017 02:56:08 +0200 Original-Received: from localhost ([::1]:33462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvClY-0006hO-Eg for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Apr 2017 20:56:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvClS-0006h4-2i for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2017 20:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvClP-0005Tr-1E for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2017 20:56:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33216) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvClO-0005Tj-Ul for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2017 20:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cvClO-0007sX-Iw for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2017 20:56: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, 04 Apr 2017 00:56: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.149126733530236 (code B ref 26347); Tue, 04 Apr 2017 00:56:02 +0000 Original-Received: (at 26347) by debbugs.gnu.org; 4 Apr 2017 00:55:35 +0000 Original-Received: from localhost ([127.0.0.1]:59648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvCkx-0007rc-3E for submit@debbugs.gnu.org; Mon, 03 Apr 2017 20:55:35 -0400 Original-Received: from mxl069v66.mxlogic.net ([208.81.69.66]:23084 helo=s18p02o143.mxlogic.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvCku-0007rP-V2 for 26347@debbugs.gnu.org; Mon, 03 Apr 2017 20:55:33 -0400 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o143.mxlogic.net(mxl_mta-8.5.0-1675) over TLS secured channel with ESMTP id dfee2e85.0.151137.00-383.329640.s18p02o143.mxlogic.net (envelope-from ); Mon, 03 Apr 2017 18:55:30 -0600 (MDT) X-MXL-Hash: 58e2ef024f21cc6c-035434b2099879272d25f08adda72a9c002bde22 Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 1510_1791_b59f7752_c399_421d_876f_23d84eca3e8e; Tue, 04 Apr 2017 09:55:19 +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 7E44D4C0AF0; Tue, 4 Apr 2017 09:55:20 +0900 (JST) In-Reply-To: <83mvbxpmdb.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, RV5989=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5989> : inlines <5775> : streams <1739835> : uri <2403377> X-AnalysisOut: [v=2.2 cv=A48cB+eG 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=5RLcGgnWbBgB4uhVV-MA:9 a=pILNOxqGKmIA:10] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2017040311); 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:131254 Archived-At: >> During not only horizontal scroll but also vertical scroll, >> `auto-hscroll-mode' should be disabled by following three aspects. >>=20 >> (1) It should be off during horizontal scroll. If it is on, scope >> jumps randomly when point is at the edge. Also, since >> horizontal scroll does not move point, there will be >> inconsistency between point and scope, and the inconsistency >> will result in unexpected shift of the scope. >>=20 >> (2) It should be off during vertical scroll. When a buffer is with >> short and long alternative lines, scope jumps from the end of >> long line to the end of short line. Sudden shift of the scope >> makes edition of a wide document hard. >=20 > We don't turn off auto-hscroll-mode when scrolling with the horizontal > or vertical scroll bars, and we don't have the problems you describe > in those cases. Why is this case different? I see your point in regard to (1). Yes, if `mwheel-scroll=92 can scroll = right or left like horizontal-scroll-bar does, turing off auto-hscroll-mode is = not necessary for case (1). Give me time to understand code of = horizontal-scroll-bar. In regard to (2), let=92s say you have a very long line and your point = is at the end of line in a window. The next line is short and even the end of line is = not shown in the window. The third line is very long again. > date & session & stone & remark & date & session & stone & remark\\ > \hline > April 4, 2017 & a & b & c & April 4, 2017 & a & b & c\\ When you move vertical-scroll-bar down, eventually the long line = disappears above the top of window. The point moves to the end of the next short = line. As a consequence, you see scope shifted. The patch tries to keep the = scope to be the same. To do so, auto-hscroll-mode was set to off.