From xemacs-m  Tue Jul  8 02:38:49 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id CAA18284
	for <xemacs-beta@xemacs.org>; Tue, 8 Jul 1997 02:38:47 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id JAA12847; Tue, 8 Jul 1997 09:38:00 +0200 (MET DST)
To: karlheg+xemacs@inetarena.com (Karl M. Hegbloom)
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: [PATCH] `buffer-substring-no-properties' (was: dabbrev inserting read-only)
References: <87soxq2odf.fsf@bittersweet.inetarena.com> <kigpvsukvul.fsf@jagor.srce.hr> <87oh8e2e4x.fsf@bittersweet.inetarena.com>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 08 Jul 1997 09:37:59 +0200
In-Reply-To: karlheg+xemacs@inetarena.com's message of "08 Jul 1997 00:31:58 -0700"
Message-ID: <kighge6hu3s.fsf@jagor.srce.hr>
Lines: 31
X-Mailer: Gnus v5.4.59/XEmacs 20.3(beta11) - "Stockholm"

karlheg+xemacs@inetarena.com (Karl M. Hegbloom) writes:

> Why would you want *any* extents at all in dabbrev inserted text,
> though?  I think I'd like to have the extents stripped too...

Few extents are duplicable (i.e. copiable to strings), and those that
are[1], are such for a good reason.  If you really want it, write your
own function that does it.  `buffer-substring-no-properties' is
designed to kill off the text-properties.

> (I must admit that I've not gotten to the part about extents and
> text properties in the lispref yet.  Does stripping the extents from
> the string remove them from where they came from too, or just from
> the string we grabbed and copied?)

Most of them will not be caught in the string anyway -- only the
duplicable ones.

> Maybe we should make another function in subr.el that strips extents
> and text properties both?

I don't see the utility of it.


[1]
Text-properties are duplicable extents.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Speak softly and carry a +6 two-handed sword.

