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: Fri, 30 Jul 2010 11:18:05 +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=us-ascii X-Trace: dough.gmane.org 1280482690 24882 80.91.229.12 (30 Jul 2010 09:38:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Jul 2010 09:38:10 +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 Fri Jul 30 11:38:07 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 1Oem2Y-0002y3-1a for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jul 2010 11:38:06 +0200 Original-Received: from localhost ([127.0.0.1]:46408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oem2X-0003aH-CW for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jul 2010 05:38:05 -0400 Original-Received: from [140.186.70.92] (port=45055 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oem2J-0003XI-SP for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 05:37:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oem2H-0006gy-1c for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 05:37:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49945) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oem2G-0006ga-U7 for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 05:37:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oelj8-00045I-4A; Fri, 30 Jul 2010 05:18: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: Fri, 30 Jul 2010 09:18: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.128048147315694 (code B ref 6750); Fri, 30 Jul 2010 09:18:02 +0000 Original-Received: (at 6750) by debbugs.gnu.org; 30 Jul 2010 09:17:53 +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 1Oeliz-000455-5h for submit@debbugs.gnu.org; Fri, 30 Jul 2010 05:17:53 -0400 Original-Received: from impaqm2.telefonica.net ([213.4.138.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oelix-000450-4V for 6750@debbugs.gnu.org; Fri, 30 Jul 2010 05:17:51 -0400 Original-Received: from IMPmailhost5.adm.correo ([10.20.102.126]) by IMPaqm2.telefonica.net with bizsmtp id o7SA1e00D2jdgqJ3M9J58s; Fri, 30 Jul 2010 11:18:05 +0200 Original-Received: from ceviche.home ([83.61.51.16]) by IMPmailhost5.adm.correo with BIZ IMP id o9J51e0090LyJBX1l9J5JH; Fri, 30 Jul 2010 11:18:05 +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 1409D66140; Fri, 30 Jul 2010 11:18:05 +0200 (CEST) In-Reply-To: <20100729190306.GA2459@muc.de> (Alan Mackenzie's message of "Thu, 29 Jul 2010 19:03:06 +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: Fri, 30 Jul 2010 05:18: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:39074 Archived-At: >> 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). > That brought a smile to my face. It's pure sophistry. :-) Except that this is not the reason I put the warning, but the reason why the byte-compiler's code thinks the warning is warranted. The byte-compiler is fairly stupid and doesn't know that this macro is not intended to be used at runtime. I agree it's not great, and it leads to "spurious" warnings like that. Suggestions (and patches even better) welcome to try and resolve the problem. Stefan