From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: About cl-lib and `eval-when-compile' Date: Thu, 21 Feb 2013 21:33:37 -0500 Message-ID: References: <20130221163548.e452c0c30668bfdecc723b60@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361500464 7701 80.91.229.3 (22 Feb 2013 02:34:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2013 02:34:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 22 03:34:47 2013 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 1U8iTC-0001g9-Va for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Feb 2013 03:34:43 +0100 Original-Received: from localhost ([::1]:46522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8iSs-0004bs-DA for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Feb 2013 21:34:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8iSn-0004bT-5C for help-gnu-emacs@gnu.org; Thu, 21 Feb 2013 21:34:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8iSl-0005X9-II for help-gnu-emacs@gnu.org; Thu, 21 Feb 2013 21:34:16 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:59672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8iSl-0005WS-Bt for help-gnu-emacs@gnu.org; Thu, 21 Feb 2013 21:34:15 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8iSy-0001LI-DF for help-gnu-emacs@gnu.org; Fri, 22 Feb 2013 03:34:28 +0100 Original-Received: from 108.161.117.233 ([108.161.117.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Feb 2013 03:34:28 +0100 Original-Received: from monnier by 108.161.117.233 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Feb 2013 03:34:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 108.161.117.233 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:7vma6395QeTw3FFyhm7QZTu/zWM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:89217 Archived-At: > Since the old `cl.el' does not use a clean namespace, Emacs has a > policy that packages distributed with Emacs must not load `cl' at run > time. If I use the new cl-lib library, do I have to use > `eval-when-compile'? Can anybody help? Thanks. There's a misunderstanding: there was never any particular need to use `eval-when-compile' with CL. What there was is that CL was tolerated only if used at compile-time (i.e. you could use its macros, but not its functions). There's no such problem with `cl-lib', so you can require `cl-lib' both within or without `eval-when-compile'. If you only use `cl-lib' macros, then it's much better to wrap it in `eval-when-compile' so that cl-lib won't unnecessarily be loaded when you use the package. Stefan