From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-patches-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms5.migadu.com with LMTPS
	id iguKAn0nWmNtzAAAbAwnHQ
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 27 Oct 2022 08:38:53 +0200
Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id sIZAAX0nWmPcbAEA9RJhRA
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 27 Oct 2022 08:38:53 +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 AEF4124230
	for <larch@yhetil.org>; Thu, 27 Oct 2022 08:38:52 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-patches-bounces@gnu.org>)
	id 1onwWa-0003AW-KZ; Thu, 27 Oct 2022 02:37: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 <Debian-debbugs@debbugs.gnu.org>)
 id 1onwVj-0001nx-Sv
 for guix-patches@gnu.org; Thu, 27 Oct 2022 02:37:11 -0400
Received: from debbugs.gnu.org ([209.51.188.43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1onwVj-000376-FU
 for guix-patches@gnu.org; Thu, 27 Oct 2022 02:37:03 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1onwVi-0006gF-0y
 for guix-patches@gnu.org; Thu, 27 Oct 2022 02:37:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#57963] [PATCH v5 2/2] home: services: Support user's fontconfig
 configuration.
Resent-From: Liliana Marie Prikler <liliana.prikler@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: guix-patches@gnu.org
Resent-Date: Thu, 27 Oct 2022 06:37:01 +0000
Resent-Message-ID: <handler.57963.B57963.166685261425663@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 57963
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Taiju HIGASHI <higashi@taiju.info>
Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>, 57963@debbugs.gnu.org,
 Andrew Tropin <andrew@trop.in>
Received: via spool by 57963-submit@debbugs.gnu.org id=B57963.166685261425663
 (code B ref 57963); Thu, 27 Oct 2022 06:37:01 +0000
Received: (at 57963) by debbugs.gnu.org; 27 Oct 2022 06:36:54 +0000
Received: from localhost ([127.0.0.1]:55991 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1onwVZ-0006fr-RO
 for submit@debbugs.gnu.org; Thu, 27 Oct 2022 02:36:54 -0400
Received: from mail-ed1-f65.google.com ([209.85.208.65]:45899)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <liliana.prikler@gmail.com>) id 1onwVV-0006fb-Ul
 for 57963@debbugs.gnu.org; Thu, 27 Oct 2022 02:36:53 -0400
Received: by mail-ed1-f65.google.com with SMTP id a67so1042972edf.12
 for <57963@debbugs.gnu.org>; Wed, 26 Oct 2022 23:36:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject
 :date:message-id:reply-to;
 bh=1F76/feqXUIZPeQjpdyeQJcgwr92sRDDWUl9e1Xu0FI=;
 b=fujTWcEtl8wPO3xX7SUlUzuwRRxYXpx2WWaj/aflzPwO4FRzUfUnqyHgWLb8Mr9P3a
 oISmNQlOn4DVklasQlgqYpSNlfLQPN1D6cNgxi0vp5bdSPAmrpYFKSkv7SG8AhgJ3FQl
 ixIND25KhY0u/iNKaKTB5hKZpYoUS+aaC8iCoOd7bwQBbxvSX4xSo+vdzWHJApsyZShb
 a2Gx9zvwSzAelmJdeQ9/uZmhrNby819AhwsMhxb/Oj19wU0JPxIBZ69ka8pCSlJDc9t+
 iHqW3Os4ZC8FXpLSKHoAh4dvXGo0y/GPsmrf23XkhfemQlKJyfbFGErNMWN0WFS5ANDA
 u7jA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=1F76/feqXUIZPeQjpdyeQJcgwr92sRDDWUl9e1Xu0FI=;
 b=pOifE56+4NYgsQO1ZVito+tJScubGO8/S+XxzpefZYz+N8W/kBXjRAQRmnq7g6dg6O
 uWxgSOm/QcqbfZlXsZ9A+Hm4DHCInv7VgK1ihcIWD5UbWX+Q/fATMLtveg0eUZt6SSp5
 q8uI4BlXjF0TbEHf2RDBkh10waZPpIMPcelN6dpYuIKTl5cjleHQqJjZaFw7jq1JqPgu
 iqsg97+CsmO22IKTNDJAas8FDmd8KdhA2ECabgz0KDR/9e7HHqnHr1Xc+ZJf3zSoy6a0
 vYheSKlPS50hVi1vv53VNg7edWsTvOM5Yjy+FYzM41WYQ1b+XYSdAicIZ9lm3BGpnNTA
 VFug==
X-Gm-Message-State: ACrzQf24DLC6eXEFNtJ/6W71FdkOH0dTeVygWcPUs0MPzXbTIBA84Ehh
 IkKZQPOlVtMXaBOyM4lM7IU=
X-Google-Smtp-Source: AMsMyM6wUymAQzYm/7rtktqVC+DMX3hOLcFHfx44CdXyjFBbrEhL9Cp7JpYozAHwffU8m4kEGQT3KQ==
X-Received: by 2002:a05:6402:5107:b0:462:3014:3d73 with SMTP id
 m7-20020a056402510700b0046230143d73mr9893806edd.177.1666852604199; 
 Wed, 26 Oct 2022 23:36:44 -0700 (PDT)
Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at.
 [85.127.52.93]) by smtp.gmail.com with ESMTPSA id
 kw24-20020a170907771800b00741a251d9e8sm275897ejc.171.2022.10.26.23.36.43
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 26 Oct 2022 23:36:43 -0700 (PDT)
Message-ID: <c9ed26b9378d8af618498daebb36d416b826ca3e.camel@gmail.com>
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
Date: Thu, 27 Oct 2022 08:36:42 +0200
In-Reply-To: <87r0yt96iy.fsf@taiju.info>
References: <87k053sxur.fsf@gnu.org> <87zgdzat99.fsf@trop.in>
 <87zgdxgx0l.fsf@taiju.info> <875ygiqur9.fsf@gnu.org>
 <87r0z5e23k.fsf@taiju.info> <87czanebhd.fsf@taiju.info>
 <871qqtapbo.fsf@taiju.info>
 <20a8312539654df3c98954620979078e3e41a150.camel@gmail.com>
 <87r0yt96iy.fsf@taiju.info>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.46.0 
MIME-Version: 1.0
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: guix-patches@gnu.org
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Sender: "Guix-patches" <guix-patches-bounces@gnu.org>
Errors-To: guix-patches-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=1666852732;
	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:
	 content-transfer-encoding:content-transfer-encoding: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=1F76/feqXUIZPeQjpdyeQJcgwr92sRDDWUl9e1Xu0FI=;
	b=iGLIq7oEDg3n3laRsDfPEE7Ff07yMYm5bOK1EhJwieNs0lxDqOG1JurMkMMiqdTqy5fSMD
	uB5m/yjBncf5tDBt5o6pDTRmsUgjGPlwDRZrPTJGz60tPL9pxgtj6ZJJzqPYqi0BQLhAx8
	fkoaEcovwFF1C8kFsxwA8jNOMUWf1VzMiW14lAVc/JgynyrDvBjlabCkI13yidVGKG9/an
	UVbA0M8bWxq7KLFrSyOuVhzhcBEwXswRJwjXIOciKvABPmD2H0z8WDqhaTPr6S8kGJXXUv
	0bVoUYecHQeLony3EA7OV8+lVpTZVK8Cdl6iHuoZBXKE4AqEPaLl6yu1jbN0Qw==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666852732; a=rsa-sha256; cv=none;
	b=qIKjk3lCGJaKrHt32TggbBY31ao+LytHU0voQ/DAac03X19zAk3cmen8n4ygP3DSawvFst
	0bHx0MGVEfuE4ObdI1G1nUHRBOE00sruOzNHCL9Wk0kE42uzRlgCS1TBJSSAkJ7uXHVLW1
	OSC+kijBtBD+byPFB/As1Vjb4VNTF7jLCJLLuWfHBYKJpAsS8By1oZUH01rgi19t2hUQLF
	B5+mCYfC3rg2QyzpwDfh41sGcWWC/Hxvx5ZdDERoauSWe8W1CwLlKyFG8SdiyspbZIapM6
	muCUuwGRDK9Ew0BWayXvLj/5YwZJ6AwN5bou34oCt6nZdhWuHALStOf8q1mBqA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=fujTWcEt;
	dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 7.58
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=fujTWcEt;
	dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: AEF4124230
X-Spam-Score: 7.58
X-Migadu-Scanner: scn1.migadu.com
X-TUID: gdCqTdbm62xq

Am Donnerstag, dem 27.10.2022 um 14:31 +0900 schrieb Taiju HIGASHI:
> Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
>=20
> > Am Donnerstag, dem 27.10.2022 um 13:00 +0900 schrieb Taiju HIGASHI:
> > > Sorry for the long time it has taken to resolve the issue.
> > > What do you think about it?
> > Putting the discussion with Declan aside, the last thing mentioned
> > was
> > not trying to mix SXML and XML-in-strings.=C2=A0 Ludo offered the
> > solutions:
> > 1. Taking a <fontconfig-configuration> or a file-like object
> > 2. (Optionally) using a gexp-compiler for the former
> >=20
> > Cheers
>=20
> Sorry for the lack of clarity.
> I had sent you a past email confirming that the direction of the
> implementation was correct and was waiting for your response.
>=20
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D57963#239
Ahh, I missed that.  If you pull in the XML declarations and the
<fontconfig></fontconfig> stuff to the serialization, you should
basically have most of what you'd need for a G-Exp compiler, but even
if not it'd simplify this to

(match
  ((? home-font-config-configuration? config)
   (serialize-... config ...))
  ((? file-like? config) config))

Not sure if a match for type-checking would be needed since it's
already taken care of elsewhere, so writing it just in case.

Cheers