From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cE+1A2OR8mIPdQEAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 18:54:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aC+JAmOR8mINcgEAG6o9tA (envelope-from ) for ; Tue, 09 Aug 2022 18:54:59 +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 CB400353E5 for ; Tue, 9 Aug 2022 18:54:58 +0200 (CEST) Received: from localhost ([::1]:43824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLSVO-0002P5-1z for larch@yhetil.org; Tue, 09 Aug 2022 12:54:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLSTW-0000DM-18 for guix-patches@gnu.org; Tue, 09 Aug 2022 12:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLSTV-0008Oi-OH for guix-patches@gnu.org; Tue, 09 Aug 2022 12:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLSTV-0002Ct-KO for guix-patches@gnu.org; Tue, 09 Aug 2022 12:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57069] Tempel snippets Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Aug 2022 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57069 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Nicolas Graves , 57069@debbugs.gnu.org Received: via spool by 57069-submit@debbugs.gnu.org id=B57069.16600639758472 (code B ref 57069); Tue, 09 Aug 2022 16:53:01 +0000 Received: (at 57069) by debbugs.gnu.org; 9 Aug 2022 16:52:55 +0000 Received: from localhost ([127.0.0.1]:44653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLSTL-0002CW-5D for submit@debbugs.gnu.org; Tue, 09 Aug 2022 12:52:55 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:34657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLST4-0002C0-Py for 57069@debbugs.gnu.org; Tue, 09 Aug 2022 12:52:49 -0400 Received: by mail-ej1-f65.google.com with SMTP id tl27so23284550ejc.1 for <57069@debbugs.gnu.org>; Tue, 09 Aug 2022 09:52:34 -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=4hTKBMQFI+AlIG677boDEoJ+1Bmx3ziif0ByCyFNqp0=; b=PAhx0YVIxWGPifx4WNpcBMqH+h1OMm137IGPEhHSfU4pRMn6/2ucKAh/RQfBVL1yx6 9fCOinx8n9TsbjINBYBuBp5Wa4zuHsjSBIiRxMM8VF8nIzteXHY3wt1GPtheQb0q5IwQ mU/OqvpwjsZ3SA5nKLU6/lxHHvVJjeCedCPLm6FQIjiSmaxd6inCJFxJ20ia8BPWMHP2 87WDZgllSOCML9LxNDctGN47zvTKRq1hoAqqGnoMoJVFhFo0+3K9R7hdFRAGeIgcYMlx p+n3e8jwm8vBsO2mjwFJdbsYXOmdclH6PHWwlMsgehgs9tswPa+ad9z/zY0eLFNctJ2e BO9Q== 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=4hTKBMQFI+AlIG677boDEoJ+1Bmx3ziif0ByCyFNqp0=; b=uZw6OmKB+JipxCvmt0AWfIRDV9kfb9xlyZLDVa4BHFUx5oeJfIbZF2Tf8A4BzcauiX hAPSfOm7mfDV9cg7mav6wkD/nL42OjSHdJt1i7awTDpO7ec6BWpq95IzbiLGdD0bi/fk SY9APN7CGAFJDydS2JtHQ3Uj0p3gPNdnxJIgh2xsCthSqzZCYpLX5cuUf7YRLZ8JFssa f95Ec80pvJtqBpUcXDQglKEuMXAK98qFpu1qggea5a93YmZUuqiE+YdzcMgxTdnC7Xf1 /9VsabJkNP80BdaAQNsVXqO8XX6UYTB3z/z2/I8DpEIbEAwKruBAZfd66v5/UX1lKOVd dH0g== X-Gm-Message-State: ACgBeo2IWSU9O0ag/tS8j4P5lutuDuHfPMsDnjf3StctWESckT/P6a1e L8MMkB+zHsKbZ6/afwW/lFM= X-Google-Smtp-Source: AA6agR46tthabYzLBWZJnjzNHWuIitDFvpfGHsHhFjZltOF5km2VAKGE7c6G8j824hp3bTa5nZ0AaA== X-Received: by 2002:a17:906:d7a9:b0:731:2189:4f58 with SMTP id pk9-20020a170906d7a900b0073121894f58mr11729784ejb.471.1660063948765; Tue, 09 Aug 2022 09:52:28 -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 eq20-20020a056402299400b0043cc2c9f5adsm6186801edb.40.2022.08.09.09.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 09:52:28 -0700 (PDT) Message-ID: <3582f9ef0c1fcc30719dd1479812354169d14277.camel@gmail.com> From: Liliana Marie Prikler Date: Tue, 09 Aug 2022 18:52:27 +0200 In-Reply-To: <87a68dpvre.fsf@ngraves.fr> References: <87a68dpvre.fsf@ngraves.fr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1660064098; 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: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=4hTKBMQFI+AlIG677boDEoJ+1Bmx3ziif0ByCyFNqp0=; b=OKdZtNiDiTZHpJYXPmjsiuL5a3i1nARwA9PeYotp+6+GhrRJIeG2SiSJBAXVeSw6R3voth O+tmZTfFAtbddocEyMf/eEOSq7mIQwkQmAp6g98n3VTH9x6IW0TshI4rhqCUbZKNDmzDJy uwFwW8xljNHXY3JBTx0rvkaXnd7hgmlDl6E6YTxB3djIEv2w8PB1NEXHzSsKlx5Fw7Ape/ BFoozJQRYuOuEi+MEFZING1+5+44nrC764L5WJ0MlYXj0XYe0pSUofigyRdxc+zZ6yv7D6 aP64yeLtPjMDTVfcdF5tub+qH2mcW/xq3MeTQuxE9AtePGYvVi9SHGpSIt9VjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660064098; a=rsa-sha256; cv=none; b=O/Y35C/qpSjVecw1jiR4ARGTPFts6jHPPj3ZabPNTreF4IBN7+lt302bm0t2hSgRiEQ80g JSD0gS5pBZV8ve52v7S5wLz30qn8tT7X6uY1Y+3VJyCg8r2Ssf3fPy3GKMO5AjNSnlmYQN sE+zRxY3cN+fGXzhgXc+DZhJ12mipGagVdfwYNor2PAJyC2ZglDCL3/NJtrcvTFdqVtTJS 3rRMx8dCEtCLDRyL/wfiXhTRz5VYEqkinBGuiBdmoH5UT1Mawh5Z4Wj60m8Wv28VT8g0SJ XYpkXoRvH7S211wvmc9H+lnxNRbjI8afEHIgOsy4N+/NvzwuTrF3QuTIhhzbqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=PAhx0YVI; 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: 6.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=PAhx0YVI; 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: CB400353E5 X-Spam-Score: 6.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8MF1XAzJ2Ca1 Am Dienstag, dem 09.08.2022 um 12:16 +0200 schrieb Nicolas Graves: > > The first patch of this series introduces the equivalent of current > yasnippet templates, with the alternative package tempel. > > I eventually chose to make a new folder in snippets dir, and to move > yasnippet files, hope it's OK. > > It works quite well for me now, but can be improved: > > - I selected completing-read for completion because I'm still > learning >   emacs and didn't tackle completion-at-point for now. Would that be >   better? Don't. Use the (s ) field of tempel. If you have corfu with capf, you should be able to expand them. For build-system you might want to add "-build-system" at the end, so that the user only has to type "gnu", "maven", etc. Less fancy than the yas one, but probably just as good. > - Nested snippets don't seem to work that well (e.g. expanding >   git-fetch... within the edition of an origin... expansion), I had >   quite a few bugs. Seems better to finish the current snippet before >   tackling a sub-snippet (for now at least). Probably a tempel limitation. I think it works to M-RET and then expand at point (using corfu or a tempel binding). Just printing out the unexpanded string should be enough for that. Cheers