From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: policy, recommendations regarding `cl-*' Date: Thu, 27 Sep 2012 16:35:10 -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 1348778599 11964 80.91.229.3 (27 Sep 2012 20:43:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2012 20:43:19 +0000 (UTC) Cc: Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 27 22:43:24 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 1THKva-0006S3-55 for ged-emacs-devel@m.gmane.org; Thu, 27 Sep 2012 22:43:22 +0200 Original-Received: from localhost ([::1]:54466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THKvV-00060p-2G for ged-emacs-devel@m.gmane.org; Thu, 27 Sep 2012 16:43:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THKnj-0003VZ-4K for emacs-devel@gnu.org; Thu, 27 Sep 2012 16:35:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THKnh-0002Pm-N0 for emacs-devel@gnu.org; Thu, 27 Sep 2012 16:35:15 -0400 Original-Received: from euclid.red.cert.org ([192.88.209.48]:52654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THKnh-0002NU-Gi for emacs-devel@gnu.org; Thu, 27 Sep 2012 16:35:13 -0400 Original-Received: from bucknell.indigo.cert.org (bucknell.indigo.cert.org [10.60.10.121]) by euclid.red.cert.org (8.14.4/8.14.4) with ESMTP id q8RKTAEA007752; Thu, 27 Sep 2012 16:29:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cert.org; s=jthatj15xw2j; t=1348777750; bh=SP8G4OjCA9QDOwJdPtmAqqcPp7yc77+whyF+s0Gk9pQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type:Sender:Reply-To; b=WMaijyF52wg3n6bpGPgzbSHRIN2BobiUY5joCo5pUh5QQgwjxEhnfilkkrwFyMoHs ZfZVyvO2yLDUQQqV8gEkoIeV6BX1oCrpt957Dj+y+OJelTjOsx+QhPoJZYDQ+InXUp 01Qv6dvmayl92t/fRexhnhDlmBElpVuH5LnxUdzI= Original-Received: from waterbuck.yellow.cert.org (waterbuck.yellow.cert.org [10.20.128.84]) by bucknell.indigo.cert.org (8.14.4/8.14.4/2.81) with ESMTP id q8RKZBws000767; Thu, 27 Sep 2012 16:35:11 -0400 Original-Received: (from mwd@localhost) by waterbuck.yellow.cert.org (8.14.4/8.14.4/Submit/1.6) id q8RKZAT7025061; Thu, 27 Sep 2012 16:35:10 -0400 X-Authentication-Warning: waterbuck.yellow.cert.org: mwd set sender to mwd@cert.org using -f In-Reply-To: (Stefan Monnier's message of "Wed, 26 Sep 2012 13:54:54 -0400") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 192.88.209.48 X-Mailman-Approved-At: Thu, 27 Sep 2012 16:43:15 -0400 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:153639 Archived-At: Stefan Monnier writes: >>>> 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. I use cl-delete-if in my .emacs.el file. I have (require 'cl-lib) near the top. However, when I compile this, I still get warnings: In add-unique: .emacs.el:31:63:Warning: function `cl-delete-if' from cl package called at runtime In md5i-save-undo-information: .emacs.el:353:34:Warning: function `cl-remove-if' from cl package called at runtime I thought that when using the renamed functions there weren't supposed to be any warnings generated? -- Michael Welsh Duggan (mwd@cert.org)