From xemacs-m  Wed Aug 20 12:28:02 1997
Received: from wfdutilgw.ml.com (wfdutilf01.ml.com [206.3.74.31])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id MAA20276
	for <xemacs-beta@xemacs.org>; Wed, 20 Aug 1997 12:28:01 -0500 (CDT)
Received: from ml1.ml.com ([199.201.57.130])
	by wfdutilgw.ml.com (8.8.5/8.8.5/MLgw-3.03) with ESMTP id NAA04303
	for <xemacs-beta@xemacs.org>; Wed, 20 Aug 1997 13:22:36 -0400 (EDT)
Received: from commpost.ml.com (commpost.ml.com [146.125.4.24])
	by ml1.ml.com (8.8.5/8.8.5/MLml4-2.07) with SMTP id NAA28014
	for <xemacs-beta@xemacs.org>; Wed, 20 Aug 1997 13:27:29 -0400 (EDT)
Received: from spssunp.spspme.ml.com (spssunp.spspme.ml.com [192.168.111.13]) by commpost.ml.com (8.6.12/8.6.12) with ESMTP id NAA15137 for <xemacs-beta@xemacs.org>; Wed, 20 Aug 1997 13:32:36 -0400
Received: by spssunp.spspme.ml.com (SMI-8.6/SMI-4.1)
	id NAA17389; Wed, 20 Aug 1997 13:27:31 -0400
To: XEmacs Beta List <xemacs-beta@xemacs.org>
Subject: [bug] add-text-properties
X-Face: ByE+UMAp1klWR3?\RNGx(A-~Ri!YT%C6M!sxoJL+.;9`Q/|+dj7[KR>gGMyV.2qZeot0NI`4\MA^_Qg`F9=+Ox&zaE?Y9dV%F~Xzf';Zyk2Aobs.uu^Ey0_C6^~q';G#$HkA!ZAHXPpG-"*|Dd*Z4U$4y{{aI0c%75}i~Of(jxYtI[uIpYF<*Zoe|\*/ufb
X-Y-Zippy: Am I accompanied by a PARENT or GUARDIAN?
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: multipart/mixed;
 boundary="Multipart_Wed_Aug_20_13:27:30_1997-1"
Content-Transfer-Encoding: 7bit
From: Colin Rafferty <craffert@ml.com>
Date: 20 Aug 1997 13:27:31 -0400
Message-ID: <ocrsow4229o.fsf@ml.com>
Lines: 40
X-Mailer: Gnus v5.4.65/XEmacs 20.3(beta18) - "Bratislava"

--Multipart_Wed_Aug_20_13:27:30_1997-1
Content-Type: text/plain; charset=US-ASCII

Hi-

There is a bug in `add-text-properties'.  This is in Bratislava on
sparc/solaris.

Basically, copying part of a region that has had the "text-properties"
set to be read-only, and pasting it into the minibuffer, makes the
minibuffer read-only, and you are hosed.

1. Load the following file into XEmacs (xemacs -q -l nicely.el).

2. Type M-x, and then C-y to yank the region into the minibuffer.

3. Say bye-bye to XEmacs, because the minibuffer is now hosed.

This does not happen with make-extent/set-extent.


--Multipart_Wed_Aug_20_13:27:30_1997-1
Content-Type: application/octet-stream; type=emacs-lisp
Content-Disposition: attachment; filename="nicely.el"
Content-Transfer-Encoding: 8bit

(progn 
  (set-buffer (get-buffer-create "hoho"))
  (insert "find-file")
  (add-text-properties (point-min) (point-max) '(read-only t))
  (copy-region-as-kill (point-min) (point-max))
)

--Multipart_Wed_Aug_20_13:27:30_1997-1
Content-Type: text/plain; charset=US-ASCII

-- 
Colin

--Multipart_Wed_Aug_20_13:27:30_1997-1--

