2022-08-12 08:58:48 +00:00
|
|
|
-*- mode: lisp-data -*-
|
|
|
|
|
2022-12-27 08:35:41 +00:00
|
|
|
text-mode :when (and (fboundp 'git-commit-mode) git-commit-mode)
|
2022-08-12 08:58:48 +00:00
|
|
|
|
2022-10-06 17:04:23 +00:00
|
|
|
(add\ "gnu: Add "
|
|
|
|
(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 'noerror)
|
|
|
|
(match-string-no-properties 1)))
|
|
|
|
var)
|
|
|
|
"." n n
|
2022-10-22 12:05:44 +00:00
|
|
|
"* " (p (or (car (magit-staged-files)) ""))
|
|
|
|
" (" (s var ) "): New variable.")
|
2022-08-12 08:58:48 +00:00
|
|
|
|
2022-10-06 17:04:23 +00:00
|
|
|
(remove\ "gnu: Remove "
|
|
|
|
(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 'noerror)
|
|
|
|
(match-string-no-properties 1)))
|
|
|
|
var)
|
|
|
|
"." n n
|
2022-10-22 12:05:44 +00:00
|
|
|
"* " (p (or (car (magit-staged-files)) ""))
|
|
|
|
" (" (s var) "): Delete variable.")
|
2022-08-12 08:58:48 +00:00
|
|
|
|
2022-10-06 17:04:23 +00:00
|
|
|
(rename\ "gnu: "
|
|
|
|
(p (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)))
|
|
|
|
prev-var)
|
|
|
|
": Rename package to "
|
|
|
|
(p (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)))
|
|
|
|
new-var)
|
|
|
|
"." n n
|
2022-10-22 12:05:44 +00:00
|
|
|
"* " (p (or (car (magit-staged-files)) "")) " (" (s prev-var) "): "
|
2022-10-06 17:04:23 +00:00
|
|
|
"Define in terms of" n
|
|
|
|
"'deprecated-package'." n
|
|
|
|
"(" (s new-var) "): New variable, formerly known as \""
|
|
|
|
(s prev-var) "\".")
|
2022-08-12 08:58:48 +00:00
|
|
|
|
2022-10-06 17:04:23 +00:00
|
|
|
(update\ "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 'noerror)
|
|
|
|
(match-string-no-properties 1)))
|
|
|
|
var)
|
|
|
|
": Update to "
|
|
|
|
(p (with-temp-buffer
|
|
|
|
(magit-git-wash #'magit-diff-wash-diffs
|
|
|
|
"diff" "--staged")
|
|
|
|
(goto-char (point-min))
|
|
|
|
(search-forward "name" nil 'noerror)
|
|
|
|
(search-forward "+" nil 'noerror) ; first change
|
|
|
|
(when (and (search-forward "version " nil 'noerror)
|
|
|
|
(looking-at-p "\""))
|
|
|
|
(let ((end (save-excursion (search-forward "\")"
|
|
|
|
nil 'noerror))))
|
|
|
|
(when end
|
|
|
|
(forward-char)
|
|
|
|
(buffer-substring-no-properties (point) (- end 2))))))
|
|
|
|
version)
|
|
|
|
"." n n
|
2022-10-22 12:05:44 +00:00
|
|
|
"* " (p (or (car (magit-staged-files)) "")) " (" (s var) "): "
|
2022-10-06 17:04:23 +00:00
|
|
|
"Update to " (s version) "." n
|
|
|
|
(mapconcat (lambda (file) (concat "* " file))
|
|
|
|
(cdr (magit-staged-files))
|
|
|
|
"\n"))
|
2022-08-12 08:58:48 +00:00
|
|
|
|
2022-10-06 17:04:23 +00:00
|
|
|
(addcl\ "gnu: Add cl-"
|
|
|
|
(p (replace-regexp-in-string
|
|
|
|
"^cl-" "" (with-temp-buffer
|
|
|
|
(magit-git-wash #'magit-diff-wash-diffs
|
|
|
|
"diff" "--staged")
|
|
|
|
(beginning-of-buffer)
|
|
|
|
(when (search-forward "+(define-public " nil 'noerror)
|
|
|
|
(replace-regexp-in-string
|
|
|
|
"^sbcl-" ""
|
|
|
|
(thing-at-point 'sexp 'no-properties)))))
|
|
|
|
var)
|
|
|
|
"." n n
|
2022-10-22 12:05:44 +00:00
|
|
|
"* " (p (or (car (magit-staged-files)) ""))
|
2022-10-06 17:04:23 +00:00
|
|
|
" (cl-" (s var)
|
|
|
|
", ecl-" (s var)
|
|
|
|
", sbcl-" (s var) "): New variables.")
|
2022-08-12 08:58:48 +00:00
|
|
|
|
2022-10-06 17:04:23 +00:00
|
|
|
(https\ "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 'noerror)
|
|
|
|
(match-string-no-properties 1)))
|
|
|
|
var)
|
|
|
|
": Use HTTPS home page." n n
|
2022-10-22 12:05:44 +00:00
|
|
|
"* " (p (or (car (magit-staged-files)) ""))
|
|
|
|
" (" (s var) ")[home-page]: Use HTTPS."
|
2022-10-06 17:04:23 +00:00
|
|
|
n
|
|
|
|
(mapconcat (lambda (file) (concat "* " file))
|
|
|
|
(cdr (magit-staged-files))
|
|
|
|
"\n"))
|
2022-08-30 14:57:32 +00:00
|
|
|
|
2022-10-06 17:04:23 +00:00
|
|
|
(move\ "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 'noerror)
|
|
|
|
(match-string-no-properties 1)))
|
|
|
|
var)
|
2022-10-06 19:09:43 +00:00
|
|
|
": Move to ("
|
|
|
|
(p (with-temp-buffer
|
|
|
|
(magit-git-wash #'magit-diff-wash-diffs
|
|
|
|
"diff" "--staged")
|
|
|
|
(goto-char (point-min))
|
|
|
|
(when (and
|
|
|
|
(re-search-forward "\\+(define-public \\(\\S-+\\)"
|
|
|
|
nil 'noerror)
|
|
|
|
(re-search-backward "modified[ ]*\\(\\S-+\\)"
|
|
|
|
nil 'noerror))
|
|
|
|
(string-replace
|
|
|
|
"\.scm" ""
|
|
|
|
(string-replace "/" " "
|
|
|
|
(match-string-no-properties 1)))))
|
|
|
|
new-module)
|
|
|
|
")." n
|
2022-10-06 17:04:23 +00:00
|
|
|
n
|
2022-10-06 19:09:43 +00:00
|
|
|
"* " (p (with-temp-buffer
|
|
|
|
(magit-git-wash #'magit-diff-wash-diffs
|
|
|
|
"diff" "--staged")
|
|
|
|
(goto-char (point-min))
|
|
|
|
(when (and
|
|
|
|
(re-search-forward "\\-(define-public \\(\\S-+\\)"
|
|
|
|
nil 'noerror)
|
|
|
|
(re-search-backward "modified[ ]*\\(\\S-+\\)"
|
|
|
|
nil 'noerror))
|
|
|
|
(match-string-no-properties 1)))
|
|
|
|
source)
|
|
|
|
" (" (s var) "): Move from here…" n
|
|
|
|
"* " (concat (string-replace " " "/" new-module) ".scm")
|
|
|
|
" (" (s var) "): …to here.")
|