aboutsummaryrefslogtreecommitdiff
path: root/etc/snippets/yas/log-edit-mode/guix-vc-commit-message-rename-package
blob: 89c85f8016e1c771fe5f48b04276cf8a41bd55c4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- mode: snippet -*-
# name: guix-vc-commit-message-rename-package
# key: rename
# --
gnu: ${1:`(when (string-match "\\-(define-public \\(\\S-+\\)" vc-patch-string)
            (match-string-no-properties 1 vc-patch-string))
            `}: Rename package to ${2:`
            (when (string-match "\\+(define-public \\(\\S-+\\)" vc-patch-string)
            (match-string-no-properties 1 vc-patch-string))`}.

* `(car (log-edit-files))` ($1): Define in terms of
'deprecated-package'.
($2): New variable, formerly known as "$1".
`(mapconcat (lambda (file) (concat "* " file)) (cdr (log-edit-files)) "\n")`