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 09:37:22 +0900 (JST)

Hello!

> > However, if the cursor is in the position indicated by "*", (point)
> > returns *6*.
> > 
> >       ----
> >       1234*
> >      *1234
> >       ----
> > 
> > I do believe this should result in 11.
> 
> I disagree.
> Any value between 6 and 11 can be correct.  Which one is preferable depends
> on the stickiness of the `invisible' text-property.  In your case the
> property is rear-sticky, so in order for insertion of a char at point to
> insert a visible char, point has to be 6, which is why Emacs chose to use
> 6 in your example.

Is there any way that (point) returns 11 in Emacs 21.3.50?

I did
        (put-text-property 6 11 'rear-nonsticky t)
but (point) still returns 6.

Note that both Emacs 20.7 and Emacs 21.3 returns 11. Since my program
assumes this behavior, it does not work well on Emacs 21.3.50.

Even if there is a way to let Emacs 21.3.50 return 11, do you mean we
should give up backward compatibility?

--Kazu




reply via email to

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