From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. Date: Sun, 29 Oct 2017 13:12:15 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1509307998 31923 195.159.176.226 (29 Oct 2017 20:13:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Oct 2017 20:13:18 +0000 (UTC) Cc: 29002@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 29 21:13:14 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 1e8txH-0007f6-DT for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Oct 2017 21:13:11 +0100 Original-Received: from localhost ([::1]:37592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8txO-0000ji-H2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Oct 2017 16:13:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8txC-0000jL-O2 for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 16:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8tx9-0007tI-EU for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 16:13:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8tx9-0007sx-Aj for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 16:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e8tx8-0005NM-T0 for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 16:13:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Oct 2017 20:13: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.150930794020604 (code B ref 29002); Sun, 29 Oct 2017 20:13:02 +0000 Original-Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 20:12:20 +0000 Original-Received: from localhost ([127.0.0.1]:40943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8twS-0005MG-HB for submit@debbugs.gnu.org; Sun, 29 Oct 2017 16:12:20 -0400 Original-Received: from gateway36.websitewelcome.com ([192.185.193.119]:38027) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8twP-0005M6-C1 for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 16:12:17 -0400 Original-Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway36.websitewelcome.com (Postfix) with ESMTP id C9CD3400E6362 for <29002@debbugs.gnu.org>; Sun, 29 Oct 2017 15:12:16 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 8twOe7Q8c5b6T8twOeN0Hu; Sun, 29 Oct 2017 15:12:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=hbcj15Y9AnCON2TGYOwDVbSKXtME34B5jYBKhQhraAU=; b=lHxrHdauX6WuHyTcFY3iZ9sDhJ LwStOf/OrDUXtYERmA7mhlOJCSNWRS2/yT45RWeiENAOjrKKCdTk34ND08QTmwt2Qjdv4Ojb71NDu anNtcudRz03Fs1nKipRUG8MGjUqib6Yru7Cb5PxNiNQW6tP122mEIAUcfikSmplkbBS2EhlU11R11 5+lAVtV4u3B1Xx2gwjTU5EAINEAYGY23Qyt9SeAVVp1U5OEyhIJ5GFPsDhJIgCVli3fBeHjbGNmyA ZZIs0tezb9lsCCbjy/xsCD7ie8hIinMqv/N1MDMbgQtH7L/ElqNlPU7jsh5J3FULOoqLDMxHLaLkO vbdSqVTw==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50940 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e8twO-002ISH-21; Sun, 29 Oct 2017 15:12:16 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1e8twO-002ISH-21 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:50940 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes 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:139168 Archived-At: Horizontal scroll bars are not visible in this example. I have been using the horizontal mouse-wheel. I can reproduce the issue by evaluating (scroll-right 1) in the minibuffer when at the end of a long-line, and then pressing the left arrow-key, and then calling F5 (bound to bug-hscroll). 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. F8 is undefined on OSX, but I saw in a grep search that "C-x >" is bound to scroll-right. That behaves differently than (scroll-right 1) using the optional argument to control the distance. I also tried using "C-u 1 C-x >", but it behaves the same as "C-x >". The issue described in #29002 is not present when invoking "C-u 1 C-x >" or "C-x >" -- i.e., both of which appear to be semi-permanent forms of horizontal scrolling. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [10-29-2017 12:23:33] <29 Oct 2017 21:23:33 +0200> FROM: Eli Zaretskii > > > Date: Sun, 29 Oct 2017 11:56:22 -0700 > > From: Keith David Bershatsky > > Cc: 29002@debbugs.gnu.org > > > > I agree ... and that leads us to bug #29002. :) > > > > In the normal situation, the screen refreshes when the arrow key is used and non-current lines cease to be horizontally scrolled. In the current example, however, non-current lines remain horizontally scrolled and Emacs "thinks" that they are not. When I say that Emacs "thinks" they are not, I am referring to IT. > > What Emacs "thinks" is on display. And there we see hscrolled lines. > So first_visible_x must be non-zero, and that is what I see. If > first_visible_x were zero, you'd see the line's text starting with the > first character of each line. I very much doubt that this is somehow > Windows-specific, since xdisp.c is the platform-independent part of > the display engine. > > Or maybe the horizontal scroll bar on macOS somehow causes this. What > happens if you scroll-right with some key, like F8, and not with the > mouse? > > (In any case, invoking scroll-right in this situation makes very > little sense to me.)