The following message is a courtesy copy of an article
that has been posted to comp.emacs.xemacs as well.
>>>> "Marcus" == Marcus Harnisch
<marcus.harnisch(a)gmx.net> writes:
Marcus> The last character in such an extent seems to be treated
Marcus> differently from the others. Try this:
,----
| This is an extent.
|
| (setq ex (make-extent 1 19))
| (set-extent-face ex 'holiday-face) ; some face with a background color
`----
This is apparently a bug in transpose-chars. My guess is that what is
happening is that text is first deleted, shortening the extent, then
inserted after point. Since the extent is open at the endpoint, this
results in the inserted text being outside the extent.
Marcus> Also if there are any after-change-functions associated to
Marcus> the extent, they won't get called if point is at 18 and
Marcus> the command C-d (delete-char) is being called.
I'm not sure what's going on here. I'll take a look at it.
I think it's safe to say you should avoid writing code depending on
the behavior here, it's probably going to change.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
My nostalgia for Icon makes me forget about any of the bad things. I don't
have much nostalgia for Perl, so its faults I remember. Scott Gilbert c.l.py