* About cl-lib and `eval-when-compile'
@ 2013-02-21 8:35 Xue Fuqiao
2013-02-22 2:33 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Xue Fuqiao @ 2013-02-21 8:35 UTC (permalink / raw)
To: help-gnu-emacs
Since the old `cl.el' does not use a clean namespace, Emacs has a
policy that packages distributed with Emacs must not load `cl' at run
time. If I use the new cl-lib library, do I have to use
`eval-when-compile'? Can anybody help? Thanks.
--
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: About cl-lib and `eval-when-compile'
2013-02-21 8:35 About cl-lib and `eval-when-compile' Xue Fuqiao
@ 2013-02-22 2:33 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-02-22 2:33 UTC (permalink / raw)
To: help-gnu-emacs
> Since the old `cl.el' does not use a clean namespace, Emacs has a
> policy that packages distributed with Emacs must not load `cl' at run
> time. If I use the new cl-lib library, do I have to use
> `eval-when-compile'? Can anybody help? Thanks.
There's a misunderstanding: there was never any particular need to use
`eval-when-compile' with CL. What there was is that CL was tolerated
only if used at compile-time (i.e. you could use its macros, but not
its functions).
There's no such problem with `cl-lib', so you can require `cl-lib' both
within or without `eval-when-compile'. If you only use `cl-lib' macros,
then it's much better to wrap it in `eval-when-compile' so that cl-lib
won't unnecessarily be loaded when you use the package.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-22 2:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-21 8:35 About cl-lib and `eval-when-compile' Xue Fuqiao
2013-02-22 2:33 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).