From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: Re: doc eval-when-compile, eval-and-compile Date: Thu, 27 Oct 2005 11:42:29 +1000 Message-ID: <87slunn3ay.fsf@zip.com.au> References: <87wtk2ef7o.fsf@zip.com.au> <87u0f65xr2.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130377662 12129 80.91.229.2 (27 Oct 2005 01:47:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2005 01:47:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 03:47:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUwp7-0004EM-GA for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2005 03:44:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUwp6-0004x2-TD for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2005 21:44:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUwoD-0004Y4-EK for emacs-devel@gnu.org; Wed, 26 Oct 2005 21:44:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUwmy-0003f9-TC for emacs-devel@gnu.org; Wed, 26 Oct 2005 21:42:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUwms-0003eh-03 for emacs-devel@gnu.org; Wed, 26 Oct 2005 21:42:39 -0400 Original-Received: from [61.8.0.115] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUwmq-00037I-Oj for emacs-devel@gnu.org; Wed, 26 Oct 2005 21:42:37 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9R1gZQT001979 for ; Thu, 27 Oct 2005 11:42:35 +1000 Original-Received: from localhost (ppp26E3.dyn.pacific.net.au [61.8.38.227]) by mailproxy1.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9R1gXZA029621 for ; Thu, 27 Oct 2005 11:42:34 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1EUwmj-0001Ub-00; Thu, 27 Oct 2005 11:42:29 +1000 Original-To: emacs-devel@gnu.org In-Reply-To: <87u0f65xr2.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 24 Oct 2005 19:00:15 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44942 Archived-At: Stefan Monnier writes: > > I.e. it works around the fact that the byte-compiler does not > natively understand that `autoload' "defines" a function. I tried byte compiling (defun foo () (bar)) then adding (autoload 'bar "barpkg") and that autoload suppressed the warning about bar, so I thought it was recognised, without being actually eval'ed.