Path: utzoo!attcan!uunet!peregrine!ccicpg!cci632!ritcv!rochester!quiroz
From: quiroz@cs.rochester.edu (Cesar Quiroz)
Newsgroups: comp.emacs
Subject: Compiling cl.el
Summary: Load it first
Message-ID: <1988Jul8.233325.6835@cs.rochester.edu>
Date: 9 Jul 88 03:33:25 GMT
Reply-To: quiroz@cs.rochester.edu (Cesar Quiroz)
Organization: U of Rochester, Dept. of Computer Science, Rochester, NY 14627
Lines: 31

Many people have reported trouble compiling cl.el after upgrading.
The reason is explained in the comments at the beginning of the file:

    ;;;; To compile this file, make sure you load it first.  This is
    ;;;; because many things are implemented as macros and now that all
    ;;;; the files are concatenated together one cannot ensure that
    ;;;; declaration always precedes use.

The solution is just to load the file before running a
byte-compile-file on it.  Of course, this is not the best way of
going about doing things (the user need not know about this), but
practical considerations demand not to complicate too much the lisp
library for Emacs--which would happen if cl.el were split again.

If someone volunteers to teach the interpreter and the compiler
about `eval-when', I will provide a more permanent patch:

    ;;; First form in the file:
    (eval-when (compile)
        (if (not (featurep 'cl))
            (load-file "cl.el"))) ; would (require 'cl) be enough?

Thanks to all the people who have reported this problem.  And keep
the list informed of any such in the future.


-- 
Cesar Augusto Quiroz Gonzalez
Department of Computer Science     ...allegra!rochester!quiroz
University of Rochester            or
Rochester,  NY 14627               quiroz@cs.rochester.edu