From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.devel Subject: Re: eval-when-compile Date: Fri, 27 Jul 2012 10:11:27 +0200 Organization: Informatimago Message-ID: <87wr1pbp3k.fsf@kuiper.lan.informatimago.com> References: <871ujx94qo.fsf@Rainer.invalid> <871ujxd8in.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1343376720 22656 80.91.229.3 (27 Jul 2012 08:12:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2012 08:12:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 27 10:12:00 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 1SufeP-0005P7-B9 for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2012 10:11:57 +0200 Original-Received: from localhost ([::1]:36392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SufeO-0000zJ-Jx for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2012 04:11:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SufeH-0000yu-Ua for emacs-devel@gnu.org; Fri, 27 Jul 2012 04:11:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SufeC-0000Md-63 for emacs-devel@gnu.org; Fri, 27 Jul 2012 04:11:49 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SufeB-0000Lt-VS for emacs-devel@gnu.org; Fri, 27 Jul 2012 04:11:44 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sufe8-0005Bk-Ak for emacs-devel@gnu.org; Fri, 27 Jul 2012 10:11:40 +0200 Original-Received: from 81.202.16.46.dyn.user.ono.com ([81.202.16.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jul 2012 10:11:40 +0200 Original-Received: from pjb by 81.202.16.46.dyn.user.ono.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jul 2012 10:11:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 81.202.16.46.dyn.user.ono.com Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:YjcyYTRkMTM0NWM1YjI3MTRiM2Y4ZjAyYzJjYjIwYWFkMGNjYmFjMQ== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:151905 Archived-At: PJ Weisberg writes: > On Thu, Jul 26, 2012 at 11:26 PM, Pascal J. Bourguignon > wrote: >> If you try to load the .el file directly, then the macro is not defined, >> and you're trying to call a function named (ewc-macro) which will fail. > > That's incorrect. Things inside the eval-when-compile get evaluated > when the .el file is loaded, but not when the .elc file is loaded. > It's *not* the equivalent of Common Lisp's (eval-when (compile) > body...) You're right, I misread C-h f eval-when-compile. Hence the importance of reading well the documentation! -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a good day in {}.