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#27008: 26.0.50; auto-hscroll-mode and scroll-left Date: Sun, 21 May 2017 18:23:10 +0300 Message-ID: <83zie6nsip.fsf@gnu.org> References: <87shjynvwj.fsf@rosalinde> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1495380257 880 195.159.176.226 (21 May 2017 15:24:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 21 May 2017 15:24:17 +0000 (UTC) Cc: 27008@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 21 17:24: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 1dCSiG-0008SH-RX for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 May 2017 17:24:08 +0200 Original-Received: from localhost ([::1]:38351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCSiM-00017B-8r for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 May 2017 11:24:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCSiD-000175-EY for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 11:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCSiA-0004Yg-6u for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 11:24:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56805) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCSiA-0004YW-47 for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 11:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dCSi9-0002eE-Ru for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 11:24: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: Sun, 21 May 2017 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27008 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27008-submit@debbugs.gnu.org id=B27008.149538021610147 (code B ref 27008); Sun, 21 May 2017 15:24:01 +0000 Original-Received: (at 27008) by debbugs.gnu.org; 21 May 2017 15:23:36 +0000 Original-Received: from localhost ([127.0.0.1]:59481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCShj-0002db-UH for submit@debbugs.gnu.org; Sun, 21 May 2017 11:23:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCShi-0002dO-A6 for 27008@debbugs.gnu.org; Sun, 21 May 2017 11:23:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCSha-0004FA-0L for 27008@debbugs.gnu.org; Sun, 21 May 2017 11:23:29 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCShZ-0004F5-TE; Sun, 21 May 2017 11:23:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3714 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dCShZ-0007GO-8Q; Sun, 21 May 2017 11:23:25 -0400 In-reply-to: <87shjynvwj.fsf@rosalinde> (message from Stephen Berman on Sun, 21 May 2017 16:10:04 +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: 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:132697 Archived-At: > From: Stephen Berman > Date: Sun, 21 May 2017 16:10:04 +0200 > > When auto-hscroll-mode is set to `current-line' and scroll-left is > invoked with arguments ARG > 0 and SET-MINIMUM non-nil, then when the > current line is automatically horizontally scrolled, all other lines in > the buffer are scrolled back to logical BOL, i.e. SET-MINIMUM is ignored > (except on the current line). To reproduce: > > 0. emacs -Q > 1. Set auto-hscroll-mode to `current-line'. > 2. Type `C-x C-f /path/to/hscroll-bug RET' (the attached file). > 3. Type `M-x toggle-truncate-lines' and `M-: (scroll-left 32 t)'. > 4. Type `C-p' repeatedly. > => When point is on the third line, and for all subsequent vertical > motion, all lines but the current one are displayed starting at BOL > instead of column SET-MINIMUM. I don't understand what you expected instead. current-line hscrolling is designed to be disabled when manual scrolling is used, so using scroll-left is incompatible with automatic hscrolling and should have disabled it. If anything, I could understand a complaint that the current line is still hscrolled in this recipe, but otherwise I think your expectations are a tad too much; the effect you describe is more or less what I intended to happen. Technically, the minimum hscroll is implemented by the same code which calculates the window's hscroll value upon redisplay, and in current-line hscrolling that value affects only the current line, the rest of the window is displayed as if the hscroll is zero.