From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yKBwDWVB2WMpCgEAbAwnHQ (envelope-from ) for ; Tue, 31 Jan 2023 17:27:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iPhxDWVB2WMbYgAA9RJhRA (envelope-from ) for ; Tue, 31 Jan 2023 17:27:17 +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 0F23439DD0 for ; Tue, 31 Jan 2023 17:27:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMtTN-0000qL-Fp; Tue, 31 Jan 2023 11:27:05 -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 1pMtTM-0000q4-Bw for guix-patches@gnu.org; Tue, 31 Jan 2023 11:27:04 -0500 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 ) id 1pMtTK-00062t-4U for guix-patches@gnu.org; Tue, 31 Jan 2023 11:27:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMtTJ-0004OG-RI for guix-patches@gnu.org; Tue, 31 Jan 2023 11:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60753] [PATCH] gnu: home: Add home-emacs-service-type. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Jan 2023 16:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60753 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andrew Tropin Cc: "\(" , David Wilson , 60753@debbugs.gnu.org Received: via spool by 60753-submit@debbugs.gnu.org id=B60753.167518241216856 (code B ref 60753); Tue, 31 Jan 2023 16:27:01 +0000 Received: (at 60753) by debbugs.gnu.org; 31 Jan 2023 16:26:52 +0000 Received: from localhost ([127.0.0.1]:54817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMtT9-0004No-KF for submit@debbugs.gnu.org; Tue, 31 Jan 2023 11:26:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMtT8-0004Nc-4U for 60753@debbugs.gnu.org; Tue, 31 Jan 2023 11:26:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMtT2-00060B-Cb; Tue, 31 Jan 2023 11:26:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=+lMlov2gdsvCb80ct0ywK//v8R59oXPnr6AXJaiVB/k=; b=k7WHiyYBZmXzT65WoBvU WP9HrWJClgZiFPPSkjJV8ht926Y1rp3KNiDH8GD3Ubuix8eMENlNSbDhzEKYz1DWa1bKtYdp5bbZO SbksvECMZ4C1s3ykXSsPpNova1eta6O7A4ucYuNhTKyKydxR7UIgSuLGpcNtoRoGuMz/VZQyxogov VO2miXn1tWb53EXGsUEOjZLBZnYJ+1ilR0qwwhEc28g8ZCCH4h1i5ZBbdGN1YVLotwp+av6amwLYo zN46JuZJtXXTwQsgg/D1YwnIHHqU/Qp2kdaYY7nHkz1FJQgDv7wyn3PjrDSzXtDSblxclZgyb2UbK ElBqJpSRAEAzww==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMtT1-0003E3-SD; Tue, 31 Jan 2023 11:26:44 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87edrzzw9w.fsf@daviwil.com> <87v8lby7jq.fsf@daviwil.com> <87k01p8086.fsf_-_@gnu.org> <87cz7g2pkz.fsf@trop.in> <87mt6hjzyx.fsf@gnu.org> <87wn5l8bhz.fsf@trop.in> <87ilgx4kqg.fsf@gnu.org> <87v8ktvq99.fsf@trop.in> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 12 =?UTF-8?Q?Pluvi=C3=B4se?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Brocoli X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 31 Jan 2023 17:26:41 +0100 In-Reply-To: <87v8ktvq99.fsf@trop.in> (Andrew Tropin's message of "Thu, 26 Jan 2023 09:06:26 +0400") Message-ID: <87y1piu0u6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-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=1675182437; 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=+lMlov2gdsvCb80ct0ywK//v8R59oXPnr6AXJaiVB/k=; b=FPHR7WGy8/iCQ5X2lXLdbj8Z0pBvzlq/vUHL4MoxS8b9fZ8ZqZbP2uVcT0ZCXKGwwrUytL J29oCRbWfCJcKWQrnIYrVl/t+2XZlma7yDvOU6MtgdGNWGLylDdRarWK5qdWbnhm+SHVny BqXSSBEQ6ZgvAvFVepizT8HVFIPyfgGDZEBu+2n+eln6QOic3iWKaZPMlBnAB6OQU+E5Q6 igl0883/dpGeuTpU9VCThd6Bese0K/TGkEVoSiNE3RSvKO7pWoJmQ/+iSbTd0gjRIuZo64 09wHwsqpvdv/Yz9zj3of24tDVB2RO9UOBLRq+uxUyv4yXlLso93/3hwF7wmvpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=k7WHiyYB; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675182437; a=rsa-sha256; cv=none; b=dkq9A5QROuxN5EiPgXaq2e9ajB4ra8UMcC3LyDnrkTn7WK/Y0VqjuIgp1hT8OnFkwmHmk+ sjBN0tzdLLCdgOn+GEyI4P3YBtkRsZDM51xlmekshzrnDGdDEmNsEnP+ZvgG2Dj07CoFzY l1OBwB8I9jKHaJ1Wbo7DKbnfUEQ5GeEFne/G6YpuyvOT/v9fS+D/B1nCfOCqWVWN0wFZOw yHahsXut9dy+TjVyN6AVDA6wayhEtm1/sFD0xZFwoeTAxSFRM8P+Me1wMnwh2IOJGJKUka /MiMxFnloj89y3zKDXsMprbzaIsjcxLEqPm6Znu7j/k0TQBXA6d16KnOjk6fGQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=k7WHiyYB; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Spam-Score: -3.28 X-Migadu-Queue-Id: 0F23439DD0 X-Migadu-Spam-Score: -3.28 X-TUID: jinXWmr1TpnH Hi Andrew, Andrew Tropin skribis: >>> I think it will be cool to hook up a custom reader, ideally comment >>> preserving, for emacs lisp inside scheme files. >> >> (guix read-print) is what you want. :-) >> > > Can you give a hint on how to use it for preserving comments, please? It can be used like this: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use(guix read-print) scheme@(guile-user)> (pretty-print-with-comments (current-output-port) `(li= st foo ,(comment ";ooh!\n" #t) bar)) (list foo ;ooh! bar)$5 =3D 10 scheme@(guile-user)> (call-with-input-string "(list foo ;oh!\nbar)" read-wi= th-comments) $6 =3D (list foo #< str: ";oh!\n" margin?: #t> bar) --8<---------------cut here---------------end--------------->8--- There=E2=80=99s a record type. Now let=E2=80=99s see perhaps what we need to get =E2=80=98home-emacs-servi= ce-type=E2=80=99 merged, and what we can keep as future work. Thoughts? Ludo=E2=80=99.