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: Thu, 26 Oct 2017 18:56:23 +0300 Message-ID: <837evh9a3c.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1509033445 30903 195.159.176.226 (26 Oct 2017 15:57:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Oct 2017 15:57:25 +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 Thu Oct 26 17:57:15 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 1e7kWo-0006AR-Lz for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Oct 2017 17:57:06 +0200 Original-Received: from localhost ([::1]:53577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kWw-00063Q-1S for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Oct 2017 11:57:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kWo-000627-PK for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 11:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7kWk-0003xg-Qn for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 11:57:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54819) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7kWk-0003xP-MR for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 11:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7kWk-0004Sq-Ey for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 11:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2017 15:57:02 +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.150903340317115 (code B ref 29002); Thu, 26 Oct 2017 15:57:02 +0000 Original-Received: (at 29002) by debbugs.gnu.org; 26 Oct 2017 15:56:43 +0000 Original-Received: from localhost ([127.0.0.1]:35264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kWR-0004Ry-8r for submit@debbugs.gnu.org; Thu, 26 Oct 2017 11:56:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kWP-0004Rk-VG for 29002@debbugs.gnu.org; Thu, 26 Oct 2017 11:56:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7kWG-0003Xv-VN for 29002@debbugs.gnu.org; Thu, 26 Oct 2017 11:56:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kWG-0003Xo-RC; Thu, 26 Oct 2017 11:56:32 -0400 Original-Received: from [176.228.60.248] (port=2116 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e7kWG-0001s1-8u; Thu, 26 Oct 2017 11:56:32 -0400 In-reply-to: (message from Keith David Bershatsky on Wed, 25 Oct 2017 23:20:09 -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:139013 Archived-At: > Date: Wed, 25 Oct 2017 23:20:09 -0700 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > • hscrolling_current_line_p is true. > • w->suspend_auto_hscroll is false. > • w->hscroll > 0. > • All non-current lines are also hscrolled. > • it.first_visible_x == 0. > > What would be a good method to programmatically test to see whether all other lines are hscrolled given the above? The above means that auto-hscroll is set to 'current-line'. In this case, the line that shows point is hscrolled by w->hscroll, and all the other lines are hscrolled by w->min_hscroll (in units of the frame's canonical character width).