all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "WJ" <w_a_x_man@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Working Around for cl-count
Date: 1 Dec 2012 01:20:00 GMT	[thread overview]
Message-ID: <k9bm0001ukr@enews6.newsguy.com> (raw)
In-Reply-To: mailman.14089.1354222890.855.help-gnu-emacs@gnu.org

Dmitry Gutov wrote:

> "Drew Adams" <drew.adams@oracle.com> writes:
> 
> >> >> >> Versions of Emacs less than version 24.2 complain about 
> >> >> >> the lack of `cl-count`.
> >> >> >
> >> >> > In older versions, `cl-count' is called `count'.
> >> >> > Use something like this:
> >> >> > (if (fboundp 'cl-count) #'cl-count #'count)
> >> >> 
> >> >> Or use the `cl-lib' package that's on GNU ELPA.
> >> >
> >> > You can't do that if your code that calls `cl-count' is 
> >> > used by others.
> >> >
> >> > What are you going to do?  Tell users of your code who have 
> >> > Emacs < 24.2 that they must download `cl-lib' from GNU ELPA
> >> > and put it in their `load-path'?  Or download it yourself
> >> > and bundle that package with your code?
> >> 
> >> You publish your code as package to one of the ELPA 
> >> repositories and add "cl-lib" as one of the dependencies.
> > 
> > So instead of fixing this at the source-code level, with just a few chars of
> > Lisp, you try to solve the problem at the distribution level: "Just use GNU
> > ELPA".
> > 
> > Have hammer, will see nails...
> 
> You can use whatever workaround you want, but obviously the shim cl-lib
> published at GNU ELPA is targeted at packages already present in or
> indented for ELPA.

: (version)
"GNU Emacs 23.4.1 (i386-mingw-nt5.1.2600)
 of 2012-02-04 on MARVIN"
: (require 'cl)
: (count 2 (number-sequence 1 22) :key (apply-partially 'gcd 4))
6


  parent reply	other threads:[~2012-12-01  1:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 16:06 Working Around for cl-count Eric James Michael Ritz
2012-11-29 17:54 ` Drew Adams
     [not found] ` <mailman.14064.1354211666.855.help-gnu-emacs@gnu.org>
2012-11-29 18:34   ` Stefan Monnier
2012-11-29 18:45     ` Drew Adams
2012-11-29 19:51       ` Dmitry Gutov
2012-11-29 20:47         ` Drew Adams
2012-11-29 21:01           ` Dmitry Gutov
2012-11-30  1:00           ` Stefan Monnier
2012-11-30  1:33             ` Drew Adams
     [not found]           ` <mailman.14089.1354222890.855.help-gnu-emacs@gnu.org>
2012-12-01  1:20             ` WJ [this message]
2012-12-01  3:21               ` Dmitry Gutov
2012-12-01  6:48                 ` Drew Adams
     [not found]               ` <mailman.14221.1354332086.855.help-gnu-emacs@gnu.org>
2012-12-01  7:12                 ` Helmut Eller
     [not found]     ` <mailman.14071.1354214747.855.help-gnu-emacs@gnu.org>
2012-11-29 19:51       ` 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=k9bm0001ukr@enews6.newsguy.com \
    --to=w_a_x_man@yahoo.com \
    --cc=help-gnu-emacs@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.