From d0b584140966aa2a5bb1d1a58ad5691ae2774a85 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 18 May 2016 23:26:52 -0400 Subject: Rename km/magit-copy-hook to km/magit-copy-functions --- lisp/km-magit.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisp') 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) -- cgit v1.2.3