From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35659: 26.1; Weird horizontal scroll behavior with certain settings for `auto-hscroll-mode' and `hscroll-step`. Date: Fri, 10 May 2019 16:02:43 +0300 Message-ID: <83ef56fong.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="13461"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35659@debbugs.gnu.org To: Clemens Radermacher Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 10 15:08:58 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP5Gk-0003I2-Eq for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2019 15:08:58 +0200 Original-Received: from localhost ([127.0.0.1]:43031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP5Gj-00016X-Bh for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2019 09:08:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP5C3-0005Bx-29 for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 09:04:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hP5By-0005Fq-7f for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 09:04:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hP5By-0005FW-3z for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 09:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hP5Bx-0007Yp-OU for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 09:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 May 2019 13:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 35659-submit@debbugs.gnu.org id=B35659.155749338628997 (code B ref 35659); Fri, 10 May 2019 13:04:01 +0000 Original-Received: (at 35659) by debbugs.gnu.org; 10 May 2019 13:03:06 +0000 Original-Received: from localhost ([127.0.0.1]:37426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP5B1-0007Xa-VM for submit@debbugs.gnu.org; Fri, 10 May 2019 09:03:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP5Az-0007X6-6C for 35659@debbugs.gnu.org; Fri, 10 May 2019 09:03:03 -0400 Original-Received: from fencepost.gnu.org ([209.51.188.10]:58557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP5At-00048u-T4; Fri, 10 May 2019 09:02:56 -0400 Original-Received: from [176.228.60.248] (port=4230 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hP5As-0006IX-1X; Fri, 10 May 2019 09:02:55 -0400 In-reply-to: (message from Clemens Radermacher on Fri, 10 May 2019 14:37:59 +0200) 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: 209.51.188.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:159040 Archived-At: > Cc: eliz@gnu.org > From: Clemens Radermacher > Date: Fri, 10 May 2019 14:37:59 +0200 > > > Neither auto-hscroll-mode nor the current-line hscrolling > > feature change that basic behavior. > > When I do the described steps with hscroll-step set to 0 I don't get this > behavior. Then it is the way I would like it to be (just go to the end of the previous > line without scrolling it when it doesn't exceeds the window width). Then I guess you already have the solution that fits your needs, right? > In my opinion the behavior in the gif is a bug, > the lines which do no exceed the window width should not be scrolled should they? By default, they are scrolled, exactly as they are when auto-hscroll-mode is t. You are saying that the 'current-line' mode should behave differently because of some different expectations in that specific case. That's debatable, but the fact is the code which implements that mode was never meant to change this basic behavior of horizontal scrolling. If someone wants to write code to cater also to the behavior you want to see, I promise to review it. But I won't myself work on this, as this area of the Emacs display is already quite tricky and full of subtleties. Sorry.