From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 oOPmNdNq72L1KQAAbAwnHQ (envelope-from ) for ; Sun, 07 Aug 2022 09:33:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kMEANdNq72LZKwAAG6o9tA (envelope-from ) for ; Sun, 07 Aug 2022 09:33:39 +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 123D5390C5 for ; Sun, 7 Aug 2022 09:33:38 +0200 (CEST) Received: from localhost ([::1]:51274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKan3-0000f4-RK for larch@yhetil.org; Sun, 07 Aug 2022 03:33:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKama-0000ed-6i for guix-devel@gnu.org; Sun, 07 Aug 2022 03:33:08 -0400 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]:38634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKamY-0006BJ-Av for guix-devel@gnu.org; Sun, 07 Aug 2022 03:33:07 -0400 Received: by mail-ej1-x643.google.com with SMTP id k26so11590396ejx.5 for ; Sun, 07 Aug 2022 00:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=sTT6CE+QfsPUuAf0BbRG7zsWCWL/FS96mfhdi9QHjZ8=; b=islfm6C9UgWUTHKsanWnlGkDBSOgrpKcoOGPxIdI59a7lNl+A93HsP+Bih98Z3HpAG XspkQFoSqqqQ3heXPmdBOkj/T56dxHnBUh2iinXOUgZ7JLKKoKajviak5Vg+0Ct5eaFc Cqgie6In8pVUOSAmeJfyfdCVUZKTBuPiHK61dLbigyg7WsSPBr4muZbvGSUjd1cXSvXP +2/z9QZJL1k7Avzgw3op9MP1IyzlYqSaCVIHyQfxWbSYqEt4iKtYVZ57h4KJuPssigvy unllndAZPDru4AErL672ZqyOTcTo+XfgrQgqhATLCd4V5FM6fDOrvMqG6ZNq1IJq5kW3 5/QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=sTT6CE+QfsPUuAf0BbRG7zsWCWL/FS96mfhdi9QHjZ8=; b=fC5lJ1WoOuoEOSyMVmGsJUvyn38F8GLkEHOneiz1CeC5IHdBPp2kf5W/9yH/2dL1Dz n6NqbKycBTPOs7jBkaQ92tzuWDj9yAYp2geYWc9/QQiArXwC2t/SH8tdULo1JLQbGUmJ e8eJErXHrxn0L0d5UEe1yXJQVQaByO02FFfcQTvPHGF3OW4GUJTtA2lo3uMkfBmwFYcO rN0LJw2LT2QLIxrqr30QXqb9NcP11TIePuRjAWLOuBJa7LiApvMKn1isvzxyOVhv4X9L xJONvAFy+YrONVJWPBPmpVs2vyAC/tB7o52FDhcpq5lzkctBaT6efhqbveXlw3EH4cbO jIGg== X-Gm-Message-State: ACgBeo35Z1IUMotU1b/CTtMUI5lU6UPHV9vCktn98QVCFpfduFjq+bXl czgGlhQchSUbAJ1H8mBXX2M= X-Google-Smtp-Source: AA6agR4ZLifGrEkY97jJQ1IWa+JnUnmKOUQ4QTN7SZmxSlwitMoaabUVTObCvpeD6K3YCx3VkQBMuA== X-Received: by 2002:a17:907:971e:b0:731:48b3:6fb7 with SMTP id jg30-20020a170907971e00b0073148b36fb7mr1686656ejc.267.1659857583973; Sun, 07 Aug 2022 00:33:03 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id ku10-20020a170907788a00b00726abf9a32bsm3479151ejc.138.2022.08.07.00.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 00:33:03 -0700 (PDT) Message-ID: <449e64527fc414567c03cc57f0fb261ce1751809.camel@gmail.com> Subject: Re: Tempel snippets From: Liliana Marie Prikler To: Nicolas Graves , guix-devel@gnu.org Date: Sun, 07 Aug 2022 09:33:02 +0200 In-Reply-To: <878ro10w0b.fsf@ngraves.fr> References: <878ro10w0b.fsf@ngraves.fr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::643; envelope-from=liliana.prikler@gmail.com; helo=mail-ej1-x643.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1659857619; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=sTT6CE+QfsPUuAf0BbRG7zsWCWL/FS96mfhdi9QHjZ8=; b=hOBUneb2uBqMQSFkX8jG5JmDkdkIx4P7tWgx8AMEvYIMoHjldhGWxUh4BKvZNl6gEEuutW W7R6v/DDuPUZidupDC+RK4jgYtqvucglwaQHwV49My3fWY+u0vSksHtbi3N5jd4DQr+PPp 0YZDVuEuyOpF8wd55ZbkPpdVbSCEafhsY3t6Gsqi2K7zx49iG/2+6KXMys12bJh9I1rDO9 qOogeLNvXOW/0gcFMLVrSHYDmrMo9yJ8VJAVPlco9/ndix2nzWcp1jR2wXsUV/51cdcpGL bBPp6rwfVDZbGsULQvLcoUwCJs6OmuaK32UQFLv1gYNehEbR/AaKXxggBaiJHQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659857619; a=rsa-sha256; cv=none; b=ONmh4Hyp+81koJ7q8BbSVvJDG8f2LjLLKNLUSkzM7uV/nCKStsaQAqIt1MjA1aJ3SVOvux zSzTBiCo/kucRPxhDEagiWOZRXBj7ObaOJCJmdVNmxdA1knAhUn0hAz1t/49IBToClPwsQ aEjHmmnIO9mdjz76z8IZUfOB3sS8pDHTliJu6JTRBqVv6G9dkCUbtCNQCSLC0vRLyBGsuS sEw4vz7AKLBY8m5LaUD0+aoiZ+XsLbItthigIFUZekUVQdAcyjqy2w+wnddl+TGawzd2Oa 2qfx+8h0BgLpRpqN1wiDQE8o0FiA9FeRwHgCdLye5cCi2U5eyBrVVkkdPnkb6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=islfm6C9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=islfm6C9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 123D5390C5 X-Spam-Score: -3.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: X00BUiOA2sJp Hi Nicolas, Am Sonntag, dem 07.08.2022 um 01:53 +0200 schrieb Nicolas Graves: > I'm translating the snippets used in the snippets dir so that we can > provide an alternative (here tempel) for snippets in the Perfect > Setup. Thanks for that. I've been meaning to try out Tempel for a while, but Guix snippets have been a minor reason to "just keep yas" for a while. > I have two practical questions about where to put that code. > > 1) For reproducible development purposes (e.g. rde), it would > be great to have snippets shipped with guix itself (the snippets > directory is not in the store of the guix package), or alternatively > in a package, instead of in a possibly moving directory. WDYT? Which > alternative is the best? I don't really think there's a requirement to do so. These snippets are meant for contributers to Guix. Contributers to other channels ought to follow that channels' practices – if Guix snippets apply there, that's great, but it's not a given. > 2) Where should I add tempel-ready snippets? The etc/snippets dir > can't be used directly because it's the one used by yasnippet. Or in > the option of packages, I can rather make one. I'll give you two answers: 1. The taxonomer's answer is to simply subdivide etc/snippets into tempel and yas. 2. The "I don't like that many layers in my filesystem" answer would be to have etc/tempel-snippets and etc/yasnippets Pike your bikeshed. > 3) I'll send a first series with basic working templates, but in the > process have seen that there may be some refactoring / snippets > improvements, but I'm not yet emacs-fluent enough to get that done > easily. Will probably send a mail with the series with some ideas for > refactoring and where I'm stuck. Also I think that we can add a > snippet for license: completion, include an alternative snippet for > copyright (since we must be at the right spot to insert anyway), and > have an option to compute base32 hash during template completion (if > possible, I'll see what I can do). For the hash thing I think it'd be valuable already if you embedded the hash of an empty directory. For the record, that's 0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5 Don't try to be too smart, running guix commands (or even git checkout) during snippet expansion is not something I'd expect. Cheers