Re: cl-macs and (require 'cl)
Eric M. Ludlam <eric <at> siege-engine.com>
2009-07-01 11:25:02 GMT
On Wed, 2009-07-01 at 11:43 +0200, Lennart Borgman wrote:
> On Wed, Jul 1, 2009 at 8:09 AM, Stephen J. Turnbull<stephen <at> xemacs.org> wrote:
> > Lennart Borgman writes:
> >
> > > The reason I am asking is that eieio.el
> >
> > *shiver*
> >
> > eieio has special needs. You should ask the author(s) why they did it
> > this way, rather than using `(eval-when-compile (require 'cl))'. If
> > they don't have any particular reason other than "well, it's been like
> > that since 1997", then you could try changing it to the recommended
> > form.
>
> Yes, that is why I asked here. Eric said he will change it.
>
> But I do not know of any particular reason for including cl.el and
> cl-macs.el like they did. Maybe you could explain?
Indeed, that is just the way it has been for a long time. I did try
switching to the `eval-when-compile' part, but this doesn't work. EIEIO
has functions which create types with deftype, and uses typep. If I
wrap the require of cl as above, then sources creating classes can't
find the typep symbol.
It could be I am using deftype and typep in some inconsistent way. If
someone is interested in pointing out the correct way to do these
things, I'd appreciate it.
You can look at EIEIO w/out getting the whole CEDET suite here:
(Continue reading)