From xemacs-m  Sun Jan 26 00:34:33 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id AAA05636 for <xemacs-beta@xemacs.org>; Sun, 26 Jan 1997 00:34:32 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id WAA00824;
	Sat, 25 Jan 1997 22:45:35 -0800
To: xemacs-beta@xemacs.org
Subject: Oh no, another autoload bug
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII
Date: 25 Jan 1997 22:45:34 -0800
Message-ID: <m2k9p1vss1.fsf@altair.xemacs.org>
Lines: 54
X-Mailer: Gnus v5.4.1/XEmacs 20.0

I've attempted to byte compile browse-cltl2.el (recently posted on
gnu.emacs.sources) in ``a modified Emacs'', and ran across a bug we've
had since at least 19.14.

The bug can be demonstrated by this file:

fred.el:
(setq fred (concatenate 'vector '(1 2 3 4)))

If you evaluate this expression in an XEmacs *scratch* buffer after -q
-no-site-file, cl-extra autoloads and everything is fine.

If you attempt to bytecompile it as a file
xemacs -batch -q -no-site-file -f batch-byte-compile fred.el

it bombs out with:
Compiling /usr/lib/xemacs/site-lisp/fred.el...
Loading dired-xemacs-menu...
Loading cl-extra...
While compiling toplevel forms in file /usr/lib/xemacs/site-lisp/fred.el:
  !! error (("file \"cl-extra\" didn't define \"concatenate\""))
Done

The only thing unusual going on here is that cl does not make its
autoloads through the usual mechanism preferring instead to store them
in a file which is loaded.

I notice when bytecompiling cl-extra.el, that it loads itself part way
through the bytecompilation:

$ ../../src/xemacs -batch -f batch-byte-compile cl-extra.el
Compiling /usr/src/xemacs-20.0/lisp/cl/cl-extra.el...
While compiling random* in file /usr/src/xemacs-20.0/lisp/cl/cl-extra.el:
  ** variable ii bound but not referenced
While compiling cl-finite-do:
  ** variable err bound but not referenced
While compiling cl-float-limits:
  ** variable err bound but not referenced
  ** variable err bound but not referenced
Loading cl-extra...          <====================================
While compiling the end of the data:
  ** The following functions are not known to be defined: 
    overlay-lists, overlay-start, overlay-end, overlays-at,
    next-overlay-change
Wrote /usr/src/xemacs-20.0/lisp/cl/cl-extra.elc
Done



Anyone have any clues what's going on here?
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
Real men aren't afraid to use chains on icy roads.

