From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: CL package serious deficiencies Date: Wed, 8 Feb 2012 16:43:53 +0100 Message-ID: References: <33271707.post@talk.nabble.com> <87fwemcwlx.fsf@spindle.srvr.nix> <87zkcubbfc.fsf@spindle.srvr.nix> <87vcnibb9t.fsf@spindle.srvr.nix> <5tr4y6z2pv.fsf@fencepost.gnu.org> <87bopab5p6.fsf@spindle.srvr.nix> <87r4y5e910.fsf@gmx.com> <87liode8mu.fsf@gmx.com> <87aa4tnxlg.fsf@gmx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328715891 21184 80.91.229.3 (8 Feb 2012 15:44:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2012 15:44:51 +0000 (UTC) Cc: Nix , egnarts-ms , Stefan Monnier , Drew Adams , Emacs-devel@gnu.org To: Eric Schulte Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 08 16:44:49 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rv9hL-0004RU-Hx for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2012 16:44:43 +0100 Original-Received: from localhost ([::1]:54401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv9hK-0003fn-Ea for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2012 10:44:42 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv9h7-0003dA-Lb for Emacs-devel@gnu.org; Wed, 08 Feb 2012 10:44:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rv9gt-0003UU-QW for Emacs-devel@gnu.org; Wed, 08 Feb 2012 10:44:29 -0500 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:34056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv9gt-0003U0-Kw for Emacs-devel@gnu.org; Wed, 08 Feb 2012 10:44:15 -0500 Original-Received: by lamf4 with SMTP id f4so734364lam.0 for ; Wed, 08 Feb 2012 07:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=S2PX8TUjdZsFQTpWHUxD33PT/ICjPYPwx9rGUZY3IJk=; b=qU3U34y/3s63zbbUt7kejGg3Cpv3Nebx/2JdXU16uYa8CvMJRUih/9gBJbMMJSMDg/ /2CxC29lkZrdYV9blbvNAaaQ0GCK0VrPmR2N2Pmx6TFmiaqsvdBh72izBF5TV+tXVqo+ Yx4f3r8k5OcaGZdynBhhn5Hicu4vtNMVOwUJQ= Original-Received: by 10.112.40.101 with SMTP id w5mr7892077lbk.97.1328715854322; Wed, 08 Feb 2012 07:44:14 -0800 (PST) Original-Received: by 10.112.12.6 with HTTP; Wed, 8 Feb 2012 07:43:53 -0800 (PST) In-Reply-To: <87aa4tnxlg.fsf@gmx.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148363 Archived-At: On Wed, Feb 8, 2012 at 16:39, Eric Schulte wrote: > Lennart Borgman writes: > >> On Wed, Feb 8, 2012 at 14:51, Eric Schulte wrote: >>>>> >>>>> org-count >>>>> org-find-if >>>>> org-reduce >>>>> org-remove-if >>>>> org-remove-if-not >>>> >>>> I must be misremembering. Isn't it ok to use the cl functions here? >>>> (You would be using it in compiled code.) >>>> >>> >>> You are misremembering. =C2=A0If it were ok org, gnus, ert and widget w= ould >>> not all have their own remove-if variants? >> >> Thanks. Or, I might be misunderstanding ;-) >> The manual says in D.1 Emacs Lisp Coding Conventions that >> >> =C2=A0 =C2=A0 However, there is no problem with using the `cl' package a= t >> =C2=A0 =C2=A0 =C2=A0compile time, with `(eval-when-compile (require 'cl)= )'. =C2=A0That's >> =C2=A0 =C2=A0 =C2=A0sufficient for using the macros in the `cl' package,= because the >> =C2=A0 =C2=A0 =C2=A0compiler expands them before generating the byte-cod= e. >> >> Is that not enough, or is it not applicable to code included in Emacs? >> > > The above only applies to *macros* which are expanded at compile time. > The expanded macros leave no reference to cl in the resulting compiled > code. =C2=A0On the contrary cl functions (even in compiled code) when cal= led > at runtime still require cl to be loaded and available at runtime. > > Hope this makes it clear, Yes, I have not looked much at cl.el and my impression was that only the macros were important. So I was mistaken there.