From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#6750: Byte compiler: spurious message "cl used at runtime" Date: Thu, 29 Jul 2010 21:51:28 +0200 Message-ID: References: <20100728181553.GC2999@muc.de> <20100729190306.GA2459@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280434076 24571 80.91.229.12 (29 Jul 2010 20:07:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2010 20:07:56 +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 22:07:54 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 1OeZOT-0004Qx-Q4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jul 2010 22:07:54 +0200 Original-Received: from localhost ([127.0.0.1]:33064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeZOT-00081r-6F for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jul 2010 16:07:53 -0400 Original-Received: from [140.186.70.92] (port=53228 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeZON-00080G-R3 for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2010 16:07:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeZOM-0006VM-N4 for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2010 16:07:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52203) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeZOM-0006VG-Lc for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2010 16:07:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OeZ97-0006Dn-K4; Thu, 29 Jul 2010 15:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jul 2010 19:52:01 +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.128043309723905 (code B ref 6750); Thu, 29 Jul 2010 19:52:01 +0000 Original-Received: (at 6750) by debbugs.gnu.org; 29 Jul 2010 19:51:37 +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 1OeZ8i-0006DW-Bv for submit@debbugs.gnu.org; Thu, 29 Jul 2010 15:51:36 -0400 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeZ8h-0006DQ-91 for 6750@debbugs.gnu.org; Thu, 29 Jul 2010 15:51:35 -0400 Original-Received: by bwz7 with SMTP id 7so470667bwz.3 for <6750@debbugs.gnu.org>; Thu, 29 Jul 2010 12:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=UZ/higi+qTEsoBn2qk8QzEzYn8m4dx7zIExdAovE0dY=; b=RkqBGRY+EO3SBf6w4uabzvcv5XcjAR1Qlhg1jRekHbhjddZh8A5YLYWNBo1f6EijAj hEn0Ak8TiZVj1iBTm5a2kFqEKMZJSz2kNrOj4lFlSjKHONMNk7tfbkWe0AaxbLjOEqte NB1gDT4HyAXcSARnSk6NXAAxB83ET6WsxTpi8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=ob1WD6KLaejQpQpcHfS49AoWECAufKh4T1lEClB4UEMx1P3hWwxrSP6kaPjr1GLZ6d SN9fPg8ZgGukR/1h8HiwZHK+IgodCO/dpxDU66Zj5B4i3IDKaYYkYCIhzv9nLAio+CQm JJdTcAhd5yVUrXo4BJAL4+Mkq+bnLLY0F/SbI= Original-Received: by 10.204.136.71 with SMTP id q7mr389434bkt.111.1280433108171; Thu, 29 Jul 2010 12:51:48 -0700 (PDT) Original-Received: by 10.204.180.136 with HTTP; Thu, 29 Jul 2010 12:51:28 -0700 (PDT) In-Reply-To: <20100729190306.GA2459@muc.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 29 Jul 2010 15:52:01 -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:39059 Archived-At: On Thu, Jul 29, 2010 at 21:03, Alan Mackenzie wrote: > Or, perhaps you could indulge me a little, and show an example of mapcan > (or some other cl function) which isn't "use at runtime". ;; at top level (eval-when-compile (mapcan ...)) > I put it to you that that error message is not, in general, helpful. =C2= =A0I > think it should be restricted to uses of mapcan at runtime (in a defun) > or when it's in the form generated by a macro. But the point is that the macro could be called at runtime and `mapcan' would not be defined. Try byte-compiling test.el: ---------------------------------------------------------------------------= ----- (eval-when-compile (require 'cl)) (defmacro mapcan-at-runtime () `(setq sample ',(mapcan 'identity '((a) (b) (c))))) ---------------------------------------------------------------------------= ----- (which produces the warning), and then emacs -Q -l test.elc M-: (mapcan-at-runtime) =C2=A0 =C2=A0 Juanma