From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uPTtFBtkimP8xAAAbAwnHQ (envelope-from ) for ; Fri, 02 Dec 2022 21:46:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aCbaFBtkimMtTgAA9RJhRA (envelope-from ) for ; Fri, 02 Dec 2022 21:46:19 +0100 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 17ECA3214F for ; Fri, 2 Dec 2022 21:46:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1Cv1-0000Ej-98; Fri, 02 Dec 2022 15:45:59 -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 1p1BG0-0000sc-Q4 for guix-devel@gnu.org; Fri, 02 Dec 2022 13:59:32 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1BFy-0006Um-NB for guix-devel@gnu.org; Fri, 02 Dec 2022 13:59:32 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5B550240027 for ; Fri, 2 Dec 2022 19:59:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1670007565; bh=THSg6BOf0Jzs6e8243w5iBy5qUuVE1M2RWwLIrBiUsw=; h=From:To:Subject:Date:From; b=phNmutHMd6vSChk2Ea/jjJifj/nnRl7kQmdEylqu0B5EQJ7oFDEvTAS4yUYcoLQf2 tTr7+1uuRSbaRhdtpEwhO6cdbBmEVrOfysyKyWOmmsyISYi3daPZ4XsURhxMASRY/S vOD6qjrPMx27Xle9BkEjlhmlWZdcgOdA3u+WGiaM8c4Ak0F4hcdvuk1qkM0vijluxF JeGhhAMof3VvdQcsKXYC15c+hse9urOi2SHjuaUQ68bO9uieKE9lV5t13Nd7+vc7Te dG3VPPbQDP5NWaNvR6I/rZqR2Y0BdXuQ27K8rUciAHu0BsA+1cerjQkBGsxINjjOpV zcsT7VCmLWzkw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NP2L43gPZz9rxH for ; Fri, 2 Dec 2022 19:59:24 +0100 (CET) From: Aleksandr Vityazev To: guix-devel@gnu.org Subject: match-record Date: Fri, 02 Dec 2022 18:59:23 +0000 Message-ID: <87o7sliqd0.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=avityazev@posteo.org; helo=mout01.posteo.de 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 02 Dec 2022 15:45:51 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670013979; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=W0za5mT0Wf1X7nnREPdG/mzdWnJC1QBCiG6Ak16vyps=; b=gLMMOTIrqPxZmanAMjk7e5bKNVmrv+QA480YOk4d+UzPMEo6AZiQnUmiH3RbWEr3gno3mx MY+nQxwxOMm0kJqoCKo6g6qVkKjUJsYUmTvMnZ7dR4NdSoZbtHFxM3nw2fTUgRLeiiYa1r 1O4dUfV7yy43gcqhyK27fzZVW+Sjrb3PzX6SrCdflq8A4yLElIpQfs/tnZQq2w/NyJ0MrP W4MAB/oECF2dCBG77o5KL1eva9MFwkPST9Uex4JNBDkH9Qf3coH00v7i/OVFTGTNakab62 inbI2I6gcOnMIR2c+WIHdNGKQXSRVnRAYQP6lWMyqEOajYS/7JLZc/AO713aGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670013979; a=rsa-sha256; cv=none; b=Hzb1Xg8SbYGbLBb4ams7NErxPbucC/6aAXosLr+mR4wFcA7OdPs9ve/hh3gW+TSttKccER V6/TqKkTotLt8iW9X7vMecEAZFm0IEl/PwDuG2W3rHvvPVCzLTguHtd5NXsvCI9N61CyJX l35b3ndwOl4xWi4hkQOlsPvwk89DtZEItCJ5T16Ok7GQB7mMX5vWVQ19vyM3jNNKojvlCU hFV/+81r+V37fhnQrufTCuNU34iolD3CRmi2QoMp+YPM0w9lelPzpK9Wt0mhKZAISvsvrC pgo6lU+5rBUKnXd1s3OISlHVpayd5DFxMBiJmW6UktOdM9mf92LZM7GFr4CyeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.org header.s=2017 header.b=phNmutHM; dmarc=pass (policy=none) header.from=posteo.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.org header.s=2017 header.b=phNmutHM; dmarc=pass (policy=none) header.from=posteo.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 17ECA3214F X-Spam-Score: -2.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8Cv6vMM7/3gX Hi, Before cc9ee514e37f6ec74dd9cab91a13d51f7b8d47e7 commit the code below worked: #+begin_src scheme :scheme guile :season guile (define (iwd-etc-service config) (match-record config (config) `(("iwd/main.conf" ,(apply mixed-text-file "main.conf" (serialize-ini-config config)))))) #+end_src then this lead to an error: Syntax error: test.scm:109:44: lookup-field: unknown record type field in subform config of (lookup-field config (+ 1 (+ 1 (+ 1 0))) ()) If you fix the code to the following one, it will work. #+begin_src scheme :scheme guile :season guile (define (iwd-etc-service cfg) (match-record cfg (config) `(("iwd/main.conf" ,(apply mixed-text-file "main.conf" (serialize-ini-config config)))))) #+end_src Should the code from the first block work, or should I not write it that way? -- Best regards, Aleksandr Vityazev