From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#27008: 26.0.50; auto-hscroll-mode and scroll-left Date: Wed, 31 May 2017 16:18:26 +0200 Message-ID: <87efv52jpp.fsf@rosalinde> References: <87shjynvwj.fsf@rosalinde> <83zie6nsip.fsf@gnu.org> <87inkunf4k.fsf@rosalinde> <83efv6e6m0.fsf@gnu.org> <87d1aq9tb6.fsf@rosalinde> <83bmqae00s.fsf@gnu.org> <83a85udzet.fsf@gnu.org> <878tle9lhw.fsf@rosalinde> <834lw1ebvi.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1496241276 3496 195.159.176.226 (31 May 2017 14:34:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 May 2017 14:34:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27008@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 31 16:34:32 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 1dG4hk-0000aK-N2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 May 2017 16:34:32 +0200 Original-Received: from localhost ([::1]:59858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG4ho-0002W4-9q for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 May 2017 10:34:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG4Sn-0005fh-Rb for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 10:19:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG4Sk-00042Y-Nc for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 10:19:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dG4Sk-00042L-JD for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 10:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dG4Sk-0002FT-EK for bug-gnu-emacs@gnu.org; Wed, 31 May 2017 10:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 May 2017 14:19:02 +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.14962403168612 (code B ref 27008); Wed, 31 May 2017 14:19:02 +0000 Original-Received: (at 27008) by debbugs.gnu.org; 31 May 2017 14:18:36 +0000 Original-Received: from localhost ([127.0.0.1]:47521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dG4SK-0002Eq-8m for submit@debbugs.gnu.org; Wed, 31 May 2017 10:18:36 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dG4SI-0002Ed-3j for 27008@debbugs.gnu.org; Wed, 31 May 2017 10:18:34 -0400 Original-Received: from rosalinde ([83.135.14.77]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MIu7d-1dE9iE1YV7-002WCS; Wed, 31 May 2017 16:18:27 +0200 In-Reply-To: <834lw1ebvi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WFsZlcbfGXeS i7y8rM18kINQxNPc/MW5nGPCL/5wExHurP82SWlDp/h3snZ53RBQbG03tBPVuxHLnOtjXx04 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:133086 Archived-At: On Wed, 31 May 2017 10:14:41 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: 27008@debbugs.gnu.org >> Date: Tue, 30 May 2017 21:45:47 +0200 >> >> Thanks. Yes, with this patch the non-current lines are displayed from >> w->min_hscroll. However, there's a new problem: now when points moves >> to a line, that line automatically scrolls further by w->min_hscroll. >> So when I do `(scroll-left 32 t)' and then move point to another line, >> that line scrolls further left so that its column 64 is on the left edge >> of the window (the other lines remain displayed starting at column 32). >> When point moves to the next line, that one scrolls further to column 64 >> and the previous one goes back to being displayed from column 32. > > Does the below (to be applied on top of current master, i.e. first > revert the previous patch) fix this? Yes, the display and the horizontal scrolling is now exactly as I hoped it would be; many thanks! There is one minor issue: with auto-hscroll-mode set to `current-line' and (scroll-left 32 t), when I scroll vertically by holding down or C-n or or C-p, the motion is less smooth than usual. With the same auto-hscroll-mode setting but no scroll-left, vertical scrolling is smoother, but still not as smooth as with auto-hscroll-mode set to t or nil (with either of these settings, vertical scrolling seems slightly less smooth with (scroll-left 32 t) than with no scroll-left, though the difference is less noticeable than with auto-hscroll-mode set to current-line). But I don't think this is a serious annoyance, so unless you see an easy fix for it, I think you should commit the patch as is to master. Steve Berman