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

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

Re: moving point over invisible and intangible text


From: Stefan Monnier
Subject: Re: moving point over invisible and intangible text
Date: 22 Oct 2003 08:58:58 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>     I don't strictly follow the principle of not allowing point on both
>     sides of the invisible text.
> That's the entire purpose of the invisible-intangible feature.  There
> should only be one place point can appear to the user, for any one
> place on the screen.  If your feature doesn't do this, it doesn't
> really replace the invisible-intangible feature.

>       An example might be
>     when a line has some invisible text at its end and I do C-e: I want
>     to skip to the end of the invisible text,

> Why after and not before?  I am not convinced.

The end-point might be after or before depending on the stickiness.

>                                             but I don't want to skip past
>     the \n that follows it.

> The right place to put point would seem to be before the invisible text,
> in this case.  That's the point value that corresponds to the position
> on the screen at the end of the text on the line.  There should not be
> more than one.

If the text is sticky on one end and not on the other, my code should
do it like you want.


        Stefan




reply via email to

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