unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Meaning of Common Lisp Warning
@ 2009-11-30  8:41 Nordlöw
  2009-11-30 11:49 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 4+ messages in thread
From: Nordlöw @ 2009-11-30  8:41 UTC (permalink / raw)
  To: help-gnu-emacs

What is the meaning of the compilation message
  Warning: cl package required at runtime

Should I never do
  (require 'cl)
in a package?

Is it because there is a todo to implement these algorithms as
builtins or what?

/Nordlöw


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Meaning of Common Lisp Warning
  2009-11-30  8:41 Meaning of Common Lisp Warning Nordlöw
@ 2009-11-30 11:49 ` Pascal J. Bourguignon
  2009-11-30 14:17   ` tomas
  0 siblings, 1 reply; 4+ messages in thread
From: Pascal J. Bourguignon @ 2009-11-30 11:49 UTC (permalink / raw)
  To: help-gnu-emacs

Nordlöw <per.nordlow@gmail.com> writes:

> What is the meaning of the compilation message
>   Warning: cl package required at runtime
>
> Should I never do
>   (require 'cl)
> in a package?

This is not Common Lisp!

If you had written (require 'emacs-cl) it could have been Common Lisp,
(emacs-cl is a Common Lisp implementation written in emacs lisp).

But cl is an emacs "package" (nothing in common with Common Lisp
packages),  that provides a few Common Lisp like functions and macros.


> Is it because there is a todo to implement these algorithms as
> builtins or what?

No it is because the authors of emacs are stubborn.  They don't want
people to write emacs code with these common lisp like functions.

Just ignore this warning.

-- 
__Pascal Bourguignon__


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Meaning of Common Lisp Warning
  2009-11-30 11:49 ` Pascal J. Bourguignon
@ 2009-11-30 14:17   ` tomas
  2009-11-30 15:38     ` Lennart Borgman
  0 siblings, 1 reply; 4+ messages in thread
From: tomas @ 2009-11-30 14:17 UTC (permalink / raw)
  To: Pascal J. Bourguignon; +Cc: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Nov 30, 2009 at 12:49:35PM +0100, Pascal J. Bourguignon wrote:
> Nordlöw <per.nordlow@gmail.com> writes:

[...]

> No it is because the authors of emacs are stubborn.  They don't want
> people to write emacs code with these common lisp like functions.

To be fair, the whole truth is that there is a policy that core Emacs
packages don't depend on cl. So this warning might help to keep that
policy.

(On stubborness: many of us are stubborn. I am and I guess you are too.
It all depends on perspective. Sometimes stubborness is a Good Thing).

> Just ignore this warning.

Agreed: if you aren't aiming at developing a core Emacs package you can
safely ignore that.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLE9PwBcgs9XrR2kYRAlHKAJ9PQze5IY8ZFYTRj2ueZyoFiLOarACfYguF
lnaNadw0PO6qv+j6cQ3ieEU=
=gNGU
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Meaning of Common Lisp Warning
  2009-11-30 14:17   ` tomas
@ 2009-11-30 15:38     ` Lennart Borgman
  0 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman @ 2009-11-30 15:38 UTC (permalink / raw)
  To: tomas; +Cc: Pascal J. Bourguignon, help-gnu-emacs

On Mon, Nov 30, 2009 at 3:17 PM,  <tomas@tuxteam.de> wrote:
> On Mon, Nov 30, 2009 at 12:49:35PM +0100, Pascal J. Bourguignon wrote:
>> Nordlöw <per.nordlow@gmail.com> writes:
>
>> No it is because the authors of emacs are stubborn.  They don't want
>> people to write emacs code with these common lisp like functions.


There has been subtle technical problems using the cl package because
of name clashes with Emacs functions/macros. I do not know if anyone
is sure they are resolved yet. (I have seen subtle problems.)


>> Just ignore this warning.
>
> Agreed: if you aren't aiming at developing a core Emacs package you can
> safely ignore that.


You can perhaps, but not people using your packages. Wouldn't it be
better to just follow the advice, use

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

What is the problem with doing that?




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-30 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30  8:41 Meaning of Common Lisp Warning Nordlöw
2009-11-30 11:49 ` Pascal J. Bourguignon
2009-11-30 14:17   ` tomas
2009-11-30 15:38     ` Lennart Borgman

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).