From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 eNnyGmJfzmMhTwAAbAwnHQ (envelope-from ) for ; Mon, 23 Jan 2023 11:20:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aA3PGmJfzmP5LgEAauVa8A (envelope-from ) for ; Mon, 23 Jan 2023 11:20:18 +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 433ED89A9 for ; Mon, 23 Jan 2023 11:20:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJtvp-0006L7-FV; Mon, 23 Jan 2023 05:20: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 1pJtvn-0006KH-Fz for guix-patches@gnu.org; Mon, 23 Jan 2023 05:20:03 -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 1pJtvm-0008Mw-UQ for guix-patches@gnu.org; Mon, 23 Jan 2023 05:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJtvm-0007XE-CH for guix-patches@gnu.org; Mon, 23 Jan 2023 05:20:02 -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: Mon, 23 Jan 2023 10:20:02 +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.167446914528889 (code B ref 60753); Mon, 23 Jan 2023 10:20:02 +0000 Received: (at 60753) by debbugs.gnu.org; 23 Jan 2023 10:19:05 +0000 Received: from localhost ([127.0.0.1]:53434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJtuq-0007Vt-LV for submit@debbugs.gnu.org; Mon, 23 Jan 2023 05:19:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJtul-0007VL-Ne for 60753@debbugs.gnu.org; Mon, 23 Jan 2023 05:19:03 -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 1pJtuf-0008Cy-7z; Mon, 23 Jan 2023 05:18:53 -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=5NaG2yXc50UKRR7oYU0AM7vuvIkXdbLSJl/CH5VDcdE=; b=WBpLkLgNQjKTyHS4s6+l 3TUaslFd+AKwFweCRN2DQUtQ3BjnOWsd3lIm+HRTilNRPZuFb44wBQLLDfClheGvtMw6mpr0KCQUr X8NBw1okvij2WNzbLtgzMU0WXBUOLhgZ1+Ib1AYJOLwLO98udvWxkrhum8XRQMKuwHWrUuqs6OgVC qhCPuRv3wyfYGB3bsr99TBoWnHC7SflpLzw146xa9ZtveGHKBNhGmO5gfcajc8nVwwsHRj8TY1F2c 4FekIDEqIzATVcyITTF1cBlMsxqwQNiLav/gS6K8kFxKw55iqMUQACLy+LKI20i1+exTPuG3qgLYe TU34GWb0X0bkvg==; 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 1pJtuc-0001tE-Rg; Mon, 23 Jan 2023 05:18:51 -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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 4 =?UTF-8?Q?Pluvi=C3=B4se?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Perce-neige 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: Mon, 23 Jan 2023 11:18:47 +0100 In-Reply-To: <87wn5l8bhz.fsf@trop.in> (Andrew Tropin's message of "Tue, 17 Jan 2023 18:46:32 +0400") Message-ID: <87ilgx4kqg.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=1674469218; 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=5NaG2yXc50UKRR7oYU0AM7vuvIkXdbLSJl/CH5VDcdE=; b=Nany8w2wM3hIMOFdlRcQEbFXxGLY4V/cRf0Vu4n6w/iK1RIzz4ZNAglc1NBTIThC/iVA67 C7GvQWNgtVZDFecUgBNMRyle+ZqXOM0jopl7sN2iVYKboCwr6egSOJGF+rtgmDC0zVWxfQ pt33ZamnS1Gjwe8KWDZjk0ObRVXwZWQX3KwqLNSq0fn7Gehj/wy4+hz9Hl2eGb5Y4FVrvb WpwvMYYImh5YRbrmIyknoQhPAkbx6QR7eNsIIMSXy3JNYwCo+DwNbFywBFNFjhz0Yn8TP/ 7Ss94E+HfWevpLgMpInjc1+2555+OBW1jd5HCImXRm2wgj6m8FlkLyqwPcir+Q== 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=WBpLkLgN; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674469218; a=rsa-sha256; cv=none; b=IwTzVAr+WfFOaQt9XyAnvgNOw7P98DcJyOKZENtFyBEGug/tV9/LYP9odEJJOP9tApJzQG Qasaqw2BzpA6Eb4OjqyYrZlGOIVBLYVWymUsQM5KRwiP8RBBYg4Ab8XEYX2jHqGKAfKDSr 1JQe1ismWmUyJZowhuVx5zG1h7UMA8gG1W+TzZObGopNLhuKAJIbVXRJHl5uyjitc0Z1AA kH5DjlPmVKBNplpA/G05GSqYvUUL1zIvqszIVNru4WnrXy/gOF2xD27zd5lRFvPqapYL/I ojM9thq4kVhll6A+uEYUxHrMamD/ERJqbZFS057Q9FZhxPuqEy34dyQ6swIiig== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.98 X-Spam-Score: -3.98 X-Migadu-Queue-Id: 433ED89A9 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WBpLkLgN; dmarc=pass (policy=none) header.from=gnu.org; 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-TUID: FU4oNGz7OCj2 Hi, Andrew Tropin skribis: > On 2023-01-17 10:02, Ludovic Court=C3=A8s wrote: > >> Hi, >> >> Andrew Tropin skribis: >> >>>> What about accepting sexps (or gexps) instead of strings? As in: >>>> >>>> (init-file '((require 'whatever) (setq something t))) >>> >>> A quick minor note on this approach: it won't be possible to use >>> #'elisp-function inside such configuration because it will be >>> interpreted by guile reader, but actually rde lives without this >>> functionality completely ok. >> >> Specifically: >> >> (write '#'x) >> |=3D (syntax x) >> >> But we can use (guix read-print) and ensure that it prints #'. >> > > Do you have any links to docs/sample implementations on the topic of > extending guile reader, so we have an example to start with? It=E2=80=99s not the reader but rather the writer that we=E2=80=99d want to= tweak. In (guix read-print), =E2=80=98pretty-print-with-comments=E2=80=99 already = special cases quasiquote etc. so that it prints =E2=80=98`=E2=80=99 (backtick) and not = =E2=80=98quasiquote'. We=E2=80=99d add clauses for =E2=80=98syntax=E2=80=99 and =E2=80=98quasisyn= tax=E2=80=99. > 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. :-) >>> Do we want something like this possible? >>> >>> (init-file `((require 'whatever) >>> (setq something t) >>> (load ,(local-file "old-init.el"))) >> >> It=E2=80=99d be nice. In that case, we=E2=80=99ll want it to be a gexp = though: >> >> #~((require 'whatever) (load #$(local-file =E2=80=A6))) >> > > gexps are nice, but do we really need/want them here? Do you have any > thoughts on what are the benifits over quasiquotes in this case? Maybe > some examples? The benefit in the example above is that the gexp would actually work whereas the sexp wouldn=E2=80=99t :-), unless there=E2=80=99s code somewher= e to manually traverse the sexp adn replace the record with its store item (which is what gexps are about). I hope that makes sense! Ludo=E2=80=99.