From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: Working Around for cl-count Date: Fri, 30 Nov 2012 01:01:19 +0400 Message-ID: <87d2yw3yzk.fsf@yandex.ru> References: <50B78818.7080906@gmail.com> <0C73A16D723C4DFDB090A66D0FBD389E@us.oracle.com> <8738zs427o.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354222894 21826 80.91.229.3 (29 Nov 2012 21:01:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2012 21:01:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, 'Stefan Monnier' To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 22:01:46 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TeBEu-0001HU-A9 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 22:01:44 +0100 Original-Received: from localhost ([::1]:48876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeBEj-0003cC-2R for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 16:01:33 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeBEd-0003c6-9n for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 16:01:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeBEc-0002Og-7S for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 16:01:27 -0500 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:37715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeBEc-0002OU-0P for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 16:01:26 -0500 Original-Received: by mail-lb0-f169.google.com with SMTP id gk1so13266044lbb.0 for ; Thu, 29 Nov 2012 13:01:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=cLMRGY+zS2m6dLBJLvxz80Eh2APVJ7fx5Fpb44jUQa8=; b=orkvL0U9V/yL1vGST98Dwkz82SQrfJWBMfE9ExPUxEDldlMd3JHuls7Y2oiBWaV584 Dii0QJYETtMpFyv+gpx5OnyuAmNtxnCmploCuKyR6YTAhS6VGOdjeH5ScG+ahIkT8E96 OVsLu4kfM2munVLVoycIf84yj1idCLODUuJN/rrTry7kqJgjayDHX4EP0ZqqHIFgxQQx h9pVATNxAcMVSUpUmUbjaepLdlshQSSjNna1rL2wBB9g7y9UHuGmHPsiV2IA1mVjrxDU 6NT9ez+Lj1JsEde9WomxQSct9fwX5Z1GaEzTSVthiM6ljeUpPjFHSQoRAPkBUv1FTp6V ACyA== Original-Received: by 10.152.106.237 with SMTP id gx13mr22615059lab.46.1354222884633; Thu, 29 Nov 2012 13:01:24 -0800 (PST) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPS id l9sm1247995lbf.7.2012.11.29.13.01.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Nov 2012 13:01:23 -0800 (PST) In-Reply-To: (Drew Adams's message of "Thu, 29 Nov 2012 12:47:19 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87958 Archived-At: "Drew Adams" 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.