From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KLYkKnh1AWU5PgEAauVa8A:P1 (envelope-from ) for ; Wed, 13 Sep 2023 10:40:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KLYkKnh1AWU5PgEAauVa8A (envelope-from ) for ; Wed, 13 Sep 2023 10:40:24 +0200 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 2EFF236DEC for ; Wed, 13 Sep 2023 10:40:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=SeH5h+MD; dmarc=pass (policy=none) header.from=gmail.com; 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=1694594424; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=l4pULLWV/ZSoOjgdBsVYoijNQdnTAcVugE3gNMnAT24=; b=ReN40ZJ/lhUS2AIjGDIrPIFI4sHxwYvTX0g4tETfPESBcQMEIyNX0h2B4iCNfs8m3S2eDW umHaOGubftWyUBzm18PiVCNO5RENWFrrekngc/BSyJ8axpc7EDw168eho/YJEC54pezPUS vtc8NlEvIrQpKpy0TGf/o7kRDCSB2B7N3XMJGS3VqrS3jCMoJTodaf2DZwdt3rzcjFevL5 kl2uQ9r97M3H0oYCYW9RcCjTkFG3ROsXRkRYSCrIxLMJg333HSGUzI0qYgCfhUFwvzMT2M 2ztUhspRDxSX9/r8d1yN4vDWA32jz+7nqUD8rtTelyYQzvx2Kz7kNZMoZlRmvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694594424; a=rsa-sha256; cv=none; b=ks6yiQLlyrYqxWBymePvvtQ6gOy537mQDcX9ZqZhn2vD/2NRaD70d35TrbSo6b2b5VPgKa BONXYWRpPUSrPikBQf8H4lzBMevJzCAlJ5SJwWWF9Xi8Yr/CM5OohOVQj55Y7LtjGUeiTE GYzURqT0t9K/JkorYiNz+IBC5ZZc9xuU352LKpTZllb690yfPhPZQDg7AgQFNk/rmAeykj tAujbVux58zD5LY4PCN/2bcesf6rT8e11EYSuqN1erv5d0pKyEVgkIaowUYcJmVULSBw55 aP6iiIH0KeTA70X6Hp0UDmT5aYHyixe5RCRyE7EySu/87mWoow7MG7XvFP52dg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=SeH5h+MD; dmarc=pass (policy=none) header.from=gmail.com; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgLPg-0006EV-TM; Wed, 13 Sep 2023 04:39:56 -0400 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 1qgLPe-0006D9-BL for help-guix@gnu.org; Wed, 13 Sep 2023 04:39:54 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgLPa-0001fy-RH for help-guix@gnu.org; Wed, 13 Sep 2023 04:39:53 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-402ba03c754so18695545e9.0 for ; Wed, 13 Sep 2023 01:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694594389; x=1695199189; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=l4pULLWV/ZSoOjgdBsVYoijNQdnTAcVugE3gNMnAT24=; b=SeH5h+MDVnlFdCVKywWN+aJaN+P8sRj7Cu55SaPhrd6K+bPZiGYD+pUOhP0oAbNYw2 fKDM+eCLEKT6dkZ1kMyD0cpJOuK6stzV+ZkZ9vYp1BcFCAKDVN0RzTFfhxPZ2iXMUzLw OQzlTmUul+auU6nP2cQEp4ZS6JJwqCEEEhodKxKMtUnO0ANIfN9R8HPieYuJ8PNR/nmS lDPJHSs/VToxqzQuIrsRLG0raG3r5dvJtTWRR7oje3EgU/lYKX6UFMM9OikGMbKXxN5L xBlGyWqEMJFW4ckxzWwvWOKWrG2oJG7EAF3yeAbMglYvrX8NZmDYXkWLcEREXDrdnAOn kFYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694594389; x=1695199189; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=l4pULLWV/ZSoOjgdBsVYoijNQdnTAcVugE3gNMnAT24=; b=Kj5X8zrjWm/7tKHQ0THuodU+WoO6L1jFQX2UMTng4/f+OBd5vgRCZ4gAHFeulEdfOa 2sU0uuf1zsjdoOby/660l+63ZYYxAqeVcQdxacfT8WsIoOHfarF2HEoGSN5flPKPom4y uJKONIjeEJwmhVjxRTqRW7txYFiBE+Yqe3JMSQtvlQ/T0gnxRMoHDxQCqXNhZ2VUZMTU UFkBEgwDVAVBXzCCOtu9Px4Zuz+yL0MPawWs3e3/Y+ySz06vQMESXTnZdQqpCmFv64gk IGJf409FzvZ3BQgervo2K6Mp0jSMqSb1hBiNpMbEoGfXDjVaP+dhsOoEgCFid7AGzGCw CMXw== X-Gm-Message-State: AOJu0YxQwePKmufwYKHliC+VDm86dhKdSS4IbeypX6YXLon336KdAndC /YQ86LArXtlCjxa545jrRO9plvclk9U= X-Google-Smtp-Source: AGHT+IE7SMzb1ewxXEPOF0cptsXhCSdlo5T0oa5oKX189pmUemiMkGYLo2MxxoBJT2PZKz7mCXQf+A== X-Received: by 2002:a05:600c:3b9b:b0:3fe:dd78:8fbc with SMTP id n27-20020a05600c3b9b00b003fedd788fbcmr1449153wms.3.1694594388590; Wed, 13 Sep 2023 01:39:48 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id az17-20020a05600c601100b003feea62440bsm1362987wmb.43.2023.09.13.01.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 01:39:48 -0700 (PDT) From: Simon Tournier To: Rodrigo Morales , help-guix@gnu.org Subject: Re: [TIP] Using (@@ module-name binding-name) sometimes might result in "unbound variable" In-Reply-To: References: Date: Wed, 13 Sep 2023 10:10:01 +0200 Message-ID: <86ttrywl2e.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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-Spam-Score: -2.98 X-Spam-Score: -2.98 X-Migadu-Queue-Id: 2EFF236DEC X-Migadu-Scanner: mx0.migadu.com X-TUID: NcOStZrAe05X Hi, Thanks for sharing. On Tue, 12 Sep 2023 at 08:24, Rodrigo Morales wrote: > I used @@ as stated in the Guile manual [1], but I kept getting the error > "unbound variable" (please see below). Indeed. --8<---------------cut here---------------start------------->8--- $ guix repl GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guix-user)> (define my/config->sxml (@ (gnu home services fontutils) config->sxml)) ice-9/boot-9.scm:1685:16: In procedure raise-exception: error: config->sxml: unbound variable Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guix-user) [1]> (reload-module (resolve-module '(gnu home services fontutils))) $1 = # scheme@(guix-user) [1]> (define my/config->sxml (@ (gnu home services fontutils) config->sxml)) ice-9/boot-9.scm:1685:16: In procedure raise-exception: error: config->sxml: unbound variable Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guix-user) [2]> (define my/config->sxml (@@ (gnu home services fontutils) config->sxml)) scheme@(guix-user) [2]> my/config->sxml $2 = #sxml (a)> scheme@(guix-user) [2]> --8<---------------cut here---------------end--------------->8--- > #+BEGIN_QUOTE > Sometimes it might be necessary to revisit the source file by using > (reload-module (resolve-module module-name)) to make sure that > all functions are available. > #+END_QUOTE [...] > [1] https://www.gnu.org/software/guile/manual/html_node/Using-Guile-Modules.html#index-_0040_0040 This proposal is for the Guile manual, right? Well, I do not know if @@ is something Guix should document. Cheers, simon