From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: policy, recommendations regarding `cl-*' Date: Wed, 26 Sep 2012 13:54:54 -0400 Message-ID: References: <83pq59hl5w.fsf@gnu.org> <78C072FCB2534C21835E7E6788B10624@us.oracle.com> <5B02507A2A7040EE81A33348E6AAB04D@us.oracle.com> <87pq59cln3.fsf@bzg.ath.cx> <87k3vh2aiz.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348682108 29846 80.91.229.3 (26 Sep 2012 17:55:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2012 17:55:08 +0000 (UTC) Cc: 'Eli Zaretskii' , Drew Adams , emacs-devel@gnu.org To: Bastien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 26 19:55:12 2012 Return-path: Envelope-to: ged-emacs-devel@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 1TGvpG-0002Ah-2R for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2012 19:55:10 +0200 Original-Received: from localhost ([::1]:47234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGvpB-0005FW-1J for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2012 13:55:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGvp8-0005Av-DV for emacs-devel@gnu.org; Wed, 26 Sep 2012 13:55:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGvp3-00057O-Vk for emacs-devel@gnu.org; Wed, 26 Sep 2012 13:55:02 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:59885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGvp3-000574-7f; Wed, 26 Sep 2012 13:54:57 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q8QHsth3001181; Wed, 26 Sep 2012 13:54:55 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 0C997B404D; Wed, 26 Sep 2012 13:54:55 -0400 (EDT) In-Reply-To: <87k3vh2aiz.fsf@bzg.ath.cx> (Bastien's message of "Wed, 26 Sep 2012 15:12:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 132.204.246.22 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:153593 Archived-At: >>> On a related note, am I understanding right that functions >>> and macros from cl-macs.el will *not* trigger warnings? >> Depends what kind of warning and in which circumstance. > I have a test.el file with just this: > (eval-when-compile (require 'cl)) > (cl-position '1 '(0 1 2 3)) > (cl-defsubst test () (message "blah")) There's a bug: at run time, CL will not be loaded, so cl-position won't exist. For cl-defsubst, that's not a problem, because it gets macroexpanded away during compilation, so it's not needed at run-time. IOW if you use CL functions, you need (require 'cl-lib) without wrapping it in eval-when-compile. Stefan