From xemacs-m  Fri Dec 20 10:10:42 1996
Received: from ns1.eds.com (ns1.eds.com [192.85.154.78])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id KAA14670 for <xemacs-beta@xemacs.org>; Fri, 20 Dec 1996 10:10:42 -0600 (CST)
Received: from nnsa.eds.com (nnsa.eds.com [130.174.31.78])
          by ns1.eds.com (8.8.4/8.8.4) with ESMTP
	  id LAA03361 for <xemacs-beta@xemacs.org>; Fri, 20 Dec 1996 11:10:43 -0500 (EST)
Received: from kocrsv04.delcoelect.com (kocrsv04.delcoelect.com [144.250.100.205]) by nnsa.eds.com (8.7.6/8.7.3) with ESMTP id LAA05903 for <xemacs-beta@xemacs.org>; Fri, 20 Dec 1996 11:10:13 -0500 (EST)
Received: from kocrsw12.delcoelect.com (kocrsw12.delcoelect.com [144.250.106.18]) by kocrsv04.delcoelect.com (8.7.5/8.7.3) with SMTP id LAA02298 for <xemacs-beta@xemacs.org>; Fri, 20 Dec 1996 11:10:12 -0500 (EST)
Received: from kocrsw12 by kocrsw12.delcoelect.com (SMI-8.6/SMI-SVR4)
	id LAA23287; Fri, 20 Dec 1996 11:10:12 -0500
X-Mailer: exmh version 2.0alpha 12/3/96
To: xemacs-beta@xemacs.org
Subject: Bug in zero-length extents?
X-Face: 4tk3bJx]I+QTZ|=]*1+Z){9+;5u_hK*NBeZK6[+B+iB%bVuOJ%^uK~fIG}O-}%WLX*D^aW>
 Gv8E3Xtz0\N&fQl^:pj<K{xM`:d>pPt:9lF-YXB%O)?@rd?*/jE!s94`?]:jJ#C5RDP:;Mr.3lwo`0
 {vIT+<{%IRwe]vLd]7>\X|*z{TUX_t;?TPcOLBMIv8_V92!Vk(*DJVU~0M[`5D^PAWLniO1?YYWArM
 U*j9o+>?1MWi.lO?F-?aVt:qQ8OaG?R}B:I!7S_+KuzxZ.f9M@$z#n\bG2$Q2{od
Date: Fri, 20 Dec 1996 11:10:11 -0500
Message-ID: <23285.851098211@kocrsw12>
From: Mike Scheidler <c23mts@eng.delcoelect.com>

I think I've run across a problem with zero-length extents (at least the
behavior doesn't agree with the documentation).  Eval the following:

    (defun mts-extent ()
        (interactive)
        (setq mts-extent (make-extent (point) (point)))
        (set-extent-property mts-extent 'end-open nil)
        (set-extent-property mts-extent 'start-open t)
        (set-extent-property mts-extent 'face 'bold)
        (insert-string "Why am I bold?")
        (extent-length mts-extent))

Then do  "M-x mts-extent" and see the bold output.  In addition,

        (extent-length mts-extent) 

returns a value of 14.

According to what I can find in the documentation (both in extents.c and in
the lispref info files), setting the 'end-open and 'start-open properties
as shown above should keep the length of the extent to 0, with new text
being inserted before the extent.

--
Mike Scheidler                     INTERNET:  c23mts@eng.delcoelect.com
Software Development Tools         UUCP:      deaes!c23mts
Delco Electronics Corporation      PHONE:     (317) 451-0319
Kokomo, IN 46904-9005              GMNET:     8-322-0319


