unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: 23570@debbugs.gnu.org
Subject: bug#23570: 25.1.50; Cursor motion error with visual-line-mode
Date: Wed, 18 May 2016 19:20:28 +0800	[thread overview]
Message-ID: <87lh374npf.fsf@gmail.com> (raw)

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.


In GNU Emacs 25.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.3)
 of 2016-05-17 built on tsparkle
Repository revision: 631ca55c6decccca2dc0961dc28962819eacc35b
Windowing system distributor 'The X.Org Foundation', version 11.0.11801000
System Description:	Arch Linux





             reply	other threads:[~2016-05-18 11:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18 11:20 Chong Yidong [this message]
2016-05-18 18:27 ` bug#23570: 25.1.50; Cursor motion error with visual-line-mode Eli Zaretskii
2016-05-19  2:58   ` Chong Yidong
2016-05-19  4:38     ` Eli Zaretskii
2016-05-19 12:56       ` martin rudalics
2016-05-19 16:50       ` Eli Zaretskii
2016-05-19 17:18         ` Eli Zaretskii
2016-05-20  1:54           ` Chong Yidong
2016-05-21  9:39             ` Eli Zaretskii
2016-05-23  2:09               ` Chong Yidong
2016-05-23  2:36                 ` Eli Zaretskii
2016-05-23  6:49                   ` John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lh374npf.fsf@gmail.com \
    --to=cyd@gnu.org \
    --cc=23570@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).