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: Luc Teirlinck
Subject: Re: CC mode loads CL
Date: Tue, 6 Jan 2004 07:03:48 -0600 (CST)

Dave Love wrote:

   (require 'cc-mode) is enough to get

   (featurep 'cl)
     => t

   That's a regression from Emacs 21.2.  I don't know whether CC really
   needs it at runtime -- the CC compilation stuff is impenetrable.

I do not know whether it needs it or not either.
However, this call at line 103 of cc-defs.el loads cl at runtime:

(cc-external-require 'cl)

I do not know whether this is deliberate or whether an
eval-when-compile was accidentally forgotten.

Definition on line 278 of cc-bytecomp.el:

(defmacro cc-external-require (feature)
  "Do a `require' of an external package.
This restores and sets up the compilation environment before and
afterwards.  Don't use within `eval-when-compile'."
  `(progn
     (eval-when-compile (cc-bytecomp-restore-environment))
     (require ,feature)
     (eval-when-compile (cc-bytecomp-setup-environment))))

Note that there is no eval-when-compile around the `require'.

Sincerely,

Luc.





reply via email to

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