From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.lisp.guile.user Subject: Re: inserting a file in a module? Date: Fri, 6 Oct 2023 09:52:44 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1mCJWcmvH69nc5rd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13195"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Damien Mattei Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Oct 06 09:53:14 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qofe6-0003Ca-7C for guile-user@m.gmane-mx.org; Fri, 06 Oct 2023 09:53:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qofdj-0004oQ-OS; Fri, 06 Oct 2023 03:52:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qofdi-0004ng-DG for guile-user@gnu.org; Fri, 06 Oct 2023 03:52:50 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qofdg-000847-Hv for guile-user@gnu.org; Fri, 06 Oct 2023 03:52:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nm/1NLprnPxObwUsu4AR+Njst8vZT1uL56Pjlw5eFY0=; b=eiLntWBjp/WSUQkiu5jT96zLxj sNl2oU42f4dy1wqfxWefXRlStheK/cycXxpHO8ioEJPVOjYG4S1+KLPKG7QW6+MhwidKCteoP0Djc ykJWEp4RP6PZDtdWw72+lIO4RUPvn3Tenjiy0MplagIQhReDy7ioVFsLW8Ig7tNoIN9MGFJxDVAta jCodmhGWkOwq6sXrw55TmGxyTwIU7tlFKMcPBKgjtZODJwuhLiIBEhhNemGDJNU721BneSOP9+C4Y ZMJz/tz35xo3DSMwkj4ZMobSP66hP3S9p1dAoMbXafWME1fY83/b2ooZc6UeZVrlVb3U/qcBLpH4M 4qFrVO1A==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1qofdc-0000wd-Lx; Fri, 06 Oct 2023 09:52:44 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19239 Archived-At: --1mCJWcmvH69nc5rd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 06, 2023 at 09:14:50AM +0200, Damien Mattei wrote: > On Thu, Oct 5, 2023 at 9:35=E2=80=AFAM wrote: >=20 > > I don't know whether it is TRT, but you might try wrapping your > > define form in (eval-when (compile) ...) or similar. > i tried this: > (eval-when (compile) (define scheme-plus-path > "/Users/mattei/Dropbox/git/Scheme-PLUS-for-Guile")) >=20 > (include (string-append scheme-plus-path "/" "Scheme+.scm")) >=20 > but still have the error: > In procedure string-prefix?: Wrong type argument in position 2 > (expecting string): (string-append scheme-plus-path "/" "Scheme+.scm") Interesting. Even with the shotgun approach (eval-when (expand load eval compile) ...) include isn't seeing a value for the defined variable. My hunch is now that the define itself is special. There's some note in the docs about that, but I'm ATM at $DAYJOB and not supposed to be doing this :) Cheers --=20 t --1mCJWcmvH69nc5rd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZR+8xgAKCRAFyCz1etHa RpKAAJ9O9HJiFCW7/u2HeFLkRpa+InhExACfca89KJd2Hsq4SlBadFHXxe7NHEc= =AeNl -----END PGP SIGNATURE----- --1mCJWcmvH69nc5rd--