From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: policy, recommendations regarding `cl-*' Date: Wed, 26 Sep 2012 15:12:20 +0200 Message-ID: <87k3vh2aiz.fsf@bzg.ath.cx> References: <83pq59hl5w.fsf@gnu.org> <78C072FCB2534C21835E7E6788B10624@us.oracle.com> <5B02507A2A7040EE81A33348E6AAB04D@us.oracle.com> <87pq59cln3.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348665169 30853 80.91.229.3 (26 Sep 2012 13:12:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2012 13:12:49 +0000 (UTC) Cc: 'Eli Zaretskii' , Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 26 15:12:52 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 1TGrQ3-0000D7-H6 for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2012 15:12:52 +0200 Original-Received: from localhost ([::1]:50670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGrPy-0008Cs-9g for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2012 09:12:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGrPr-0008CZ-7e for emacs-devel@gnu.org; Wed, 26 Sep 2012 09:12:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGrPh-0008QC-Jb for emacs-devel@gnu.org; Wed, 26 Sep 2012 09:12:38 -0400 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:41527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGrPW-0008OB-V9; Wed, 26 Sep 2012 09:12:19 -0400 Original-Received: by wibhn17 with SMTP id hn17so545397wib.12 for ; Wed, 26 Sep 2012 06:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=jcXo4FiBhe5a6WW9z5O4thSXOFq1Ki1dhoD69RAt2Ss=; b=qWefCU+txazg3OmLUrGA9D2X1657l6M27CD0PZUgPBwjYlB9Wts7cyBdfhWrebSKp1 mVz1iALja5A8+dwFvmZEz0Bv92MCmpklP1UrtKIMF9MJncQqaGPZrAllZz6f0GBBT0yT 9x6lvz739RKmaoFpgM59M7Z0XnHrFD+IV7ZYx14rndij+4egd2ngHEVViNmD3gbbfsFd BsILCh+uPGcwzyG02CS0rywPgicanXM1hwGmRwqNHf5PGGyB47ESng4jxhSTmWUxOe2e cnOhQDw5RgNDc8MBgEwfWCD7rDgTeLnCSYM6HaD/F6J2QDs9du10OaUpqfUkVP6Dg4mF ELZA== Original-Received: by 10.180.82.3 with SMTP id e3mr19379356wiy.14.1348665138018; Wed, 26 Sep 2012 06:12:18 -0700 (PDT) Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id ct3sm25593661wib.5.2012.09.26.06.12.15 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Sep 2012 06:12:17 -0700 (PDT) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 159C722EDA; Wed, 26 Sep 2012 15:12:20 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Wed, 26 Sep 2012 08:59:46 -0400") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.177 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:153578 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")) In dired, I byte-compile with `B' on the file. >> For example, compiling a file with this >> (cl-position '1 '(0 1 2 3)) >> (cl-defsubst test () (interactive) (message "blah")) >> will warn about cl-position, not cl-defsubst. > > I don't see any particular reason to have a warning for the above code, > unless of course you forgot the (require 'cl-lib) or you wrapped the > (require 'cl-lib) in an eval-when-compile. So please say precisely > which warning you get and in which case. With the recipe above, I get this warning: Compiling file /home/guerry/test.el at Wed Sep 26 15:01:47 2012 test.el:1:2:Warning: function `cl-position' from cl package called at runtime Why is there no warning about cl-defsubst? cl-defsubst is defined in cl-macs.el but I don't see where cl.el is unconditionnally requiring cl-macs. How to get rid of the warning about cl-position? cl-seq.el doesn't have any (provide 'cl-seq). This is with GNU Emacs 24.2.50.2 (i686-pc-linux-gnu, GTK+ Version 3.4.4) of 2012-09-20. -- Bastien