From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26347: patch for mwheel.el Date: Wed, 05 Apr 2017 05:36:39 +0300 Message-ID: <83shlnoa14.fsf@gnu.org> References: <83mvbxpmdb.fsf@gnu.org> <7CB47036-03AE-4C5B-9E14-3D84A6C4C757@misasa.okayama-u.ac.jp> <592025CA-53C7-4443-97F6-114A79D7A43F@misasa.okayama-u.ac.jp> <20170404.203505.488305127.tkk@misasa.okayama-u.ac.jp> <83bmscp7h9.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1491359841 25707 195.159.176.226 (5 Apr 2017 02:37:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2017 02:37:21 +0000 (UTC) Cc: 26347@debbugs.gnu.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 05 04:37:13 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 1cvaon-0005TW-FU for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Apr 2017 04:37:09 +0200 Original-Received: from localhost ([::1]:38479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvaot-0007wa-64 for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Apr 2017 22:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvaoh-0007u7-EU for bug-gnu-emacs@gnu.org; Tue, 04 Apr 2017 22:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvaog-0001YM-KC for bug-gnu-emacs@gnu.org; Tue, 04 Apr 2017 22:37:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvaog-0001Y8-GC for bug-gnu-emacs@gnu.org; Tue, 04 Apr 2017 22:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cvaog-0003ka-7u for bug-gnu-emacs@gnu.org; Tue, 04 Apr 2017 22:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Apr 2017 02:37: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.149135981014394 (code B ref 26347); Wed, 05 Apr 2017 02:37:02 +0000 Original-Received: (at 26347) by debbugs.gnu.org; 5 Apr 2017 02:36:50 +0000 Original-Received: from localhost ([127.0.0.1]:33040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvaoU-0003k6-Fa for submit@debbugs.gnu.org; Tue, 04 Apr 2017 22:36:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvaoT-0003jv-9f for 26347@debbugs.gnu.org; Tue, 04 Apr 2017 22:36:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvaoJ-0001UJ-Te for 26347@debbugs.gnu.org; Tue, 04 Apr 2017 22:36:44 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvaoJ-0001UE-Qb; Tue, 04 Apr 2017 22:36:39 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1684 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cvaoI-0003F2-SO; Tue, 04 Apr 2017 22:36:39 -0400 In-reply-to: (message from Tak Kunihiro on Wed, 5 Apr 2017 08:18:42 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:131282 Archived-At: > From: Tak Kunihiro > Date: Wed, 5 Apr 2017 08:18:42 +0900 > Cc: Kunihiro Tak , > rudalics@gmx.at, > 26347@debbugs.gnu.org > > Now I leaned auto-hscroll-mode is irrelevant to horizontal scroll. > However, I still insist that it should be off on horizontal and > vertical scrolling. > > (A) It should be off during vertical scroll. Let’s consider a buffer > is with short and long alternative lines and when point is at the > end of long line, at the top of current window. After `scroll-up > 1', point jumps to the end of the next short line and you see scope > shifts suddenly leftward. This behavior is sometimes unexpected > one. > > (B) It should be off during horizontal scroll. During horizontal > scroll, you may scroll a little in vertical direction without > intention. The horizontal scroll should be tolerance against such > perturbation. The source of concern is same as (A). > > The concern (A) is shared with vertical scroll-bar. With this > respect, the concern should be solved by `scroll-up' not by > `mwheel-scroll'. > > I think when point moves off the left edge of the window with cursor > frozen at the left edge of the window, `scroll-up' should scroll up > without horizontal shift. > > Conclusion: Yes. The considerations you present are not special to the proposed horizontal scrolling using a mouse wheel, they are valid for any scrolling. IOW, this is how scrolling behaved in Emacs since about forever. And I think it's not a good idea to have some methods of scrolling behave differently from others. So I could agree to having a user option to temporarily disable auto-hscroll-mode during scrolling, but the default behavior should be what we have now, and the option should affect all methods of scrolling alike. Thanks.