From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EFW8EGwFW2dqsQAA62LTzQ:P1 (envelope-from ) for ; Thu, 12 Dec 2024 15:46:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EFW8EGwFW2dqsQAA62LTzQ (envelope-from ) for ; Thu, 12 Dec 2024 16:46:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=coquand.email header.s=fm1 header.b=TcV3YjBO; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=kt0XPOLA; dmarc=pass (policy=none) header.from=coquand.email; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734018412; a=rsa-sha256; cv=none; b=aGmZofFHBBp6q8tU1aUXFX2Zp+QfSMPLnH6QFNCXusw+xv+oRz3dpY/0pDTcjIPnSO2JMi QHEazHngG2POj9TBn8WRjWDyGe5BxdVeYUGyFKVtqQEAbMkrVkpxzVAliAE1QvVmcqu6KI x7ZJukADJ/fjtlAShdHjI/5O4opuSZP7aW+qA45CfQ6BaQ18inNwJiEiFpDaJDdg0iQYgO zIWdriN4M3smQcm72RKZeJHAN7/VRnl6khbAtsc4uCZa8ksULLKEZgGnRu9MGFen++rRix 6n3zZjwHu++jCTAU/kKda5bGoPQd7xMWj9M5NVjzt7lIbFJO0ruBeVV+ICl7Hg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=coquand.email header.s=fm1 header.b=TcV3YjBO; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=kt0XPOLA; dmarc=pass (policy=none) header.from=coquand.email; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734018412; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kadcdWeEXan5BkTXziDqDBZD/qRyIBUIBf9RRBVMevM=; b=s5s0mxiACjLXbTNfMGDUlJeI3lTqh1zeVkjPwqklHj6KNcV27BoQ58SKa3C5aSSwNa0U8F hJC2mLXsT9iQV7EfvC41f9wRpQ8OuU+cgn5JBZ1JBHUCxgoJbjxCssYgzug1fHmUSqEotw 7nymnPh/Rfabea49PFhCS8r6SUn0aiNWikDBmUr50T1hrLQ9Z7ao0g2Mua/Lr/rbJGtMaK /KxjCDhiHpcWQ+FrKo4JffkUJzXeeLPPl9OMDI3akwxkYiEAn4yDiZSa6EtmactCuIffXy KCQE78p97Q4+JRATZtw3zwzRI1UfZ8/H+bPbap1xN30uWaJns5R4TBLyxOEOGQ== 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 32AA955499 for ; Thu, 12 Dec 2024 16:46:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLlOI-0004Ir-V7; Thu, 12 Dec 2024 10:46:15 -0500 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 1tLlO9-00044x-JB for help-guix@gnu.org; Thu, 12 Dec 2024 10:46:06 -0500 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLlO7-0005U5-9Y for help-guix@gnu.org; Thu, 12 Dec 2024 10:46:05 -0500 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id 98DC625402A6; Thu, 12 Dec 2024 10:46:01 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 12 Dec 2024 10:46:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coquand.email; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm1; t=1734018361; x=1734104761; bh=ka dcdWeEXan5BkTXziDqDBZD/qRyIBUIBf9RRBVMevM=; b=TcV3YjBO+lsrMWTAOO s3WT/4KM0gMEQjdVkyH2uOkszDSKy1ObdV0D7wWSw/6c9CWV0lvqyudx34qjRaei b84t3gHqY0lfaK4U8A6EGjHNRaYTQViU8YqgXmHO+XMgfgyKfb6yltyHeNxN1WnN 01Pc/pxUaoJO6Le457PTqqEoGMxXkw+eubBg5m5xdM2sjtRu7/EEPvvmn7COOYE5 sXVovJel5he0+Xpues7psTf6MgqwJLoURfYKX/LyS1e9XQON6xz7AcZzr6fnnUmC DinnIL6Pg5+59rnu/G3mIrzImW1qjwGkvJCQsjLRq68ienwVL0rjNAkqOHtV1yBG wrsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1734018361; x=1734104761; bh=kadcdWeEXan5BkTXziDqDBZD/qRyIBUIBf9 RRBVMevM=; b=kt0XPOLAohSbOfrqA782xMMtRW50ZszS2Ig3qxVSSzoyjBLlxst McNiZ6FCTu76OZkj1X27eyHylHmMEZUZqzMeFcQIYTIJctg71f9zTQ1mxA9O4LzQ kbqZW7sv/LRvniDTDon8jLyN4kzPdS74pk/NWF5rZJjGN5Su0ELRctBbMUo8iwyh 42kei1FZeN/hYSlA9GRbwC8bPd5SxIKX9Wwo8K5Of9ICDcs2XCrffBW/Mmaj7lY+ XoOLbq92D0GEXKBUqV0xskoSyZhmCUxZbgeIMkM4AhJ8vNJxXcooZ/utgNFx0NxY Mq/IU/V1c/u/MVki1IS9t91Jpap7trCcdAA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeehgdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfffkgggtsehttdertddttddtnecuhfhr ohhmpeforghrtgcuvehoqhhurghnugcuoehmrghrtgestghoqhhurghnugdrvghmrghilh eqnecuggftrfgrthhtvghrnhepffeigfetlefgteefhfdtieeifeekhfeujeefvddvgeeh ledtgfevlefgkeevkedvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhgtsegtohhquhgrnhgu rdgvmhgrihhlpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtph htthhopehfvghlihigrdhlvggthhhnvghrsehlvggrshgvqdhuphdrtghomhdprhgtphht thhopehhvghlphdqghhuihigsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i587e488e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Dec 2024 10:46:00 -0500 (EST) From: Marc Coquand To: Felix Lechner Cc: help-guix@gnu.org Subject: Re: With imported functions instead of module? In-Reply-To: <877c85m1vz.fsf@lease-up.com> (message from Felix Lechner on Thu, 12 Dec 2024 06:06:40 -0800) Date: Thu, 12 Dec 2024 17:45:55 +0200 Message-ID: <87msh0nbv0.fsf@coquand.email> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=202.12.124.154; envelope-from=marc@coquand.email; helo=fhigh-b3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 32AA955499 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.19 X-Spam-Score: -9.19 X-TUID: 78bs4DU869JU Hmm, Well essentially what I'm looking for is an easier way of importing procedures within G-expressions. So basically if I have (define (my-procedure args) ...) (define notify-mail-gexp (with-imported-modules '((guix build utils) ...) #~(begin (my-procedure))) I'm wondering if there is a way to call my-procedure without moving the definition to a separate module and importing that module in the "with-imported-modules" -- Marc On Thu, Dec 12 2024, Felix Lechner wrote: > Hi Marc, > > On Thu, Dec 12 2024, Marc Coquand wrote: > >> Is there a way to import functions instead of entire modules? > > Are you looking for something more than the selective import of module > bindings via '@'? [1] > > Kind regards > Felix > > P.S. In Guile, the preferred term for functions may be procedures. > > [1] https://www.gnu.org/software/guile/manual/html_node/Using-Guile-Modules.html#index-_0040