emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: CC mode loads CL


From: Martin Stjernholm
Subject: Re: CC mode loads CL
Date: Fri, 16 Jan 2004 00:46:21 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux)

Luc Teirlinck <address@hidden> wrote:

> However, "cc-defs.el" says that it must be loaded at runtime and
> contains:
>
> (cc-external-require 'cl)

True, that will pull in cl at runtime too.

> Or does cc-mode really need CL functions at runtime?

Three cl functions are currently used in cc-defs: mapcan,
cl-macroexpand, and delete-duplicates. They are only called at compile
time with one exception: The call to delete-duplicates in
c-make-keywords-re.

If you eliminate that call (or make it legitimate), it's safe to
remove the cc-external-require form and instead put in a

  (eval-when-compile (require 'cl))

at the top of the file.

I'd prefer if delete-duplicates or something close to it were added to
the core, of course.




reply via email to

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