GNU bug report logs - #22098
25.0.50; visual-line-mode and invisible text causes cursor to jump

Previous Next

Package: emacs;

Reported by: dunni <at> gnu.org

Date: Sat, 5 Dec 2015 20:48:02 UTC

Severity: normal

Found in version 25.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 22098 <at> debbugs.gnu.org (full text, mbox):

From: Ian Dunn <dunni <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 22098 <at> debbugs.gnu.org
Subject: Re: bug#22098: 25.0.50;
 visual-line-mode and invisible text causes cursor to jump
Date: Sun, 06 Dec 2015 00:28:57 -0500
Eli Zaretskii <eliz <at> gnu.org> writes:

>
> I seem to be unable to reproduce this on my system.  Maybe I didn't
> understand the exact place where to put the invisible property.  What
> is the value of point there?
>

Move point to the start of logical line 19, then move point one visual
line up.  Set that character to be invisible, then move point back to
the start of logical line 19.  Re-position the window twice, then move
point up one visible line.

M-g M-g 19
C-p
C-M-: (add-text-properties (point) (1+ (point)) '(invisible t))
C-n
C-l C-l
C-p

> Also, is it really necessary to invoke the commands via M-x, or do you
> see the same problem when you use C-n, C-l, and C-p instead?
>

I try not to assume that everyone has the same key-bindings as me, so I
thought it might help to use the actual command names.  As far as I can
tell, it makes no difference.

> Finally, your build is slightly outdated, so perhaps see if the
> problem persists with the current emacs-25 branch.
>
> Thanks.

I updated my build to the most recent version of the emacs-25 branch,
but the problem still persists.  I forgot to mention in my original
report that this seems similar to bug #17047
(https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-03/msg00804.html).
It looks like the old bug addressed the problem with forward-char and
backward-char.  I've checked with next-line, but I've never seen it
happen before.  I only ever see this problem with previous-line.

Thanks for your quick response.




This bug report was last modified 9 years and 161 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.