all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ilya Shlyakhter <ilya_shl@alum.mit.edu>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: CL package suggestion
Date: Mon, 9 Apr 2012 00:54:01 -0400	[thread overview]
Message-ID: <CACfYvRZpnBD=ofz+4Kr41opep6eKoeTWaoBwz6txQWFkAk4j6w@mail.gmail.com> (raw)
In-Reply-To: <jwvhawzr6ji.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]

So, about the cl package:

If remove-if is renamed cl-remove-if and then 'remove-if defaliased to
'cl-remove-if,
is it now ok to (require 'cl) at runtime?  Won't the alias now conflict
with whatever
definition of remove-if the user had?
And if you don't (require 'cl) at runtime, then you can't call cl-remove-if
at runtime,
since it might not be available.

One could move cl-remove-if etc into a separate module called cl-funcs,
so if you want to call cl-remove-if at runtime you (require 'cl-funcs).
This would somewhat break up the logical structure of the cl package,
since things will get grouped by whether they're functions or macros rather
than by topic.

Suggestions?

On Wed, Apr 4, 2012 at 9:06 AM, Stefan Monnier <monnier@iro.umontreal.ca>wrote:

> > Agree about cl- being better than ecl- .
> > Btw, if remove-if becomes defalias'ed to cl-remove-if, aren't the two
> calls
> > indistinguishable to the byte compiler?
>
> The name is different, so the compiler can definitely tell the difference.
>
> > If they are, and calling cl-remove wouldn't trigger a warning,
> > wouldn't remove-if calls also become warning-less?
>
> Not necessarily, no.
>
>
>        Stefan
>

[-- Attachment #2: Type: text/html, Size: 1786 bytes --]

  parent reply	other threads:[~2012-04-09  4:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 16:52 CL package suggestion Ilya Shlyakhter
2012-04-03 16:58 ` Glenn Morris
2012-04-03 17:00   ` Glenn Morris
2012-04-03 17:09     ` Ilya Shlyakhter
2012-04-03 18:58       ` Stefan Monnier
2012-04-04  1:56         ` Ilya Shlyakhter
2012-04-04 13:06           ` Stefan Monnier
2012-04-09  1:39             ` Ilya Shlyakhter
2012-04-09  1:41               ` Ilya Shlyakhter
2012-04-09  4:54             ` Ilya Shlyakhter [this message]
2012-04-09 13:28               ` Stefan Monnier
2012-04-09 14:38                 ` Ilya Shlyakhter
2012-04-09 16:24                   ` Stefan Monnier
2012-04-09 16:45                     ` Ilya Shlyakhter
2012-04-09 16:54                       ` Ilya Shlyakhter
2012-04-10 12:51                       ` Stefan Monnier
2012-04-11  4:18                 ` Richard Stallman
2012-04-11 14:12                   ` Ilya Shlyakhter
2012-04-11 14:32                     ` Stefan Monnier

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='CACfYvRZpnBD=ofz+4Kr41opep6eKoeTWaoBwz6txQWFkAk4j6w@mail.gmail.com' \
    --to=ilya_shl@alum.mit.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.