[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
invisible
From: |
山本和彦 |
Subject: |
invisible |
Date: |
Wed, 08 Dec 2004 16:27:08 +0900 (JST) |
Hello,
I have found one more bug relating to the invisible property. Suppose
we have the following text in the beginning of a buffer:
----
1234
6789
1234
----
If the cursor is in the position indicated by "*", (point) returns 5.
----
1234*
6789
1234
----
And if the cursor is in the position indicated by "*", (point) returns
11.
----
1234
6789
*1234
----
Now we make the second line invisible.
(put-text-property 6 11 'invisible t)
We get:
----
1234
1234
----
If the cursor is in the position indicated by "*", (point) returns 5.
----
1234*
1234
----
However, if the cursor is in the position indicated by "*", (point)
returns *6*.
----
1234*
*1234
----
I do believe this should result in 11.
--Kazu