emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more problems with line-move


From: Stefan Monnier
Subject: Re: more problems with line-move
Date: 08 Mar 2004 15:15:48 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> With your code, is it possible for point to be either before or after
> the invisible text?

Yes.

> If so, how do you prevent those from being two point values which would
> appear at the same screen position?

If point was at position A and is going to position B and both positions map
to the same screen position, then my code moves point to B+1 (or B-1
depending on the direction, of course).  That's not always correct, but at
that level (i.e. without knowing what the command intended to do) it's
difficult to do any better.

But yes, we can sometimes reach point A and sometimes point B (both ends of
a non-sticky invisible extent of text) depending on how the user gets to
this text.  For sticky invisible text, this should not happen.

For invisible-with-ellipsis text, the behavior is slightly different since
movement from A to B can be seen on screen (except for the fact that the
display code is buggy in this respect and always displays the cursor after
the ellipsis).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]