all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: emacs-devel@gnu.org
Subject: Re: can `shuffle-vector' be moved?
Date: Fri, 13 May 2011 12:26:34 -0300	[thread overview]
Message-ID: <jwvr582639j.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87aaeqy7u8.fsf@lifelogs.com> (Ted Zlatanov's message of "Fri, 13 May 2011 09:48:47 -0500")

KR> ;; These are extensions to Emacs Lisp that provide a degree of
KR> ;; Common Lisp compatibility, beyond what is already built-in
KR> ;; in Emacs Lisp.

> OK.  Can there be a cl-macs-extras.el for "general cl-macs based code
> that is safe to include in ELisp code"?

I really have no idea why you want it in cl-macs:
1- the "macs" part refers to "macros", your function isn't one.
2- it does not provide a CL-style function.
3- using a CL macro in its definition is a property share by a lot more
   code than just the CL code.  And actually, the cl*.el files tend not
   to use CL features, to avoid circular dependencies.

SM> I really meant "similar": if no other code uses this functionality,
SM> advertising its existence is not going to increase its use.
> I also see lisp/calc/calc-comb.el:math-shuffle-list but you're right,
> it's not commonly needed.  I still don't think it belongs in cookie1.el,
> if only because the name is general and not library-specific,

It should probably be called cookie-shuffle-vector, indeed.

> but that's an inconsistency all the cookie1.el functions have.

The only other function I see in cookie1.el that does not use the
"cookie-" prefix is "read-cookie", which is borderline acceptable (we
have a few such "shared prefixes" like "turn-on-").  So,
`shuffle-vector' does indeed stand out.  And the fact that it's
autoloaded is a clear sign it is intended to be used by other packages.
But I see no good place to put it right now, and I don't think it
deserves creating a "misc-lib.el" for itself (although some of the
functions in subr.el might be good candidates for such a new package).


        Stefan



  reply	other threads:[~2011-05-13 15:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12 19:58 can `shuffle-vector' be moved? Ted Zlatanov
2011-05-13  2:03 ` Leo
2011-05-13  2:10   ` Stefan Monnier
2011-05-13  3:49     ` Ted Zlatanov
2011-05-13 13:57       ` Stefan Monnier
2011-05-13  3:53   ` Ted Zlatanov
2011-05-13  6:00     ` Kevin Rodgers
2011-05-13 14:48       ` Ted Zlatanov
2011-05-13 15:26         ` Stefan Monnier [this message]
2011-05-13 16:22           ` Ted Zlatanov
2011-05-13 16:47             ` Stefan Monnier
2011-05-13 16:51               ` Ted Zlatanov
2011-05-13  6:19 ` Thierry Volpiatto
2011-05-13 14:00   ` Stefan Monnier
2011-05-13 14:38     ` Ted Zlatanov
2011-05-13 17:13     ` Thierry Volpiatto

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=jwvr582639j.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=tzz@lifelogs.com \
    /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.