From xemacs-m  Sun Jun  1 12:14:32 1997
Received: from crystal.WonderWorks.COM (crystal.WonderWorks.com [192.203.206.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id MAA19881
	for <xemacs-beta@xemacs.org>; Sun, 1 Jun 1997 12:14:30 -0500 (CDT)
Received: by crystal.WonderWorks.COM 
	id QQcsbs15258; Sun, 1 Jun 1997 13:14:31 -0400 (EDT)
Date: Sun, 1 Jun 1997 13:14:31 -0400 (EDT)
Message-Id: <QQcsbs15258.199706011714@crystal.WonderWorks.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Kyle Jones <kyle_jones@wonderworks.com>
To: xemacs-beta@xemacs.org
Subject: Xemacs text-property-bug with insert?
In-Reply-To: <rjg1v2pwpc.fsf@zuse.dina.kvl.dk>
References: <rjg1v2pwpc.fsf@zuse.dina.kvl.dk>
X-Mailer: VM 6.32 under 20.3 XEmacs Lucid (beta3)
X-Face: /cA45WHG7jWq>(O3&Z57Y<"WsX5ddc,4c#w0F*zrV#=M
        0@~@,s;b,aMtR5Sqs"+nU.z^CSFQ9t`z2>W,S,]:[+2^
        Nbf6v4g>!&,7R4Ot4Wg{&tm=WX7P["9%a)_da48-^tGy
        ,qz]Z,Zz\{E.,]'EO+F)@$KtF&V

Per Abrahamsen writes:
 > If you insert and evaluate the following in a clean buffer,
 > the word "hello" will be *bold* _*and*_ _underline_.  As I
 > understand how text properties are supposed to work, it should
 > only be *bold*.

Text properties are implemented with extents under XEmacs.
The faces of overlapping extens are merged for display, which
explains what you see in your example.

Further, if you call (get-text-property 7 'face) in the overlapping
region you get an incorrect answer.

So yeah, the text property emulation is broken.  How broken, you
really don't want to know.

"Would you like to fix it?" says Kyle, with a stupidly hopeful grin.

