emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cl-macs and (require 'cl)


From: Lennart Borgman
Subject: Re: cl-macs and (require 'cl)
Date: Tue, 30 Jun 2009 23:11:07 +0200

On Tue, Jun 30, 2009 at 11:07 PM, Davis Herring<address@hidden> wrote:
>> How is cl-macs.el supposed to be loaded? cl-macs.el has a (require
>> 'cl) in it. Is that a bug or?
>
> If you do the recommended "(eval-when-compile (require 'cl))" in your code
> and then use only macros from the CL package, the compiled file has
> already had the macros expanded and contains no references to objects in
> the CL package or to the 'cl symbol.  So it doesn't matter what's in
> cl-macs.el.
>
> Davis

The reason I am asking is that eieio.el in CEDET (which is going to be
included in Emacs soon) has this code

  (require 'cl)
  (load "cl-macs" nil t) ; No provide in this file.

Both lines seems wrong to me, but I do not know how it should look.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]