emacs-devel
[Top][All Lists]
Advanced

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

Re: Possible `point-entered' `point-left' Text Property Bug


From: Chong Yidong
Subject: Re: Possible `point-entered' `point-left' Text Property Bug
Date: Sun, 14 May 2006 11:24:07 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     Now, suppose we call `next-line'.  The part of `line-move-finish' that
>     processes intangibility, shown above, first moves point from its
>     original position to point-min, rebinds inhibit-point-motion-hooks to
>     nil, then moves to the desired point:
>
> Hmm, I agree that scanning from point-min is somewhat odd.
> Maybe it would be better to use (line-beginning-position)
> instead of (point-min) as the starting point.  What do you think?
> Does that make it work?

Not always.  For example, when point-left and point-entered are placed
over an interval that does not cover the line-beginning position, as
shown:

    | interval  |
 1 2 3 4_5 6 7 8 9
        ^ point is here




reply via email to

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