Subject: bug#11094: Wrong cursor positioning with display+invisible

From: Stefan Monnier <[email-masked]>
Date: Mon, 26 Mar 2012 00:07:32 -0400

Package: Emacs
Version: 24.0.94

Extract the test.cpio and cpio-mode.el files attached, and then try:

   src/emacs -Q -l .../cpio-mode.el .../test.cpio

First, you'll note that the cursor is displayed at end-of-line (whereas
in reality point as it BOB), then move forward with C-f and you'll see
the cursor jumping in odd ways (often being pushed to end-of-line even
when we're still in the middle of the line).

In Emacs-23, the cursor jumps correctly over the various display and
invisible fields, so this is a regression.

        Stefan

In GNU Emacs 24.0.94.1 (i386-unknown-linux-gnu, GTK+ Version 2.24.10)
 of 2012-03-21 on pastel
Windowing system distributor `The X.Org Foundation', version 11.0.11104000
Configured using:
 `configure
 'CFLAGS=-Wall -Wno-pointer-sign -DUSE_LISP_UNION_TYPE -DSYNC_INPUT -DENABLE_CHECKING -DXASSERTS -DFONTSET_DEBUG -g -O0'
 '--with-tiff=no''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: fr_CH.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t