From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Compile in a fresh module by default Date: Thu, 15 Oct 2009 11:42:24 +0200 Message-ID: References: <87ws52i36r.fsf@gnu.org> <87ljk9i6d7.fsf@gnu.org> <2bc5f8210910131926w57224fb6t6231555585f59f51@mail.gmail.com> <87k4yy75tm.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255600781 10173 80.91.229.12 (15 Oct 2009 09:59:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 09:59:41 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 15 11:59:33 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MyN7L-0008WK-DQ for guile-devel@m.gmane.org; Thu, 15 Oct 2009 11:59:31 +0200 Original-Received: from localhost ([127.0.0.1]:39765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyN7K-0007fV-PX for guile-devel@m.gmane.org; Thu, 15 Oct 2009 05:59:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyMsb-0004lo-N8 for guile-devel@gnu.org; Thu, 15 Oct 2009 05:44:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyMsX-0004k8-0X for guile-devel@gnu.org; Thu, 15 Oct 2009 05:44:17 -0400 Original-Received: from [199.232.76.173] (port=52462 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyMsW-0004k2-N2 for guile-devel@gnu.org; Thu, 15 Oct 2009 05:44:12 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:41323 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyMsR-00054B-44; Thu, 15 Oct 2009 05:44:07 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id B378078245; Thu, 15 Oct 2009 05:44:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=yDNbRMRGQHQi zafRAqsxqbJ/4OY=; b=twQf1+dExI8ODJ/B2roX4D+sRs59t+VsMRKKkeFuS0rk Za+5otrr77o+gG7YgLqkipXvMiWl1t62Kn57wqLqt0jeFyHz39DF5/UdVMtuPl2d ImeNJmS+L+bAMUYAuIYcBb3kMCQ2OqF6lveOjytvmUr6M8VnPPriqZWyiPUX/z0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=ntAzHx q5Xf9ZkLB1J3KkzRScjNfMpI1kaxD99LZdnKPTuas3rikfo5dl3qGrCI4aK6O2+a bcsBCt0aX9KgiwBPu6ex4aoyZcOoSf4iYF36GTYOS2RN63QnmiOL7Iki9E6jbg3r UXmT1c+L/jTSuzmwJtrGhzbaAGCoKU07Wz508= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 9877778244; Thu, 15 Oct 2009 05:44:04 -0400 (EDT) Original-Received: from unquote (unknown [83.202.107.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id A72D278243; Thu, 15 Oct 2009 05:44:01 -0400 (EDT) In-Reply-To: <87k4yy75tm.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 14 Oct 2009 10:11:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: 46AADEAE-B96F-11DE-BBE3-A67CBBB5EC2E-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9491 Archived-At: On Wed 14 Oct 2009 10:11, ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> I ask because I'm working on a macro that transforms R6RS library >> expressions, which contain nested `define' calls, into Guile modules. >> My code rewrites these defines as location declarations that get >> exported as part of a module interface (at least, in theory -- right >> now it just erases them). > > Can you give an example of the macro transformation? (define-syntax foo ...) (load "file-that-needs-foo") The load needs to be done relative to the current module, which it is -- unless it's autocompiling, in which case we go through the autocompile case in boot-9.scm:924 (not the one in load.c), which is missing an #:env (current-module). Probably needs to be fixed before today's release. Andy --=20 http://wingolog.org/