From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Distinguishing: Temporary v. Semi-Permanent -- Horizontal Scrolling Date: Sun, 24 Jun 2018 19:40:58 +0300 Message-ID: <834lhst9wl.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529858348 22439 195.159.176.226 (24 Jun 2018 16:39:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2018 16:39:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 24 18:39:04 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fX82a-0005mQ-It for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 18:39:04 +0200 Original-Received: from localhost ([::1]:42497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX84h-0003cV-RZ for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 12:41:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX84W-0003cE-N0 for emacs-devel@gnu.org; Sun, 24 Jun 2018 12:41:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fX84T-00028s-KD for emacs-devel@gnu.org; Sun, 24 Jun 2018 12:41:04 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX84T-00028Y-GU; Sun, 24 Jun 2018 12:41:01 -0400 Original-Received: from [176.228.60.248] (port=4002 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fX84S-00060d-VB; Sun, 24 Jun 2018 12:41:01 -0400 In-reply-to: (message from Keith David Bershatsky on Sun, 24 Jun 2018 09:16:01 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226660 Archived-At: > Date: Sun, 24 Jun 2018 09:16:01 -0700 > From: Keith David Bershatsky > Cc: emacs-devel@gnu.org > > I have not seen an example where horizontal scrolling is semi-permanent (C-u C-x <) and the current line is scrolled differently from the rest. For example, if w->min_hscroll is 4, shall I assume that the current line will always have the same amount of horizontal scrolling as all other lines in the visible window? No, of course not. Only the minimum amount of hscroll will be the same for all the lines. If auto-hscroll-mode is set to current-line, then typing "C-u 5 C-x <" will hscroll all lines by 5 columns. If you then move cursor so that it gets too close to the right margin of the window, the current line, and only that line, will be hscrolled by more than 5 columns, in order to bring point into view. The other lines will remain at their 5-column hscroll. IOW, in this mode "C-x <" affects all lines, but only the current line is scrolled more than that when needed.