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#32060: Horizontal Scrolling (Current Line): Wrong line gets h-scrolled. Date: Thu, 05 Jul 2018 08:30:05 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1530804571 16037 195.159.176.226 (5 Jul 2018 15:29:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2018 15:29:31 +0000 (UTC) To: 32060@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 05 17:29:27 2018 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 1fb6CE-00042J-JE for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jul 2018 17:29:27 +0200 Original-Received: from localhost ([::1]:53320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6EL-0003qc-QQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jul 2018 11:31:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6Dp-0003bD-Qm for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 11:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6Dm-0004iX-HT for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 11:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6Dm-0004iR-D2 for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 11:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fb6Dm-0006s0-3X for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 11:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jul 2018 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32060 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Emacs Bug Reports Original-Received: via spool by submit@debbugs.gnu.org id=B.153080463926374 (code B ref -1); Thu, 05 Jul 2018 15:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jul 2018 15:30:39 +0000 Original-Received: from localhost ([127.0.0.1]:47919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fb6DP-0006rK-9t for submit@debbugs.gnu.org; Thu, 05 Jul 2018 11:30:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fb6DN-0006r5-LP for submit@debbugs.gnu.org; Thu, 05 Jul 2018 11:30:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6DF-0004Mh-4R for submit@debbugs.gnu.org; Thu, 05 Jul 2018 11:30:32 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fb6DE-0004MC-7E for submit@debbugs.gnu.org; Thu, 05 Jul 2018 11:30:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6D9-0003B3-Mh for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 11:30:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6D6-0004F4-EV for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 11:30:23 -0400 Original-Received: from gateway34.websitewelcome.com ([192.185.149.222]:39609) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fb6D6-00048l-5k for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 11:30:20 -0400 Original-Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 822D816072E for ; Thu, 5 Jul 2018 10:30:07 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id b6CsfdTygPvAdb6Ctfl1Bg; Thu, 05 Jul 2018 10:30:07 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc: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=IasLxPiptBgLAPUt7bTFQTmvQmGnb8lyJRBMNnqqPok=; b=gUwSrzGjqYJhuGzmF2U38udhtS RkcV2UHtgyEaiA8TlIdKmvNfWis9yEiftzQ3F/UnVXTGGmwq8iV42RqMY3xiRrpEqKJiJtLhpKqDt uyI8ZAbahFUiigtbzaMPox2cVn5538W5FZSa9seD4XeEb+NKbi/me02NkXk4shIwLX7wklvxZT28R WFio16GOqx3YOVE9Ab2xwyaSkjAfC6WMyYWna3LcjAsaD/QpgUX0PDmURkUTPMx/eapMVjlGkpxUV J9+F6hfY+MrwZ+0MCiLUDZaqcI5MNqNG7NroWHLg4DvvJFj4e2Z5jg1Z+wz/GTzpP8xjyJ2FzDyCq Q3JkUX3w==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49652 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1fb6Cs-001XI3-JI for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 10:30:06 -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 - 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: 1fb6Cs-001XI3-JI X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:49652 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:148225 Archived-At: With a few long lines (of different lengths) in a scratch buffer in Emacs master branch (freshly built), it is possible to visually observe that the wrong line gets horizontally scrolled instead of the current line. Step 1: Build a new Emacs from the master branch. Step 2: In a scratch buffer, paste the following long lines: Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. Step 3: Evaluate the following: (progn (fundamental-mode) (setq-local auto-hscroll-mode 'current-line) (scroll-left 10 t)) Step 4: Place the cursor at the very end of the buffer; i.e., at the very end of the last long line of text. Make sure that it gets horizontally scrolled. Step 5: Press the arrow key up one (1) time. Step 6: Press M-Left one (1) time. The cursor should now be on the second to the last line in the buffer, at the beginning of the word "lobortis." Step 7: Now press the arrow keys up or down and watch as the wrong line gets horizontally scrolled. The line that was last visited before moving up/down is the line that gets horizontally scrolled instead of the current line.