From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6750: Byte compiler: spurious message "cl used at runtime" Date: Thu, 29 Jul 2010 01:01:46 +0200 Message-ID: References: <20100728181553.GC2999@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280358479 15454 80.91.229.12 (28 Jul 2010 23:07:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 23:07:59 +0000 (UTC) Cc: 6750@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 29 01:07:57 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OeFj7-0003SE-5o for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jul 2010 01:07:53 +0200 Original-Received: from localhost ([127.0.0.1]:59289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeFj6-0000MJ-Br for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jul 2010 19:07:52 -0400 Original-Received: from [140.186.70.92] (port=51387 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeFiy-0000MA-LU for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2010 19:07:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeFix-0006fK-Jd for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2010 19:07:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42773) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeFix-0006fG-IN for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2010 19:07:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OeFdS-0003vn-AG; Wed, 28 Jul 2010 19:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jul 2010 23:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6750-submit@debbugs.gnu.org id=B6750.128035810015085 (code B ref 6750); Wed, 28 Jul 2010 23:02:02 +0000 Original-Received: (at 6750) by debbugs.gnu.org; 28 Jul 2010 23:01:40 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeFd5-0003vG-4p for submit@debbugs.gnu.org; Wed, 28 Jul 2010 19:01:39 -0400 Original-Received: from impaqm4.telefonica.net ([213.4.138.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeFd3-0003v4-9J for 6750@debbugs.gnu.org; Wed, 28 Jul 2010 19:01:38 -0400 Original-Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm4.telefonica.net with bizsmtp id nWiS1e0072h2L9m3Qb1nHP; Thu, 29 Jul 2010 01:01:47 +0200 Original-Received: from ceviche.home ([83.61.51.16]) by IMPmailhost3.adm.correo with BIZ IMP id nb1n1e0020LyJBX1jb1nX2; Thu, 29 Jul 2010 01:01:47 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id E7B0C66334; Thu, 29 Jul 2010 01:01:46 +0200 (CEST) In-Reply-To: <20100728181553.GC2999@muc.de> (Alan Mackenzie's message of "Wed, 28 Jul 2010 18:15:53 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 28 Jul 2010 19:02:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39033 Archived-At: > In this macro declaration: > (defmacro c-declare-lang-variables () > `(progn > ,@(mapcan (lambda (init) > `(,(if (elt init 2) > `(defvar ,(car init) nil ,(elt init 2)) > `(defvar ,(car init) nil)) > (make-variable-buffer-local ',(car init)))) > (cdr c-lang-variable-inits)))) > , (from cc-engine.el), the byte-compiler gives this warning: > "Function `mapcan' from cl package called at runtime". > It is clear that the mapcan, being within a ,@ construct, does its work > at macro-expansion time, i.e. compile time. > Thus the warning message is wrong. This is a bug. This macro will be in the .elc. This means it can be called "at run time" (e.g. if you do M-: (c-declare-lang-variables ...) RET). Stefan