From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.help Subject: Keeping run-time code from running at compile-time Followup-To: gmane.mail.mh-e.devel Date: Thu, 06 Oct 2005 22:09:53 -0700 Organization: Newt Software Message-ID: <30692.1128661793@olgas.newt.com> References: <4951.1128644991@olgas.newt.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1128661862 19340 80.91.229.2 (7 Oct 2005 05:11:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 05:11:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 07:11:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENkUp-0004NN-2K for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 07:10:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENkUo-0007yH-EC for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 01:10:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ENkUY-0007yA-LT for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 01:09:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ENkUW-0007xu-J7 for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 01:09:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENkUW-0007xr-8s for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 01:09:56 -0400 Original-Received: from [207.69.195.66] (helo=pop-canoe.atl.sa.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ENkUW-0000kp-7G for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 01:09:56 -0400 Original-Received: from h-68-166-188-126.snvacaid.dynamic.covad.net ([68.166.188.126] helo=olgas.newt.com) by pop-canoe.atl.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1ENkUV-0002Ty-00 for help-gnu-emacs@gnu.org; Fri, 07 Oct 2005 01:09:55 -0400 Original-Received: by olgas.newt.com (Postfix, from userid 1000) id 10CFD16FE1; Thu, 6 Oct 2005 22:09:53 -0700 (PDT) Original-Received: from olgas.newt.com (localhost [127.0.0.1]) by olgas.newt.com (Postfix) with ESMTP id 0DDAB16FAD for ; Thu, 6 Oct 2005 22:09:53 -0700 (PDT) Original-To: help-gnu-emacs@gnu.org In-Reply-To: Bill Wohler's message of Thu, 06 Oct 2005 17:29:51 PDT. <4951.1128644991@olgas.newt.com> X-Mailer: MH-E 7.84+cvs; nmh 1.1; GNU Emacs 21.4.1 X-Image-URL: http://www.newt.com/wohler/images/bill-diving.png Mail-Followup-To: mh-e-devel@lists.sourceforge.net X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30014 Archived-At: --=-=-= I'm having some compiling trouble. File B which requires file A fails to compile because file A contains code that should not be run at compile-time, just run-time. I've distilled the essence into a tiny example. Save the attachments with "K a" and then run the script doit. Right now, I'm getting the output: [wohler@olgas:807]$ sh doit While compiling toplevel forms in file /tmp/b.el: !! error (("Shouldn't hit this when compiling")) Done Loading b (source)... Shouldn't hit this when compiling I'd like to get the output: [wohler@olgas:807]$ sh doit Wrote /tmp/b.elc Done Loading b (source)... Shouldn't hit this when compiling Thanks for any help you can provide. --=-=-= Content-Type: application/x-shellscript Content-Disposition: inline; filename=doit Content-Transfer-Encoding: base64 IyEgL2Jpbi9zaCAteAplY2hvIENvbXBpbGluZy4uLgplbWFjcyAtLWJhdGNoIC0tbm8tc2l0ZS1m aWxlIC0tbXVsdGlieXRlIC0tZXZhbCAiKHNldHEgbG9hZC1wYXRoIChjb25zIFwiLlwiIGxvYWQt cGF0aCkpIiAtZiBiYXRjaC1ieXRlLWNvbXBpbGUgYi5lbAoKZWNobyBSdW5uaW5nLi4uCmVtYWNz IC0tYmF0Y2ggLS1uby1zaXRlLWZpbGUgLS1tdWx0aWJ5dGUgLS1ldmFsICIoc2V0cSBsb2FkLXBh dGggKGNvbnMgXCIuXCIgbG9hZC1wYXRoKSkiIC0tZXZhbCAiKGxvYWQtbGlicmFyeSBcImJcIiki IC1mIGRvaXQgYi5lbAo= --=-=-= Content-Disposition: inline; filename=a.el (defun foo () (error "Shouldn't hit this when compiling")) (foo) (provide 'a) --=-=-= Content-Disposition: inline; filename=b.el (require 'a) (defun doit () (message "%s" "Hello, world!")) --=-=-= -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane. --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --=-=-=--