From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qHoiC2pZR2I6aQAAgWs5BA (envelope-from ) for ; Fri, 01 Apr 2022 21:58:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MGS+B2pZR2JZLAEAauVa8A (envelope-from ) for ; Fri, 01 Apr 2022 21:58:34 +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 CE160408EE for ; Fri, 1 Apr 2022 21:58:33 +0200 (CEST) Received: from localhost ([::1]:33658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naNPl-0006N5-1y for larch@yhetil.org; Fri, 01 Apr 2022 15:58:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naNPG-0006K6-DJ for guix-patches@gnu.org; Fri, 01 Apr 2022 15:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naNPG-0008ON-0y for guix-patches@gnu.org; Fri, 01 Apr 2022 15:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naNPF-0006WV-WC for guix-patches@gnu.org; Fri, 01 Apr 2022 15:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54674] [PATCH] services: configuration: Use *unspecified* instead of 'disabled. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Apr 2022 19:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54674 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Attila Lendvai , 54674@debbugs.gnu.org Received: via spool by 54674-submit@debbugs.gnu.org id=B54674.164884302825015 (code B ref 54674); Fri, 01 Apr 2022 19:58:01 +0000 Received: (at 54674) by debbugs.gnu.org; 1 Apr 2022 19:57:08 +0000 Received: from localhost ([127.0.0.1]:43523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naNON-0006VO-Qi for submit@debbugs.gnu.org; Fri, 01 Apr 2022 15:57:08 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:34768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naNOL-0006VF-MW for 54674@debbugs.gnu.org; Fri, 01 Apr 2022 15:57:06 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id DXx32700V4UW6Th01Xx3Kb; Fri, 01 Apr 2022 21:57:04 +0200 Message-ID: <0be3a60eb95672b6dc5101b966c85f2f3c810224.camel@telenet.be> From: Maxime Devos Date: Fri, 01 Apr 2022 21:56:58 +0200 In-Reply-To: <20220401191957.16624-1-attila@lendvai.name> References: <20220401191957.16624-1-attila@lendvai.name> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-BWn6DKzDWpRHa8Ln8BGf" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1648843024; bh=8iTj+KfmY/SPaSqwbnKpH4TGBf3ffooOyVLG+ktjSIc=; h=Subject:From:To:Date:In-Reply-To:References; b=NJbETQL3TNcpZiCg1aJks0gWTA8bBgwpkcik+VMyEJPxHt3lDLJcufB2xb7S7V0Za tOxWiujGA+MID6TgcNmcG/C00lYCwV7jjRG42kWdk3A1DpjRFp6Xih0QJAlnmWQKw7 HhVTm9y0lb2VqTqhKhBVBd0t5EW/sJlvHZqN/2Ris707CaFSmchLzdFjigDJQM0umC 80yr7iDqizvyRv7IIzZUSSsyOWdE3U5hfKOOil0m4Ce5rTwwEK0jvwrT1UKYBzODGs 16f953Xt1iilGEbyqsRbSSzHoW9K60XoOGeWMEDHKtP3BBGvimxdDB/aKYFjKV+cVP kHrIAOTP0WRIg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648843113; 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: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=8iTj+KfmY/SPaSqwbnKpH4TGBf3ffooOyVLG+ktjSIc=; b=AoFMihlnAqwGVnPtcKDuHHSh1oteXRZVs5dD09fvM2IG/0xaK0PtOrvO+0PPLLpaWkyrw6 TR98nolG/pEFHJIS+OLKh4BzvBzxXnGEjn/EgvLy4LnMwD8IHRXyfO6EaSw7fLDGuwF7QC 2KAhgvewe2bpGjm8Kp4EmFPI1SPY1/Q3w4OLJP3tQyfKwHN9ekPwckNRfsZrTMZgKNl/BF W0j/pRShXHuVGbV+sHeANgbEMmA6G+vK1O82TtwmbKQ8R5kdS+j6OUogsaexa49rVuRpCk B5sDeNZSV7NrDQ9QDhW9kb2GxGkZpJw8egBDPgM3N167GmdEhm4DUOLSeCdQcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648843113; a=rsa-sha256; cv=none; b=DV2VBtb/cx+YgD0S++ZrAlBXiuXUyZbkieFPUEzV5Ogzb3QqCEFXfhzmTGOMJK3nVZ5ekb AmgHpxGVo0uy1NXII2nIUPWEdc7YmXkoLV7hZGelu3Ccp7HVpsEJidofNlh5O/gA8pxB7w +G+keDpQRxHQZhiQVdwhNkCVnp2jvdpGbqJhaXHBt4Z/YssQCYNhb6VtLfuIFmv3ZQl30L qPITxvnTNxS42kTgyNHpIZPVRQ8JwdEhfu//xOwBGOZ+BPn9B/4Dk74FbIBVOb4SnejqeE up7256ap4cQDNhQn7hIDqoADMb6YFArKzY5qD8uofWI2huaHuT0fO7nrZLgsmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=NJbETQL3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=NJbETQL3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CE160408EE X-Spam-Score: 2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZHUq2HxOJXNm --=-BWn6DKzDWpRHa8Ln8BGf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op vr 01-04-2022 om 21:19 [+0200]: +=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (if (unspec= ified? (syntax->datum def)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 #`(#,name #,getter) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 #`(#,name #,getter (default #= ,def)))) I'm not sure this does what you want it to do: (define-syntax foo (lambda (s) (syntax-case s () ((_ bar) (pk (syntax->datum #'bar) (unspecified? (syntax->datum #'bar))))))) (foo *unspecified*) ;;; (*unspecified* #f) The problem is that, from the macro systems POV, *unspecified* is just a variable reference to the global *unspecified* --- *unspecified* isn't magic to the reader, the reader just interprets it as a symbol. Suggestion: (define-syntax foo2 (lambda (s) (syntax-case s () ((_ bar) (pk (syntax->datum #'bar) (and (identifier? #'bar) (free-identifier=3D? #'*unspecified* #'bar))))))) (foo2 *unspecified*) ;;; (*unspecified* #t) Greetings, Maxime. --=-BWn6DKzDWpRHa8Ln8BGf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYkdZChccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7jpoAQCp1WOmWX1IIoj6rGCArnUDXe3Z 1OiZRD5BL4ZPBJluSwEAo907Qp37c+mZn6Rs7BzHLkhNu3UjJYC+VfFAyBz2nQg= =Kajf -----END PGP SIGNATURE----- --=-BWn6DKzDWpRHa8Ln8BGf--