me
/
guix
Archived
1
0
Fork 0

etc: snippets: Fix "gnu: Add ..." name when prefilling Common Lisp commits messages.

* etc/snippets/text-mode/guix-commit-message-add-cl-package: Fix name and
simplify the "New variables" line.
master
Pierre Neidhardt 2020-11-25 10:45:42 +01:00
parent 5ff25d1530
commit 402f1104e5
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@ gnu: Add ${1:`(with-temp-buffer
"diff" "--staged")
(beginning-of-buffer)
(when (search-forward "+(define-public " nil 'noerror)
(thing-at-point 'sexp 'no-properties)))`}.
(replace-regexp-in-string
"^sbcl-" ""
(thing-at-point 'sexp 'no-properties))))`}.
* `(car (magit-staged-files))` (${1:$(replace-regexp-in-string (rx line-start "sbcl" (optional "-cl")) "cl" yas-text)}, ${1:$(replace-regexp-in-string "^sbcl" "ecl" yas-text)}, $1): New variables.
* `(car (magit-staged-files))` (cl-${1:$(replace-regexp-in-string "^cl-" "" yas-text)}, ecl-$1, sbcl-$1): New variables.