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 aB9VGZMlDmOjQAAAbAwnHQ (envelope-from ) for ; Tue, 30 Aug 2022 16:58:27 +0200 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 CMU8GZMlDmOYGgAAauVa8A (envelope-from ) for ; Tue, 30 Aug 2022 16:58:27 +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 1F0012F198 for ; Tue, 30 Aug 2022 16:58:27 +0200 (CEST) Received: from localhost ([::1]:42834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oT2h8-0000bj-7n for larch@yhetil.org; Tue, 30 Aug 2022 10:58:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT2gk-0000Xi-JE for guix-patches@gnu.org; Tue, 30 Aug 2022 10:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oT2gk-0003ku-9p for guix-patches@gnu.org; Tue, 30 Aug 2022 10:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oT2gk-00071p-0u for guix-patches@gnu.org; Tue, 30 Aug 2022 10:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57487] [PATCH] guix: Add tempel snippet move. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 Aug 2022 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57487 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57487@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166187147427002 (code B ref -1); Tue, 30 Aug 2022 14:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Aug 2022 14:57:54 +0000 Received: from localhost ([127.0.0.1]:36990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oT2gc-00071Q-1q for submit@debbugs.gnu.org; Tue, 30 Aug 2022 10:57:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:43892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oT2ga-00071J-AL for submit@debbugs.gnu.org; Tue, 30 Aug 2022 10:57:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT2ga-0000PG-45 for guix-patches@gnu.org; Tue, 30 Aug 2022 10:57:52 -0400 Received: from 4.mo550.mail-out.ovh.net ([46.105.76.26]:35139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT2gX-0003gk-8M for guix-patches@gnu.org; Tue, 30 Aug 2022 10:57:51 -0400 Received: from player715.ha.ovh.net (unknown [10.111.172.221]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 00FE02498F for ; Tue, 30 Aug 2022 14:57:34 +0000 (UTC) Received: from ngraves.fr (met42-h01-213-44-161-47.dsl.sta.abo.bbox.fr [213.44.161.47]) (Authenticated sender: ngraves@ngraves.fr) by player715.ha.ovh.net (Postfix) with ESMTPSA id 8B5072DDAF836 for ; Tue, 30 Aug 2022 14:57:33 +0000 (UTC) X-OVh-ClientIp: 213.44.161.47 Date: Tue, 30 Aug 2022 16:57:32 +0200 Message-ID: <87r10xkcdf.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Ovh-Tracer-Id: 2692308155965563642 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekfedgkeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffkgggtgfesthhqredttddtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeejgeevueeihfelkeevteffkedvudetheekkefggeehleefteetveefheejgedvtdenucfkpheptddrtddrtddrtddpvddufedrgeegrdduiedurdegjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeduhedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheehtd Received-SPF: pass client-ip=46.105.76.26; envelope-from=ngraves@ngraves.fr; helo=4.mo550.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: 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" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via 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=1661871507; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=tqHNcMy9BP1mab1+Q3ooD13CGFEUeWCrJT0rtNo5bFI=; b=qgwhihJoBFFrqSa1E1GlCF8AElTvHGSyeBXIgwoYuAlAgIWgIBs6CJqVOyZRFWSIeb6B+N R5JqdPZ1JOyJGRV+IRkwN9y7ShSWWY9G6rcVnoXxtPTQWGbZMWKI0wp1uLGvWW2lYQifnA EfTcxPv4Y9sIbjblSM44DnMrPzcE9zdqylueXCijMppD1fIReK1AsrwdbJQpT1usZH6+2a RL/aIFYwM7Duy3rYgC1stgDgtNUd9w0IQ50YuRNnvSnUN9POEbDheLqfNVxtWiQGq20w07 R+L1nDhQNAlpHbdFvQt6SI0mkX1h3POfcIrPyRilZOMur2H23FaPL9v43Mlz4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661871507; a=rsa-sha256; cv=none; b=ePeSDhL8rG8aPMv8S3l7uaVFQ09FyGF4I0I7hyDPc6ptxzb2GT7eyDhJ8yo+xMC3+FljBz L8IIKX3lbtVeqjdAGHnHh5ODsygLwCNZ5p8zZFKQhgx2d66S2RiSLZofRemSVpRhToh5hi CMwbv4ZMlNdBppGyf5ThXguEtajVH0ZeXHRyLwS9fR8faXX5ltSUiIFoEpcuVIY2loFTSe 1OyT4U22a65wnrrQrBHDr26dXuFJEe4eTtYDhuT44PcwcoaFK9xily5+FA2zy/i0/FPiNc XWNOWpqX6l/ilQ/ICDWYMUtGF8yc3poJ7r9SXzGpTQSagpXdcHHH3GhmGfgSog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Migadu-Spam-Score: -3.49 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Migadu-Queue-Id: 1F0012F198 X-Spam-Score: -3.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: kY9uyQnrhad1 --- etc/snippets/tempel/text-mode | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/etc/snippets/tempel/text-mode b/etc/snippets/tempel/text-mode index a1400aac69..8096d92e47 100644 --- a/etc/snippets/tempel/text-mode +++ b/etc/snippets/tempel/text-mode @@ -99,3 +99,20 @@ text-mode :when (and (fboundp 'git-commit-mode) (git-com= mit-mode)) ": Use HTTPS home page." n n "* " (car (magit-staged-files)) " (" (s var) ")[home-page]: Use HTTPS." n (mapconcat (lambda (file) (concat "* " file)) (cdr (magit-staged-files)))= n) + +(move\=20 + "gnu: " + (p (with-temp-buffer + (magit-git-wash #'magit-diff-wash-diffs + "diff" "--staged") + (goto-char (point-min)) + (when (re-search-forward "\\-(define-public \\(\\S-+\\)" nil 'noerro= r) + (match-string-no-properties 1))) + var) + ": Move to " + (concat "(" + (string-replace "\.scm" "" + (string-replace "/" " " (car (magit-staged-files)= ))) + ").") n + n "* " (car (magit-staged-files)) " (" (s var) "): Move from here=E2=80= =A6" + n "* " (cadr (magit-staged-files)) " (" (s var) "): =E2=80=A6to here.") --=20 2.37.2 --=20 Best regards, Nicolas Graves