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

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

Re: Fw: request for bug fix of "invisible"


From: Stefan Monnier
Subject: Re: Fw: request for bug fix of "invisible"
Date: Wed, 17 Nov 2004 09:05:02 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

>> Would someone kindly respond this report?
>> Thanks in advance.

> Below is a patch which fixes the C-n C-p movement.

> The C-e on "line 3" still works strange because if you place cursor on
> the 'l', C-x = reports point=8 which is actually the hidden 'l' on
> line 2, rather than the visible 'l' on line 3 (point=15).

> Stefan, can you comment on this?

Since by default the `invisible' text-property is rear-sticky and
front-non-sticky, if you insert a char before the "l" of "line3" it will be
invisible, whereas if you insert a char in front of the "l" of "line2" it
will not be invisible.  For this reason, the cursor-movement code tries to
place point in front of "line2" rather than in front of "line3".

C-e should not presume anything about the visibility of surrounding text.


        Stefan




reply via email to

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