From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id w6fbF5haql9ZCwAA0tVLHw (envelope-from ) for ; Tue, 10 Nov 2020 09:17:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4IRQE5haql+/YQAAB5/wlQ (envelope-from ) for ; Tue, 10 Nov 2020 09:17:12 +0000 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 EB3959403A6 for ; Tue, 10 Nov 2020 09:17:11 +0000 (UTC) Received: from localhost ([::1]:32864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcPm1-0008Km-Cm for larch@yhetil.org; Tue, 10 Nov 2020 04:17:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcPlu-0008J8-Lf for guix-patches@gnu.org; Tue, 10 Nov 2020 04:17:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcPlu-0005sg-Bs for guix-patches@gnu.org; Tue, 10 Nov 2020 04:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kcPlu-0006W6-7x for guix-patches@gnu.org; Tue, 10 Nov 2020 04:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44547] [PATCH 2/2] etc: snippets: Prefill Common Lisp package names. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Nov 2020 09:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44547 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44547@debbugs.gnu.org Received: via spool by 44547-submit@debbugs.gnu.org id=B44547.160499980125013 (code B ref 44547); Tue, 10 Nov 2020 09:17:02 +0000 Received: (at 44547) by debbugs.gnu.org; 10 Nov 2020 09:16:41 +0000 Received: from localhost ([127.0.0.1]:36338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcPlY-0006VI-TQ for submit@debbugs.gnu.org; Tue, 10 Nov 2020 04:16:41 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:39477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcPlX-0006Ux-2d for 44547@debbugs.gnu.org; Tue, 10 Nov 2020 04:16:39 -0500 X-Originating-IP: 90.92.160.122 Received: from localhost.localdomain (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id B472720008 for <44547@debbugs.gnu.org>; Tue, 10 Nov 2020 09:16:32 +0000 (UTC) From: Pierre Neidhardt Date: Tue, 10 Nov 2020 10:16:25 +0100 Message-Id: <20201110091625.3515-2-mail@ambrevar.xyz> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201110091625.3515-1-mail@ambrevar.xyz> References: <20201110091625.3515-1-mail@ambrevar.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.5 (/) 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-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: NTFk890KuYuU * etc/snippets/text-mode/guix-commit-message-add-cl-package: New file. --- .../text-mode/guix-commit-message-add-cl-package | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 etc/snippets/text-mode/guix-commit-message-add-cl-package diff --git a/etc/snippets/text-mode/guix-commit-message-add-cl-package b/etc/snippets/text-mode/guix-commit-message-add-cl-package new file mode 100644 index 0000000000..40f1bb2a5c --- /dev/null +++ b/etc/snippets/text-mode/guix-commit-message-add-cl-package @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: guix-commit-message-add-cl-package +# key: addcl +# condition: git-commit-mode +# -- +gnu: Add ${1:`(with-temp-buffer + (magit-git-wash #'magit-diff-wash-diffs + "diff" "--staged") + (beginning-of-buffer) + (when (search-forward "+(define-public " nil 'noerror) + (thing-at-point 'sexp 'no-properties)))`}. + +* `(car (magit-staged-files))` (${1:$(replace-regexp-in-string "^sbcl" "cl" yas-text)}, ${1:$(replace-regexp-in-string "^sbcl" "ecl" yas-text)}, $1): New variables. \ No newline at end of file -- 2.28.0