From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KP8aO2h2omWxSgEAkFu2QA (envelope-from ) for ; Sat, 13 Jan 2024 12:39:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +DEdNmh2omWgZgEA62LTzQ (envelope-from ) for ; Sat, 13 Jan 2024 12:39:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=Q74aX3Cn; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705145960; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=K9s/jyjB4z9V4GRmjoSjuQb1h/Am6TuZzhXu+29bxTk=; b=DWW4ctjSQnApjyk7gxIW5xLSV2RCHPf6W4OlOTfLWdP9u+MUbSlhvCvW+TCeszdQKqKNQU FkYeuFgFbU2EsaOp7OzWyc8JWNXOuQ7ekHz+BGziWX3eMioZ47Z950xJDeaYbcy4LdeSWi 2r6Hlx8dv/6cnkRVJLNLj8AXuIENlvunAtP8QlHA7bsnQr18fGPFLxXSUTnZ3ReCVItjOx TheIeX8zBd05+BevJhxzIy1YqLYhb4yFTcCoqOrQWgRa36gOGQ5CffSIc1bft4jFhgWVYO M5bauBxjsaL3pT/J8zNN0uoqqU9vcxnSx9/raciKpkzNONqUdVuTiW1nK3q7uA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705145960; a=rsa-sha256; cv=none; b=llwc7ZrGLpGENa1lBV2JVcw27H82aN+M4tCzez8eAl7B3l+pm1/nBgMZKU6fK9LjpfZBfZ 8Om1lkhxKR0FXF5YEIH+c6RKbtaKYM2CbBTm+ZC/Frjtt1pXo4xD014immJWPrYGeS8IP3 zoLrwaI3t9PIWLCZI9Yn4i/cHmNBps0BbPC0rFtq/1U8rz2MC79TCyDp1LoiAA7P4aDEa8 WwJJn3oMIIa8i9JKYPDpsIyA54pU0BFp7oycwI3RZ6YAchRXMMC9Ft0/wtO4EwhlMbALjM DFRdb6mV/SnL4LoLXnh6nL/3x14iuWDe/ydFviBNB/Q29+lVHbM0MxiBDNfV/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=Q74aX3Cn; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" 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 61B6521BEC for ; Sat, 13 Jan 2024 12:39:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOcLy-0008VX-Gn; Sat, 13 Jan 2024 06:39:06 -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 1rOcLv-0008VK-Ll for bug-guix@gnu.org; Sat, 13 Jan 2024 06:39:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOcLv-0000qu-Dt for bug-guix@gnu.org; Sat, 13 Jan 2024 06:39:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOcLt-0007w4-K2 for bug-guix@gnu.org; Sat, 13 Jan 2024 06:39:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68413: Ungexp doesn't work on deep lists Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 13 Jan 2024 11:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68413 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Justin Veilleux , 68413@debbugs.gnu.org Received: via spool by 68413-submit@debbugs.gnu.org id=B68413.170514592630471 (code B ref 68413); Sat, 13 Jan 2024 11:39:01 +0000 Received: (at 68413) by debbugs.gnu.org; 13 Jan 2024 11:38:46 +0000 Received: from localhost ([127.0.0.1]:38622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOcLd-0007vO-Od for submit@debbugs.gnu.org; Sat, 13 Jan 2024 06:38:46 -0500 Received: from jpoiret.xyz ([206.189.101.64]:46770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOcLa-0007v9-Jn for 68413@debbugs.gnu.org; Sat, 13 Jan 2024 06:38:45 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 0D5EC185453; Sat, 13 Jan 2024 11:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1705145922; h=from:from: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; bh=K9s/jyjB4z9V4GRmjoSjuQb1h/Am6TuZzhXu+29bxTk=; b=Q74aX3CndtHQFkTQsBW8mNduF+nUy7HUNBsuwUWMs1VQiYrjrPZWChH8Th8vU704dlQrBi BTj+s+bULTH2DQxInVD2chYdn+xQcbtfZ6i5mIWAUXaCrs5DEF/ac4ONy5VmJqoZPADGds bI8tUZcDPtvSKnZLXW/2KE5zxDG7lQjAd63kSwIA09EMN4lI8EC0F9R2btwk503Bb0BYrY KeK1YvvpTRonnKFEWhIVuWDLQaJggs70tFleRumWmikhPNHlcbMOCPqahjxzah6BScXg8A EQTvcBw5la1+PuR+YzZ6ss5YaLU6ACixvfTLjDfwqawexFTv96BxaAbsFaW9hg== In-Reply-To: <87v87yvw2y.fsf@cock.li> References: <87v87yvw2y.fsf@cock.li> Date: Sat, 13 Jan 2024 12:38:38 +0100 Message-ID: <87ttnhh39d.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.80 X-Spam-Score: -8.80 X-Migadu-Queue-Id: 61B6521BEC X-TUID: 2tezx3vhEApE --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Justin, Justin Veilleux writes: >> (define packages >> (list >> (cons "coreutils" coreutils) >> (cons "make" gnu-make) >> ...)) >> >> #~(for-each >> (lambda (f) >> ... do-something) >> '#$packages) > > If I send a patch to "fix" this, will it be usefull or is there a reason > for this behavior? I think IMO that it's a bug, but it's also quite tricky to properly traverse deep structures like this. The bug comes from the fact that in gexp->sexp, we traverse lists by matching the reference with (refs ...), but that doesn't match if the reference is a pair instead. Then, it tries to match with ($ (? self-quoting? x)), which does match since self-quoting? apparently returns #t on a pair, whether or not its constituents are also self-quoting. Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmWidj4QHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5Fhcaij9YDACaNDfeMZsVBnnXyeSYtPhNu3VfkcN1UGZk sr3n9lFm8dnSJ5buUVNo5vXm34xgwuG+QrNe682Hmd8oj/Hn/oSTCcFn9+jkFpn4 QX7N30P+Rn9fXoB2tpj5B64pv6ITl3jL8Tkw5+l3EZKp4Mrl6QgfOrv8talCj3jv GDgPNuh+siek7S7u57HZNY5Re9gvhNvNE5XGMmCF47QQcfM76jnmojnxYDSw/aaK DexShbr/BWwkqSQn0VcinoJ+ASCy/tymqg2Vf/ooaMDDgGWEuz0N1C35qJRkp0GR DYXn+ffoaHmRqqJpuAfFwInIi4sFFC7OWWlgiRYfRXjniO7JB/wpUKi7xZ9ay3t5 +yK08wlnEAblRPnaS7x0fYhCUIJn5u5goBoGz86oghh05wNM+wuG4pf0WMqRlOww YF+XG0jrad6JrpC370epzDo/Z5qtJLwp5weDUqs8Q1J0wRyEokbYke+PGiqorLVs UnPVdmrIYdeTZApTb4olaUXFsJZjgLY= =PxKF -----END PGP SIGNATURE----- --=-=-=--