From xemacs-m  Thu Mar 27 08:19:18 1997
Received: from mikan.jaist.ac.jp (mikan.jaist.ac.jp [150.65.8.6])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id IAA16025
	for <xemacs-beta@xemacs.org>; Thu, 27 Mar 1997 08:19:17 -0600 (CST)
Received: from is18e0s01.jaist.ac.jp (MORIOKA Tomohiko <morioka@jaist.ac.jp>) by mikan.jaist.ac.jp (8.7.5); id XAA14086; Thu, 27 Mar 1997 23:19:11 +0900 (JST)
Message-Id: <199703271419.XAA14086@mikan.jaist.ac.jp>
X-MUA: mh-e 5.0.2 + emh 0.17, SEMI MIME-View 0.77
X-Face: %yc?f+O/cVKlH*K(H2X/6-d''suf|"1{S:Y0}_9$t@0G3:5M2:-Ck^[8+4^iSLeGc[Ey[WP
 PF]2M#Q9C'u~[=7TJP72J`PZdWvP=s-'-/LhFneC->=ILc~H#$lf2%hLL5U8?psIp`<[>d&@$Pm%~(
 A'"CJ.zuX@TXh\Ra4,b7M&`f"hexU-a4,#X\]Bfp'JI+MGUDRA%_$&UnWAem4}1R"4%uivgn;xFZ%"
 NS>)eCuFYNHc/:W^:{7H>bGQS],x5z[Cy~C;7j#:8y9q|"~9~UWjE<Vm_;)o<Q4S5NweLc(cl7-suY
 NF|_O*xodbmQavM
From: =?ISO-2022-JP?B?GyRCPGkyLBsoQiAbJEJDTkknGyhC?= / MORIOKA Tomohiko <morioka@jaist.ac.jp>
To: mharnois@sbt.net
cc: xemacs-beta@xemacs.org
Subject: Re: canna-use-color (was Re: error with 20.1) 
In-reply-to: Your message of "27 Mar 1997 07:53:17 CST."
             <87wwqtzbj2.fsf@sbt.net> 
X-Emacs: Emacs 19.34.94, MULE 3.0 =?ISO-2022-JP?B?KBskQjlITVUybBsoQik=?=
Mime-Version: 1.0 (generated by SEMI MIME-Edit 0.75)
Content-Type: multipart/signed; protocol="application/pgp-signature";
 boundary="pgp-sign-Multipart_Thu_Mar_27_23:18:57_1997-1"; micalg=pgp-md5
Content-Transfer-Encoding: 7bit
Date: Thu, 27 Mar 1997 23:19:10 JST
Sender: morioka@jaist.ac.jp

--pgp-sign-Multipart_Thu_Mar_27_23:18:57_1997-1
Content-Type: multipart/mixed;
 boundary="Multipart_Thu_Mar_27_23:18:57_1997-1"
Content-Transfer-Encoding: 7bit

--Multipart_Thu_Mar_27_23:18:57_1997-1
Content-Type: text/plain; charset=US-ASCII

>>>>> In <87wwqtzbj2.fsf@sbt.net> 
>>>>>	"Michael" = mharnois@sbt.net wrote:

Michael> Kazuyuki IENAGA <ienaga@jsys.co.jp> writes:

Michael> > --- canna.el	1997/03/26 06:32:52	1.1
Michael> > +++ canna.el	1997/03/26 06:42:02
Michael> > @@ -49,6 +49,8 @@
Michael> >  ;; added by MORIOKA Tomohiko <morioka@jaist.ac.jp>, 1996/6/18
Michael> >  (defvar running-xemacs (string-match "XEmacs" emacs-version))
Michael> >  
Michael> > +(if running-xemacs (require 'overlay))

Michael> The addition of this line causes me to receive the error

Michael> Signaling: (wrong-type-argument overlayp nil)
Michael>   wrong-type-argument(overlayp nil)
Michael>   delete-overlay(nil)
Michael>   gnus-kill-all-overlays()
Michael>   gnus-request-article-this-buffer(290 "nnmh+private:gnu-win32")
Michael>   gnus-article-prepare(290 nil)
Michael>   gnus-summary-display-article(290 nil)
Michael>   gnus-summary-select-article(nil nil pseudo)
Michael>   gnus-summary-scroll-up(1)
Michael>   call-interactively(gnus-summary-scroll-up)

Michael> whenever I try to read any article in gnus.

  I guess it might be a bug of prim/overlay.el.

  Is following patch right?


--Multipart_Thu_Mar_27_23:18:57_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="overlay.el.diff"
Content-Transfer-Encoding: 7bit

--- lisp/prim/overlay.el~	Fri Feb 14 03:42:30 1997
+++ lisp/prim/overlay.el	Fri Mar 21 22:03:39 1997
@@ -177,7 +177,7 @@
 		(setq before (append before (list overlay)))
 	      (setq after (append after (list overlay)))))))
      (extent-list))
-    (list before after)))
+    (cons before after)))
 
 (defun overlay-recenter (pos)
   "Recenter the overlays of the current buffer around position POS."

--Multipart_Thu_Mar_27_23:18:57_1997-1
Content-Type: text/plain; charset=US-ASCII


  By the way, I think it is better to check actual running XEmacs
instead of `(fboundp 'overlay-lists)' if a package has different code
for Emacs and XEmacs.


--Multipart_Thu_Mar_27_23:18:57_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="gnus-util.el.diff"
Content-Transfer-Encoding: 7bit

--- gnus-util.el~	Tue Mar 18 10:34:00 1997
+++ gnus-util.el	Fri Mar 21 21:43:50 1997
@@ -524,7 +524,7 @@
 
 (defun gnus-kill-all-overlays ()
   "Delete all overlays in the current buffer."
-  (when (fboundp 'overlay-lists)
+  (unless gnus-xemacs
     (let* ((overlayss (overlay-lists))
 	   (buffer-read-only nil)
 	   (overlays (nconc (car overlayss) (cdr overlayss))))

--Multipart_Thu_Mar_27_23:18:57_1997-1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

-- 
----------------------------------------------------------------------
MORIOKA Tomohiko <morioka@jaist.ac.jp>
        Japan advanced Institute of Science and Technology, Hokuriku
                Asahi-dai, Tatsu-no-kuchi ch=F4, Nomi, Ishikawa, Japan
------------------------------------------ Frisch, Frei, Fr=F6hlich! ---

--Multipart_Thu_Mar_27_23:18:57_1997-1--

--pgp-sign-Multipart_Thu_Mar_27_23:18:57_1997-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP MESSAGE-----
Version: 2.6.3ia
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBMzqB2RnuUGV7wuH5AQEJ7wP/X+ipaoyb6nJ9q0DOKTE/xO7Ma88im0m6
C78t4Q+r4Qg1YQrpeWo/0JT4dIhc1jdQItFmAbde1tBsm9diw+SHh+yYXQg7fHSZ
atVkNg45klHENlmSwwTp/DX83dCe8PU9FZlWUegNYZQTtCPu0PHd6ngVnBt7XeJQ
JeEz37/G5JE=
=pTwQ
-----END PGP MESSAGE-----

--pgp-sign-Multipart_Thu_Mar_27_23:18:57_1997-1--

