From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SBeGAQA3el/2ewAA0tVLHw (envelope-from ) for ; Sun, 04 Oct 2020 20:56:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uPHROP82el/REAAAbx9fmQ (envelope-from ) for ; Sun, 04 Oct 2020 20:56:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 63F049400D3 for ; Sun, 4 Oct 2020 20:56:31 +0000 (UTC) Received: from localhost ([::1]:35800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPB3W-0006vE-02 for larch@yhetil.org; Sun, 04 Oct 2020 16:56:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPB2g-0006in-A9 for help-guix@gnu.org; Sun, 04 Oct 2020 16:55:41 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:48038) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPB2b-0001Is-01 for help-guix@gnu.org; Sun, 04 Oct 2020 16:55:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=pVBxGeP4IF7wpm2pEYD3sYxQLVmHLAu3Sqs2mnGUA38=; h=date:in-reply-to: references:subject:cc:to:from; b=hIzhmaTyL2AO/y7FzuXY168mZGamqeh0oeVZc Z+c7XKtgYcmCRXToDbsnQYxWIqDOZ/oKQ6rfPvDLViPz3xqI7CXYaJumN46EUGqbJ34HtV NNODN3dxFIEjvUujuD/2YFXE1hZYKTbNh6rOEhw0HllCwLUmNJJ05joR1KG7/GBjWjKjt4 vuFRMCX28YRVMsxG9y5FwQtQKLhpbivlUDmSdLgWeVDNBRothZwt6dRDGMQbBUMz8CpmTC EsPcZsbBQ1LyNMC+kxxxJ5MlqlEJ7mgfq1OYCNfeqF8t1tBa1vOUxuksTc8tnm1/O3DL24 p8DB6KCiOqKgVoNLhf0LX2XVw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 1729aac1 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sun, 4 Oct 2020 20:55:37 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Stefan Huchler Cc: help-guix@gnu.org Subject: Re: define udev-service-type fails with "did you forget to import.." error References: <87blhq6hi9.fsf@mail.de> <87mu18659m.fsf@gnu.org> <8736305z7o.fsf@mail.de> <87pn5y1dyc.fsf@elephly.net> <87pn5y13d6.fsf@mail.de> <87imbq9gtz.fsf@nckx> <87a6x120yq.fsf@mail.de> In-reply-to: <87a6x120yq.fsf@mail.de> Date: Sun, 04 Oct 2020 22:55:29 +0200 Message-ID: <87blhhaeym.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=hIzhmaTy; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -3.31 X-TUID: QCxmwmZRsAS1 --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Stefan, Stefan Huchler =E5=86=99=E9=81=93=EF=BC=9A > A the double @ was a typo? No, it's a documented feature in the Guile manual: =E2=80=9CYou can also directly refer to bindings in a module by using=20 the =E2=80=98@=E2=80=99 syntax. For example, instead of using the =E2=80=98use-modules=E2=80=99= =20 statement from above and writing =E2=80=98unixy:pipe-open=E2=80=99 to refer to the =E2= =80=98pipe-open=E2=80=99=20 from the =E2=80=98(ice-9 popen)=E2=80=99, you could also write =E2=80=98(@ (ice-9= popen)=20 open-pipe)=E2=80=99. Thus an alternative to the complete =E2=80=98use-modules=E2=80=99 statem= ent=20 would be (define unixy:pipe-open (@ (ice-9 popen) open-pipe)) (define unixy:close-pipe (@ (ice-9 popen) close-pipe)) There is also =E2=80=98@@=E2=80=99, which can be used like =E2=80=98@=E2= =80=99, but does not=20 check whether the variable that is being accessed is actually=20 exported. Thus, =E2=80=98@@=E2=80=99 can be thought of as the impolite version of =E2=80= =98@=E2=80=99 and=20 should only be used as a last resort or for debugging, for example. Note that just as with a =E2=80=98use-modules=E2=80=99 statement, any mo= dule=20 that has not yet been loaded will be loaded when referenced by a =E2=80=98@=E2=80= =99 or=20 =E2=80=98@@=E2=80=99 form.=E2=80=9D -- (guile)Using Guile Modules I think I'm done here though. Good luck, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX3o2wQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15upUBAISV2GzR8Cw4sy175+H7GSLzgnwDjwKCRutZaUIe JWiEAQD+dh6GkOorocCOuCJoLiwtAM6UGo/IAbdJ9HvwI4ZtAA== =dt2k -----END PGP SIGNATURE----- --=-=-=--