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: Thu, 15 Jan 2004 21:06:42 -0600 (CST)

Martin Stjernholm wrote:

   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.

Are we talking about the same version of "cc-defs.el"?  The current
Emacs CVS version of `c-make-keywords-re' in "cc-defs.el" does not
appear to contain any call to `delete-duplicates'.  Instead it
contains the following substitute code for that function:
  
  (let (unique)
    (dolist (elt list)
      (unless (member elt unique)
      (push elt unique)))
    (setq list unique))

Sincerely,

Luc.





reply via email to

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