diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-06-09 17:45:45 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-06-09 17:45:45 +0200 |
| commit | df58c94081370e2c1aa7ab9ba90462f6d690800d (patch) | |
| tree | a4983f2c2659588ce4125d7d320f5b505e15a85f /docs/Makefile | |
| parent | fb714e9796350e31b0a7e2b8e155ec75e0136e88 (diff) | |
Use define-advice instead of advice-add
Diffstat (limited to 'docs/Makefile')
| -rw-r--r-- | docs/Makefile | 3 |
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 " |
