aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2024-06-09 17:45:45 +0200
committerJonas Bernoulli <jonas@bernoul.li>2024-06-09 17:45:45 +0200
commitdf58c94081370e2c1aa7ab9ba90462f6d690800d (patch)
treea4983f2c2659588ce4125d7d320f5b505e15a85f /docs
parentfb714e9796350e31b0a7e2b8e155ec75e0136e88 (diff)
Use define-advice instead of advice-add
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 8bd3107..b9c5b5d 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -166,8 +166,7 @@ stats-upload:
# When making changes here, then also adjust the copy in magit-base.el.
define ORG_MAN_EXPORT
-(advice-add 'org-man-export :around 'org-man-export--magit-gitman)
-(defun org-man-export--magit-gitman (fn link description format)
+(define-advice org-man-export (:around (fn link description format) gitman)
(if (and (eq format 'texinfo) ;'
(string-match-p "\\`git" link))
(replace-regexp-in-string "%s" link "