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

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

Re: invisible


From: 山本和彦
Subject: Re: invisible
Date: Thu, 09 Dec 2004 13:28:43 +0900 (JST)

Hello,

Thank you for your reply.

> 11 is used depending on the phase of the moon (e.g. depends on whether
> point is moving forward or backward, etc...).
> Try (add-text-properties 6 11 '(rear-nonsticky t front-sticky t)) or
> (add-text-properties 6 11 '(rear-nonsticky (invisible) front-sticky
> (invisible))) or something like that (I rarely if ever fiddle with
> stickiness).

I have tried (add-text-properties 6 11 '(rear-nonsticky t front-sticky t)).
But my problem was not solved perfectly.

        ----
        1234  <= line 1
        1234  <= line 3
        ----

When the cursor moves onto the beginning of the line 3 by C-n from
line 1, (point) returns 11. Thanks.

When the cursor moves onto the beginning of the line 3 by C-e from the
end of line 3, (point) returns 11. Thanks.

However, when the cursor move onto the beginning of the line 3 by C-p
from line 4, (point) still returns 6. This makes my program broken.

How can I avoid this?

--Kazu









reply via email to

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