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#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. Date: Mon, 30 Oct 2017 20:02:27 +0200 Message-ID: <83vaiwtsy4.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1509386607 12596 195.159.176.226 (30 Oct 2017 18:03:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2017 18:03:27 +0000 (UTC) Cc: 29002@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 30 19:03:19 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 1e9EP4-0001z7-Nk for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Oct 2017 19:03:14 +0100 Original-Received: from localhost ([::1]:41965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9EPC-0006RL-3g for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Oct 2017 14:03:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9EOs-0006KO-Vg for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2017 14:03:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9EOs-0008Ud-4X for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2017 14:03:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33859) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9EOs-0008UO-0V for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2017 14:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e9EOr-0001rb-La for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2017 14:03: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: Mon, 30 Oct 2017 18:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29002 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29002-submit@debbugs.gnu.org id=B29002.15093865757149 (code B ref 29002); Mon, 30 Oct 2017 18:03:01 +0000 Original-Received: (at 29002) by debbugs.gnu.org; 30 Oct 2017 18:02:55 +0000 Original-Received: from localhost ([127.0.0.1]:42540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9EOl-0001rE-CK for submit@debbugs.gnu.org; Mon, 30 Oct 2017 14:02:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9EOj-0001qy-QG for 29002@debbugs.gnu.org; Mon, 30 Oct 2017 14:02:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9EOa-0008IE-0c for 29002@debbugs.gnu.org; Mon, 30 Oct 2017 14:02:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9EOZ-0008I6-UJ; Mon, 30 Oct 2017 14:02:43 -0400 Original-Received: from [176.228.60.248] (port=3822 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e9EOZ-0001AJ-Ak; Mon, 30 Oct 2017 14:02:43 -0400 In-reply-to: (message from Keith David Bershatsky on Sun, 29 Oct 2017 13:12:15 -0700) 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:139188 Archived-At: > Date: Sun, 29 Oct 2017 13:12:15 -0700 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > It appears to me that (scroll-right 1) is kind of a temporary form of horizontal scrolling, which automatically cancels as to non-current lines in a vareity of situations when keyboard input is received. Plain old scroll-right without the optional distance argument is semi-permanent, and non-current lines do not automatically return to a non-scrolled state. Yes, it's temporary. For a permanent hscroll, you need to invoke scroll-left/right with its second argument non-nil (which happens automatically in interactive invocation). Does the hscroll get reset after moving cursor if you type "M-x"?