From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Working Around for cl-count Date: Fri, 30 Nov 2012 22:48:13 -0800 Message-ID: <0DA8AF53F6FB49B4BB9D6C7017097DD0@us.oracle.com> References: <50B78818.7080906@gmail.com><0C73A16D723C4DFDB090A66D0FBD389E@us.oracle.com><8738zs427o.fsf@yandex.ru> <87wqx2xxsf.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354344508 26445 80.91.229.3 (1 Dec 2012 06:48:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2012 06:48:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Dmitry Gutov'" , "'WJ'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 01 07:48:40 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 1TegsR-00088D-WD for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 07:48:40 +0100 Original-Received: from localhost ([::1]:41227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TegsG-0005J3-GD for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 01:48:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:32836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TegsA-0005Iu-Vh for help-gnu-emacs@gnu.org; Sat, 01 Dec 2012 01:48:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TegsA-0006e6-3P for help-gnu-emacs@gnu.org; Sat, 01 Dec 2012 01:48:22 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:40475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tegs9-0006e0-Te for help-gnu-emacs@gnu.org; Sat, 01 Dec 2012 01:48:22 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qB16mJid000888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 1 Dec 2012 06:48:20 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qB16mJUc009982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 1 Dec 2012 06:48:19 GMT Original-Received: from abhmt118.oracle.com (abhmt118.oracle.com [141.146.116.70]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qB16mIDn023781; Sat, 1 Dec 2012 00:48:18 -0600 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 30 Nov 2012 22:48:18 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87wqx2xxsf.fsf@yandex.ru> Thread-Index: Ac3PcvNgEHxswojgSbixBDsbAqwK6wAGgMjg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:87989 Archived-At: > > "GNU Emacs 23.4.1 (i386-mingw-nt5.1.2600) > > : (count 2 (number-sequence 1 22) > > :key (apply-partially 'gcd 4)) > > 6 > > Yes, it works. Using unprefixed cl functions is > is all sorts of deprecated, though, hence the recommendation. ^^^^^^^^^^^^^^^^^^^^^^^^^^ I'm not sure exactly what WJ's point is, but NO, `count' is not at all deprecated in Emacs 23.4, the version that WJ shows. It is not even deprecated in 24.1 or 24.2! `cl-lib.el', hence `cl-count', does not even exist yet, in any Emacs release! It is being declared deprecated in the current pretest version of Emacs, which will lead to release 24.3. There is nothing wrong with thinking ahead. But the OP made clear that his code is intended for multiple Emacs versions (presumably including future releases), and there is not yet ANY released version where `cl-count' even exists. And WJ specifically noted use of release 23.4.