From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23570: 25.1.50; Cursor motion error with visual-line-mode Date: Wed, 18 May 2016 21:27:21 +0300 Message-ID: <83oa832pdi.fsf@gnu.org> References: <87lh374npf.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1463596131 20120 80.91.229.3 (18 May 2016 18:28:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 18:28:51 +0000 (UTC) Cc: 23570@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 18 20:28:41 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b36D3-0005ft-9b for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2016 20:28:41 +0200 Original-Received: from localhost ([::1]:46522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36D2-00078e-JL for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2016 14:28:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36CU-0006oE-E4 for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 14:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b36CQ-0005JH-8j for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 14:28:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36CQ-0005J4-4y for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 14:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b36CQ-000772-09 for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 14:28: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: Wed, 18 May 2016 18:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23570 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23570-submit@debbugs.gnu.org id=B23570.146359605927306 (code B ref 23570); Wed, 18 May 2016 18:28:01 +0000 Original-Received: (at 23570) by debbugs.gnu.org; 18 May 2016 18:27:39 +0000 Original-Received: from localhost ([127.0.0.1]:57228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b36C2-00076M-Nx for submit@debbugs.gnu.org; Wed, 18 May 2016 14:27:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b36C0-000766-L1 for 23570@debbugs.gnu.org; Wed, 18 May 2016 14:27:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b36Bu-0004xM-EK for 23570@debbugs.gnu.org; Wed, 18 May 2016 14:27:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36Bq-0004tp-N5; Wed, 18 May 2016 14:27:26 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4858 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b36Bo-0005C9-DD; Wed, 18 May 2016 14:27:26 -0400 In-reply-to: <87lh374npf.fsf@gmail.com> (message from Chong Yidong on Wed, 18 May 2016 19:20:28 +0800) 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:118407 Archived-At: > From: Chong Yidong > Date: Wed, 18 May 2016 19:20:28 +0800 > > When visual-line mode is enabled, there is a bug causing the cursor to > fail to find the right start/end of a screen line. I see the bug with > Emacs 24.5, as well as the latest git version. No bug in Emacs 24.4. > > 1. emacs -Q > > 2. Insert the following (at the start of a new line): > > 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 ABCDEFGHIJK MOPQ > > 3. M-x visual-line-mode RET > > 4. Adjust the window width until it is just large enough for > "ABCDEFGHIJK" to be on the first line. > > 5. Decrease the window width by 1 character. Now, "ABCDEFGHIJK" should > be wrapped to the second line. > > 5. Move point to the beginning of the line starting with "1234...". > Now, typing C-e moves to the second screen line. Expected result: it > should move to the end of the first screen line. > > Various other screen oddities are observable in the vicinity of this > wrapped line. For instance, when point is on "Q", C-a moves to the > space before "M", rather than the start of the line. I cannot say I can reproduce this on my machine. I see something similar in Emacs 24.5, but not with the current master or release branch. I think what you see could be explained by changing the frame size by non-integer number of characters (i.e. by a number of pixels that is smaller than the canonical character width). But since I cannot come up with a reproducible recipe, I cannot debug this.