From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: [PATCH 6/6] gnu: Improve error reporting of the use-.*modules macros. Date: Fri, 10 Nov 2017 18:02:32 -0800 Message-ID: <87d14po9mv.fsf@gmail.com> References: <87zi7xwvso.fsf_-_@gnu.org> <20171108130921.25202-1-ludo@gnu.org> <20171108130921.25202-7-ludo@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDL87-0006PG-3q for guix-devel@gnu.org; Fri, 10 Nov 2017 21:02:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDL83-0007H6-7H for guix-devel@gnu.org; Fri, 10 Nov 2017 21:02:43 -0500 In-Reply-To: <20171108130921.25202-7-ludo@gnu.org> ("Ludovic \=\?utf-8\?Q\?Cou\?\= \=\?utf-8\?Q\?rt\=C3\=A8s\=22's\?\= message of "Wed, 8 Nov 2017 14:09:21 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: > +(define-syntax-rule (try-use-modules hint modules ...) > + (eval-when (expand load eval) > + (%try-use-modules '(modules ...) > + (source-properties->location > + (current-source-location)) > + hint))) > + Why is it necessary to use eval-when here? The Guile manual makes it sound like eval-when is intended to be used with syntax-case macros, not syntax-rules macros. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAloGWjgACgkQ3UCaFdgi Rp1E1Q//QSEZrmpQxTJpDpXDGFZx7Q4GT0b94MIeieUJfvC66CgFVTdc1QVS2WNA 5NlweiIryQVCngs7lIRQ482Zcd/vhKdLszvLf6a/VU8R0yRSVF5jZxN++pzq1F4E BSyJ48bhzMLYsv2JjxSM6l5mLLsoOPLgKyTtY11YGLBgHE9zxtEkfhZ7ZDdxz2X/ SM+zQnMWj7w9lbQbtQH1ozxo78/JUflY6OPKZ8u+ge3CJLJglLGdV81DmCmmxoYs 6ze1rObukI7IHhOKUWvh12q/x7/gaOMD7TrPVKBQ3N19yXY2nCgszxZ4vjVBsdU8 cHIl7w8vkpx80PlbqhHgsfXwJ51ERGtnIJ9J3TKx0vi6rlFdy4AVZmiw4PQIRf6C 5ajhmw5cXsM3YSCLfpwu1wJGGeLNvJv5/LfuKTOpRIx0sUsVaZfn/iSce27pXfMu qrkEWQ2N6oS/wgxidgAhcsBZPbQrAFPZ3kHJ4rnk8pjaeB3LJQl6YLXRb4KV7nAP /6ZOtwe1iDsZds6GAo9lI06rSqtqLdOgF5UNvkeHAnO/tAg8PKnZhxxbgJd1H2y5 Lad1bFm4INHApWSW8kzqJXHGoZwaEYJSW8W4/MwYUr0r+4oniscx6+BVFL1HrES0 zBp3sxkhoXGUUZtkFNb5O1o5kwInvHDQilvcjuOwTjjdoFEyhUQ= =ee0H -----END PGP SIGNATURE----- --=-=-=--