all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Paul Wallington <jpw@gnu.org>
Subject: Re: Some racism in emacs!
Date: Sun, 01 Jun 2003 08:41:04 +0100	[thread overview]
Message-ID: <87n0h2jldb.fsf@indigo.shootybangbang.com> (raw)
In-Reply-To: 87add2tjro.fsf@thalassa.informatimago.com

Pascal Bourguignon <spam@thalassa.informatimago.com> wrote:

> Well, actually what's  bothering me is these nasty,  racist messages I
> get from the byte-compiler:
>
> Warning: Function `gensym' from cl package called at runtime
> Warning: Function `subseq' from cl package called at runtime
> etc...
>
>
> I can't see the difference between the functions defined in 
> emacs/lisp/emacs-lisp/cl.el and those defined in
> emacs/lisp/emacs-lisp/ring.el
> Can you?

The cl library, like Common Lisp, is big and hard to subset.

Amongst the Emacs Lisp Coding Conventions it is suggested:

   * Please don't require the `cl' package of Common Lisp extensions at
     run time.  Use of this package is optional, and it is not part of
     the standard Emacs namespace.  If your package loads `cl' at run
     time, that could cause name clashes for users who don't use that
     package.

     However, there is no problem with using the `cl' package at compile
     time, for the sake of macros.  You do that like this:

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

Hm.  I think name clashes are largely a non-problem; a package author
would be insane to define cl functions/macros incompatibly, wouldn't
they?

Ways to ameliorate this situation include splitting cl into several
separate independent libraries, moving ultra-nifty bits into subr.el,
or defining compiler macros for the more popular functions.

If you just don't want to see the warnings then try frobbing
`byte-compile-warnings' (untested).

  reply	other threads:[~2003-06-01  7:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-01  6:05 Some racism in emacs! Pascal Bourguignon
2003-06-01  7:41 ` John Paul Wallington [this message]
2003-06-02  6:42   ` Pascal Bourguignon
2003-06-02  9:46     ` John Paul Wallington
2003-06-02 13:08       ` Kai Großjohann
2003-06-02 16:00         ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87n0h2jldb.fsf@indigo.shootybangbang.com \
    --to=jpw@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.