diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-05-18 23:26:52 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-05-18 23:26:52 -0400 |
commit | d0b584140966aa2a5bb1d1a58ad5691ae2774a85 (patch) | |
tree | c520f0a1777f0a3762b195b5b32569bd96cf8da6 | |
parent | 96f67a4cbbf12dc3c6e1cc8fa9d1c11f3aed7a19 (diff) | |
download | emacs.d-d0b584140966aa2a5bb1d1a58ad5691ae2774a85.tar.gz |
Rename km/magit-copy-hook to km/magit-copy-functions
-rw-r--r-- | lisp/km-magit.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el index ffba9bd..19dca10 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -424,7 +424,7 @@ argument." (goto-char (+ (point) offset)) (user-error "No hash found at point")))) -(defvar km/magit-copy-hook +(defvar km/magit-copy-functions '(km/magit-copy-commit-summary-from-header km/magit-copy-commit-message km/magit-copy-region-commits @@ -492,14 +492,14 @@ COMMIT." start (magit-section-end it)))))) (defun km/magit-copy-as-kill () - "Try `km/magit-copy-hook' before calling `magit-copy-as-kill'. + "Try `km/magit-copy-functions' before calling `magit-copy-as-kill'. With a prefix argument of -1, always call `magit-copy-section-value' Otherwise, the current prefix argument is passed to each hook function." (interactive) (or (unless (= (prefix-numeric-value current-prefix-arg) -1) (run-hook-with-args-until-success - 'km/magit-copy-hook current-prefix-arg)) + 'km/magit-copy-functions current-prefix-arg)) (magit-copy-section-value))) (defun km/magit-describe (rev) |